Hi. Let me start by saying: this is my 1st post here, this is a bit lenghty, and I havent done Windows Forms development in years....with that in mind please excuse me if this isn't directly a programming question and please bear with me as I really need the help!!
I have been asked to develop a Windows Forms app for our company that ta...
We're using GPS.NET 3.0.1 in the development of a Windows Forms application. The device we're using is connected to the machine via Bluetooth.
As part of our testing we wanted to verify that we could turn the GPS device off and back on again and continue reading the NMEA stream from the device. This was meant to simulate a loss of ba...
I have a custom control which extends from TextBox.
In the KeyDown event of the control I have access to the KeyCode property of keyEventArgs
If the text in the textbox is selected and some other text is typed on top of it, the keyCodes that I am getting in the KeyDown event are different each time and in the KeyPress event I get the ac...
I created a movable panel in WinForms. I use a ToolStrip as a titlebar in the panel. I'll use the ToolStrip to move the panel as well as indicating the panel is "active" or not. So when the panel is active, I want to change the ToolStrip's BackColor to Red.
UPDATE: The panel will host other controls, such as a listview. I want the panel...
It's pretty straightforward to add simple properties to a User Control that will appear in the desired categories in the Windows Forms designer, e.g.:
[Category("Appearance")]
public Color BackColor {
get { return _textBox.BackColor; }
set { _textBox.BackColor = value; }
}
What if I want to expose a more complex property, such...
Now my team working in a network project using windows application c#. I didn't know how to programmatically detect Cipher type and Encryption level from a wireless network device from windows 2003 server.
After searching i got WMI (Windows Management Instrumentation) for solving the problem.+
Please suggest example/reference for findi...
Hello All,
I am developing a winform application in which user's login is validated through ms sql server 2000 database.When user entry its user name and password, application checks its exists in user table or not.
Now my requirement is if a user already login through one system it should not log in through another system.
if soluti...
I am trying to display images in a WinForms ListView that is in details view mode, but images are just not showing up.
I have added a SmallImageList (and a large one for good measure, added images to them, added my items to the ListView, but when I set the ImageIndex nothing happens. Images do not show up. I have also tried using the Im...
I have three Tabs in my WinForm; depending on the selected RaioButton in the TabPages[0] I added few dynamic controls on the relevant TabPage. On Button_Click event the controls are added, but the prob is the I'm not able to remove the Dynamically added controls from the other (irrelevant) TabPage.
Here's my code:
Label label235 = new ...
When i used
foreach (Form form in Application.OpenForms)
{
form.Close();
}
Application.Exit();
It not exit Application?
How can I exit the application making sure all running thread are closed?
...
I don't want to allow user to double click on my button. On the first click it should be disabled and once my code is executed, i should enable the button. How to do ?
...
Hi,
I'm trying to launch another application from C# application, is there a way to display this application inside the mainform of my application?
Thanks,
...
How could I populate a ComboBox (or a ToolStripComboBox like in the image) with line styles .NET?
...
Hello Good people!!
I'm deploying a winform application built with vs 2008 0n XP sp3.
I created a database with empty schema which i dropped in the root folder of the project and in properties i choosed Build Action: Embedded Resources and Copy to Output directory : Copy always. Now instead of having connectionstring in the app.config...
Hi everybody,
This one is actually quite basic, but I'm a little bit rusty.
My question is how do i open a new child window' but not as MDI application. What i want is that the user will select a command from a tab strip, and as a result the main work area of the application will display a new form (withing the main work area container...
I have a code
void SomeButton_Click(object sender, EventArgs e)
{
if (this.Controls.Contains(Panel2))
{
this.Controls.Remove(Panel2);
}
else
{
this.Controls.Add(Panel2);
}
}
My problem is: the code changes document outli...
Hi. Is there something similar in .NET components and if not, how to reproduce it?
Thanks!
...
Hi all
When I Use Picture (Every Picture) In WinForms in C#.net,My Application is Very Slow.
What Is Solution?
Edit::
I Use Picture From Resource into Background of Form.
...
I have a application that uses the Aero glass effect, so each pixel has an alpha value in addition to red, green, and blue values. I have one custom-draw control that has a solid white background (alpha = 255). I would like to draw solid text on the control using the GDI text functions. However, these functions set the alpha value to ...
I'm using SetWindowTheme and SendMessage to make a .net listview look like a vista style listview, but the .net control still has a dotted selection border around the selected item:
Selected items in the explorer listview don't have that border around them. How can I remove it?
Windows Explorer:
...