winforms Questions
2
On program startup, in debugger trace, I can see this:
'VideoPhillPlayer.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aef...
6
When I create WinForms project or Control Library project for .NET 6.0, the designer toolbox is empty with information "There are no usable controls in this group".
Reseting toolbox does ...
Easement asked 18/8, 2022 at 11:38
2
Solved
i am new with Nodes here.. :) i came up with this algorithm but it only shows the list of parent nodes.. like this..
a
a.txt
b
c
c
m
n
b
o
p
etc...
i want the next node will be put in one...
Evidentiary asked 4/6, 2011 at 21:36
4
Solved
I'm trying to open an excel file using a button click. And for some reason it's not working. I've tried several things. Any ideas why they are not working?
Method 1 I have tried. This opens the fi...
4
Solved
I'm using Visual studio 2012 & I'm using Win Form app called Form1 & add a new item which is wpf Window is called "wpfWin". I want to open the wpfWin through a button in the Form1 once it's...
8
5
Solved
I have my solution implemented (basic solution) and I'm happy.
Problem is when I add new items to a ToolStripItemCollection using the 'Add' method, I get a few overloads ... the meaningful one be...
9
Solved
I have a WinForms application with a DataGridView, which DataSource is a DataTable (filled from SQL Server) which has a column of xxx. The following code raises the exception of
ArgumentExcepti...
Nickelsen asked 18/11, 2012 at 1:15
5
Solved
I have this DataTable with the following structure:
ID | VALUE
----------------
1 | Item 1
2 | Item 2
3 | Item 3
And I display the values from the DataTable into a CheckedListBox control by addi...
Thong asked 27/9, 2010 at 5:20
6
Solved
I have a DataGridView in a Winforms app that has about 1000 rows (unbound) and 50 columns. Hiding a column takes a full 2 seconds. When I want to hide about half the rows, this becomes a problem.
...
Betthel asked 20/3, 2010 at 13:45
6
I have 10 records of data in a DataTable which has 3 fields "Foo", "Bar", and "Baz".
If I connect wire this into a DataGridView I see 10 rows and 3 columns, and the column headers display the name...
Mcspadden asked 12/5, 2009 at 16:27
2
Solved
Currently I'm trying to do what I thought would be a simple task:
Draw an image onto the full area of a Panel control in Windows Forms. (Please ignore for the moment that I could use the Backgroun...
2
I'm currently designing a simple WinForms UserControl in C# where a user can drag and drop an excel file onto a panel instead of browsing for the file. I have it technically working, but it's very ...
Duplication asked 9/6, 2017 at 20:26
5
I have a WinForms application. Each form and user control sets up its tooltips as follows:
// in the control constructor
var toolTip = new ToolTip();
this.Disposed += (o, e) => toolTip.Dispose(...
Corolla asked 28/11, 2014 at 16:15
7
I want to have an uneditable ComboBox but still show a white background colour, so it is effectively styled like the default ComboBox style (DropDown). The ComboBoxStyle.DropDownList only provides ...
4
Solved
I just would like to know if it is possible to dock a windows form on top of the user screen? I have been trying to do this by manually setting the position of my form to the coordinates I want. Bu...
Mahatma asked 9/7, 2010 at 15:55
5
I have a UserControl with multiple fields that I would like to have bound to a BindingSource. I would also like the UserControl to expose some BindingSource property so that it can be dropped on a ...
Transvalue asked 11/6, 2009 at 17:9
4
Solved
This:
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keypress.aspx
...indicates that I should have access to e.KeyCode in the KeyPress event, but I don't seem to. I'm trying...
16
Solved
I have a DateTimePicker (nullable version) that I need to be read only. I'm not happy with the display if it is disabled, so wanted to know if anyone had a nifty example of how to stop updates on t...
7
Solved
Is there a possbility to disable animation of the progress bar?
I need it for some pocess which is paused and not running at the moment. An average user would think the process is running if the p...
5
Solved
Is it possible to access all the WPF Items from a winforms Project when selecting "add new Item" in VS 2010 ? I only have access to WPF userControl by default.
I would like to add a WPF Window to a...
Ahithophel asked 16/12, 2011 at 12:20
5
Solved
I am trying to convert bitmap into icon. But there is some error as the resultant file is just blank.
private void btnCnvrtSave_Click(object sender, EventArgs e)
{
Bitmap bmp = new Bitmap(sourceF...
26
Solved
I have an application with one form in it, and on the Load method I need to hide the form.
The form will display itself when it has a need to (think along the lines of a outlook 2003 style popup)...
8
Solved
I have a method to detect the left click event that visual studio made by double clicking on the form.
private void pictureBox1_Click(object sender, EventArgs e)
{
MessageBox.Show("Left click");
...
Tress asked 18/10, 2013 at 11:15
10
Solved
I have a class which give me this error
public class Item
{
public string Name;
public int Id
public Item(string name, int id)
{
Name = name;
Id = id;
}
}
Here is my function
var l...
Garling asked 10/9, 2014 at 9:26
© 2022 - 2025 — McMap. All rights reserved.