I have created a side tab that opens just fine(basically turned a UltraGrid into a tab, not a form w/ an UltraGrid ), but when pinning the side tab it gets sized in back of the main form.
How do I set the pinned tab layout to open up based on my sizing?
...
i am using .net win forms my mdi parent form contains the menu. If clicked the menu the form will be displayed. Up to now no problem.
>
UserForm uf = new UserForm();
uf.Show();
uf.MdiParent = this;
If i click the menu again another duplicate of the form created how to solve this issue?
...
I just want to check and make sure that a cell has some data in it. My situation is I have 3 columns in a DataGridView. When someone adds a new record the rows are blank. The first column is a ComboBox, the next two are just plain text. If someone just enters in one of the text boxes and doesn't select from the combobox, when they pr...
On a winform there is a combobox that derives its information from a datatable. The datatable draws from a database list.
this.cboList.DataSource = pullData();
this.cboList.DisplayMember = "fieldA";
Once the DataSource is set I am not able to insert a default row (ie *) as the first item in the combobox.
I tried this:
this.cboLis...
Currently working on a project where a login will be required to use the application.
I'm trying to figure out a smarter way to reset the application if someone is somehow logged out and the next one to login is not the same user.
The option I have come up with at the moment is storing all user specific data/information in a DTO but th...
Is there a way to set a SqlParameter's value with DataGridView, if data-bound?
For example:
SqlCommand selCmd = CreateCommand("SELECT * FROM table1");
SqlCommand updCmd = CreateCommand("UPDATE table1 Set column1 = @column1 WHERE id = @id");
updCmd.Parameters.Add(new SqlParameter("column1"), SqlDbTypes.Int));
updCmd.Parameters.Add(new ...
On this winform application I am writing, I want to secure one menu item from most users. It runs a month-end and cannot be easily backed out if accidentally run. The menu option opens up a window to prompt the user for some information before processing. I don't care where exactly I do the check, but I want to be sure only certain users...
I'm going through a final check of some of my code, and made a few name changes here and there to keep all of the naming conventions consistent. Now I'm running my code, and when I try to close a form using WinForm.Close();, it doesn't close anymore.
I changed all of the names corresponding to the WinForm correctly, so I'm confused a...
compact framework app: .net 3.5, c#.
i have a user control with 4 drop down lists on it. it's a progressive selection scenario - pick first drop down list, and the next one fills up with items. pick the next item, the third fills up with items, and same with third to fourth.
it seems that no matter how i set the tab order of these dro...
I've created a custom clipboard because it's not possible to make my whole class map serializable - which is a requirement for the windows clipboard.
However, I need to distinguish between users who are using my clipboard through a unique id. Basically, I want to be able identify a person who is sat at one PC with one or more copies of ...
I have a Windows context menu item invoking a Windows Form via these registry keys...
HKLM\Software\Classes\*\shell\myappname
HKLM\Software\Classes\*\shell\myappname\command
But when my Windows Form is started, I want it to be located near where the context menu was invoked. Is there any way to do that? I think I need to get the coo...
Hello SO and happy Friday,
WinForms have those three boxes in the upper right hand corner that minimize, maximize, and close the form. What I want to be able to do is to remove the minimize and maximize, while keeping the close.
I also what to make the close minimize the form instead of closing it.
How can this be done?
...
I have the following code. When i refresh my datagrid the row select is still select (note i only have one select row at a time which is why selectIndex is one value and not a list).
The problem is when i move my arrowkey up or down it starts from the beginning of the datagridview and not the row selected.
var ret = dataGri...
One of our company's Windows Forms application had a strange problem for several month.
The app worked very reliable for most of our customers but on some PC's (mostly with a wireless lan connection) the app sometimes just didn't respond anymore. (You click on the UI and windows ask you to wait or kill the app).
I wasn't able to track d...
I have a list-type UserControl (like a ListBox). The items inside the control are another complex UserControl containing a few other controls (ComboBox, TextBox, etc). I'm wondering what the preferred or best method would be to override to draw/layout the child controls. I basically want to trigger this method any time the list change...
Employee emp = new Employee();
comHandledBySQt.DataSource = emp.GetDataFromTable("1");
comHandledBySQt.DisplayMember = "FirstName";
The above code displays drop list of employees first names in a combo box. I want first name and last name to be displayed. How can i do it?
I tried to include two colu...
The System.Windows.Forms.FontBrowser is a pretty horrible piece of work. I'd like to write a custom one, but before I re-invent banging-two-rocks-together, I figured I'd ask if anyone knows an intuitive, friendly and above all simple Font Picker which has been proven in the cauldron of the real world?
...
Hi,
Is there an easy way of adding copy-paste for a listview, or should I just switch to DataGridView instead?
My application is kinda like an address book, it contains emails, numbers etc where copy paste would be useful.
...
. I get this error: "Cannot convert lambda expression to type 'string' because it is not a delegate type" - keyword select become underlined in blue Can you please advice.
Employee emp = new Employee();
comHandledBySQt.DataSource = from x in emp.GetDataFromTable("1")
select new { x.Id, Name = x.FirstName + " " ...
Hello,
I would like to ask what is the best way to implement functionality that:
User has for example 3 buttons on the main form, if he clicks on any button the form is replaced with another one where he has to fill some textcontrolls and after clicking accept redirect him to the main form.
Is it done by using visible and swithing it ...