C# Programming For Beginners - Lecture 9: WPF Tab Control, ImageButton, WebClient, Dispose, File OPs

preview_player
Показать описание
C# Programming For Beginners Lectures (9/14) will teach you #CSharp #programming from 0 to beginner / intermediate level. So if you have no idea about programming, if you don't know anything about #coding, or if you want to become a Software Engineer, please subscribe and follow our courses.

Technology Playlist (30+ Tutorial / Guide / News / Review Videos) ⤵️

Stable Diffusion Playlist (30+ Tutorial / Guide Videos) ⤵️

Please join discord, mention me and ask me any questions. Thank you for like, subscribe, share and Patreon support. I am open to private consulting with Patreon subscription.

Full playlist of this course ⤵️

You can watch for free our C# Programming, ASP .NET Core MVC programming, Machine Learning and Software Engineering related courses on our playlists page ⤵️

GitHub code repository of this course (source codes of the lectures) ⤵️

The topics that have been covered in Lecture 9:

* How to bind a list to a ListBox object by using the ItemsSource property and refresh ListBox after modifying the bound list
* How to use WebClient to download web pages quickly
* How to open a file as FileStream to write a bytes array to that file
* When should you use FileStream instead of StreamWriter or File.Write, File.*, etc.
* How and why should we use dispose of method if our object has that method
* How to use Using statement and why to use Using statement
* How to use and utilize WPF tabs
* How to add buttons to the tab menu to navigate between tabs
* How to make a button an image button
* How to add images as resources to the project and copy them to the output/debug folder

Introduction:

Lecture 9 covers a variety of topics related to C# programming. The lecture starts with a discussion on how to bind a list to a ListBox object by using the ItemsSource property and refreshing ListBox after modifying the bound list. This is followed by a discussion on how to use WebClient to download web pages quickly.

The lecture then moves on to discuss how to open a file as FileStream to write a bytes array to that file. It also covers when to use FileStream instead of StreamWriter or File.Write, File.*, etc. Additionally, the lecture talks about how and why we should use dispose of method if our object has that method.

The lecture then discusses how to use the Using statement and why to use the Using statement. It also covers how to use and utilize WPF tabs and how to add buttons to the tab menu to navigate between tabs. Furthermore, it discusses how to make a button an image button and how to add images as resources to the project and copy them to the output/debug folder.

Binding a List to a ListBox Object:

In C#, it is possible to bind a list to a ListBox object by using the ItemsSource property. This is a powerful feature that can save a lot of time and effort when working with large sets of data. Once the list is bound to the ListBox object, any changes made to the list will automatically be reflected in the ListBox object. However, it is important to refresh the ListBox after modifying the bound list to ensure that the changes are displayed correctly.

Using WebClient to Download Web Pages Quickly:

In C#, it is possible to use WebClient to download web pages quickly. WebClient is a powerful class that allows you to download data from the internet without having to write a lot of code. You can use WebClient to download HTML pages, images, and other types of data.

Opening a File as FileStream:

In C#, it is possible to open a file as FileStream to write a bytes array to that file. FileStream is a powerful class that allows you to write binary data to a file. FileStream is especially useful when you need to write large amounts of data to a file.

When to Use FileStream Instead of StreamWriter or File.Write:

In C#, it is important to know when to use FileStream instead of StreamWriter or File.Write. FileStream is useful when you need to write binary data to a file. StreamWriter is useful when you need to write text to a file. File.Write is useful when you need to write a byte array to a file.

Using Dispose Method:

In C#, it is important to use the dispose method if our object has that method. The dispose method is used to release resources used by an object. Failure to dispose of objects properly can result in memory leaks and other problems.

Using Using Statement:

In C#, it is important to use the Using statement. The Using statement is used to ensure that an object is disposed of properly.
Рекомендации по теме
Комментарии
Автор

Please join discord, mention me and ask me any questions. Thank you for like, subscribe, share and Patreon support. I am open to private consulting with Patreon subscription.

SECourses
Автор

195050016
In this video we learned;
-How we can pick a random element of enum
-You showed us ItemSource method
-Using Tabs and its features
-Using Filestream and its methods
-Using WebClient
-Creating an image button
Thanks for the lesson.

korayinci
Автор

In this lecture, I've learned
-adding a list to the list boxes
-Using Filestream instead of stream writer.
-how to use WebClient
-adding an arrow image to the tabs to switch tabs
-How to add buttons to the tabs and switch between them

205060911

MHD OMAR DAKELBAB

omardakelbab
Автор

In this course I've learned;

*Lists and itemsource
*Using Filestream StreamWriter
*How do we use WebClient
*Usage of dispose method
*How to download images and upload it like the arrow
*Tabs Editing and adding

Number: 195050020

merveenterili
Автор

In this lesson I learned:
-use ItemSource property
-Tabcontrol
-FileStream, StreamWriter
-Dispose Method
-use WebClient
-use Statement
-make image button
-make a button to navigate in the tabs

Number = 195050005

samedarc
Автор

In this video I learned
-add a list to the listbox
-using ItemSource
-webclient
-create an image button
-dispose method

195050025

odaknoktasi
Автор

in this course
-Binding listbox
- color properyies methods
-listbox auto refresh
-Filestream using
-Using webclient & downloadData(url), close(), dispose() methods
-header template
- button backround image
-compose navigating buttons
number:195050013

muhammedmustafakapici
Автор

195050007

- How to use WebClient to download web pages quickly
- How to open a file as FileStream to write byte array to that file
- How should we use dispose method
- How to use using statement
- How to add buttons to the tab menu to navigate between tabs
- How to make a button as image button

ferhat
Автор

-Binding listbox
-Using ItemSource
-Using Filestream
-Binding a list to listbox
- WebClient
-dispose method

195050008

ahmetozanozdemir
Автор

What questions can students find answers in this course:
1-How we can use list ?
2-How we can make image button?
3-How to change background color?
4-How to bind a list to the ListBox?
5-How to add buttons to the tabs and switch between them?
6-How to use filestream?
7-How to use Using statement?
8- How to open a file as FileStream?
9-How to use WebClient?
10-Why should we use dispose method?

Hüseyin Ayan 195050028

huseyinayan
Автор

How to bind a list to a ListBox object by using ItemsSource property and refresh ListBox after modifying the bound list
How to use WebClient to download web pages quickly
How to open a file as FileStream to write byte array to that file
When should you use FileStream instead of StreamWriter or File.Write, File.* etc.
How and why should we use dispose method if our object has that method
How to use Using statement and why to use Using statement
How to add buttons to the tab menu to navigate between tabs
How to make an image button
number : 195050009

thehistoryarchiveai
Автор

You talk about random value selecting for properties, and show item source example. You show tab controls and its properties such as how to change background color, How to add button on tab header. You give information about file operation with FileStream class. Some web services operations was talked. You talk about using statement.

Number: 195050026

recepgunes
Автор

Binding a list to the ListBox
Selecting a random element if the enum
Using Tabs and their characteristics
Using Filestream and its technique
Using the using statement
Switching between tabs to tab menu
Background picture button.

205060904

nouryalsukhni
Автор

In this video ı will learn ıt;
bind a list to the ListBox?
  How do I select a rondom value
  ItenmsSource of the ListBox
  Usage of Tab
  Filestream, StreamWriter File.Write
195050029

batuhankeskin
join shbcf.ru