I know, to some of you, this will seem like a ridiculously basic question/post. But since it was posted on one of the forums recently, and I had many problems with head hunters/recruiters on this, I thought it might be worthy to create a post about it. The question was: “What’s the difference between ASP.net, […]
Every time I build a setup project in Visual Studio.Net, I find it very easy to use the wizard and setup the program menu, etc, but for some reason, I can never remember where to change the Manufacturer and Product Name, so that when it’s installed, it will go to specific folders.
One of the great string methods that was introduced in dotNet 2.0 is ‘IsNullOrEmpty’
First, you drag a Timer control over to the form you are using (or double-click it). This will put it in the tray at the bottom.
Navigation to controls in the toolbox has finally gotten easier now, in Visual Studio.Net 2010. You can actually type to get to the control you want. The sections in which they reside don’t even need to be open.
There’s are a couple of form properties that kind of sneaked in DotNet development a while back. They are: AcceptButton CancelButton
The first way is pretty self-explanatory – you create it from scratch. When you create a new Windows Forms application, a default Windows Form is present. Just change the isMDIParent property to True and voila – you’re on your way to working with an MDI application.
When working with the TabControl in your Windows application, in order to programmatically choose the tab you want to show, use the SelectedIndex property of the TabControl: TabControl1.SelectedIndex=2
Here’s the code function that iterates through the open MDI children to see if a certain form is already open, before opening it:
In order to iterate through all the textboxes on a form, and remove the text from all of them, you can use the following In order to iterate through all the textboxes on a form, and remove the text from all of them, you can use the following code:
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF