-
- DataGridViewComboBoxColumn - SelectedIndex
by jimschor
- 6 Replies
- Last post
by nirav4343
- Hello All, Does anyone know how to set the list index of a DataGridViewComboBoxColumn. I have no problem populating and retieving the ValueMember. I just can't figure out how to set the DataGridViewComboBoxColumn to a specific item within its list programmatically.
Sound simple enough.
Your help is appreciated. Kind Regards, JimS
;^)
-
- Can't see new added item after the datagridview.dataSource property set
by Paolo Ponzano
- 1 Replies
- Last post
by Ken Tucker
- Hi, I know it can be a stupid question, it's 2 day I'm getting mad about that, I've this sample piece of code taken from the net :
Code Block
private void Form1_Load(object sender, EventArgs e) { List<Product> myProds = new List<Product>(); myProds.Add(new Product("Prod 1", 1, 1)); myProds.Add(new Product("Prod 2", 2, 2)); myProds.Add(
-
- Localization Question
by MyP3uK
- 2 Replies
- Last post
by MyP3uK
- I have a System.Windows.Froms.From (Form1) it's located in assembly named A (A)
I made it localizable and added two cultures ru and en, when assembly A is compiled it puts two assemblies
in bin folder ru /A.resources.dll and en/A.resource.dll as needed, and everything works perfectly.
But! i have a task to load assembly A dynamically from another assembly (let's call it B). I need t
-
- The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
by frgu
- 4 Replies
- Last post
by Jesper_
- I have an application that is distributed with click-once. One of my users already makes use of it for quite some time without any problems. Only recently, he is not able to launch the application anymore.
During the check that is made to see if there is a new version of the software, he gets the message: "Application cannot be started, contact vendor"
If I copy my application manu
-
- [c#]Choose the printer by code
by Raoul_BennetH
- 5 Replies
- Last post
by Raoul_BennetH
- Hi all I've this problem: Using CutePdfWriter, i was able to save some reports as pdf file. For the reason that the cutepdfwriter is not the default printer, i would like to know how can i manage this situation by code. For example, in the printerButton_Click event, go directly to the non default printer. Is it possible Many thx in advance RaouL.
-
- Creating Collections in Class
by ChristianBG
- 2 Replies
- Last post
by ChristianBG
- I have an item class which handles all the specifics of an item pulled from the database. Now this item can be many different types. Right now it is only good enough to handle one item at a time no matter what type it is.
My question is, is there a way i can add a collection to this class so that it treats each item as an item in a collection like the combobox does with each members in its
-
- Dataset
by Ajaidas
- 2 Replies
- Last post
by Gavin Jin - MSFT
- How to navigate through the relational dataset in vs 2003 and How to update and inserte into parent table from in the textbox there id did't bind in textbox (auto increment)
At the same time how to update and inserte into child table from in the datagrid there id didn't bind in datagrid
similarly how to delete both parant and child table corresponding datarows
Please help me.
-
- Why does ATL contorl receive WM_DESTROY mesage when it's loaded from a form in MDI App?
by bravew
- 2 Replies
- Last post
by Dan Olson
- I have an ATL activeX control, and I want to put that control into a child form in my C# MDI App. When I click "show child" menu, my child form should show up correctly.
But my ATL control receives WM_DESTROY when it's loaded, and this is only happend in C# MDI enviroment. I trid to load it from MFC MDI app, it's fine. In my WM_DESTROY message handling, I want to do some final clean up
-
- Sort datagridview
by Vasquez21
- 8 Replies
- Last post
by Guang-Ming Bian - MSFT
- Hello. I have problem, can anyone tell me how to sort datagridview like a int not, a char I have something like this: - 1 - 34 - 119 and now when i sort it, it will look like: 1,119,34, but should be 1,34,119. Thanks in advice
-
- Datagridview not displaying correct value
by Newt.Net
- 6 Replies
- Last post
by Newto.Net
- Hi all, I have a tabcontrol on my form that is bound to a dataset, with each tabpage is a child datagridview. When insert a new record, I retrieved the latest MAILNO (which is autonumber index primary key for the master table) using a stored procedure and set the MAILNOTextbox.Text to this. When I want to insert a new row for the child datagridview, the MAILNO column displays the old value, and th
-
- Mouse inside or outside the client area
by pasha2k
- 7 Replies
- Last post
by nobugz
- Hello everyone, How
can I check if the mouse is inside or outside the client area.. To be
more specific I have tried to make a calculation for inner controls but
this do not work for the Form. I also tried to add a MouseLeave event which sets the
mouseInside boolean to false and a MouseEnter event which sets the same
boolean to true.. But interestingly when my mouse is over a control inside
-
- Char-toggled checkbox?
by sturdy
- 7 Replies
- Last post
by sturdy
- Hi,
I need a checkbox that toggles on a char(1) field (Y/N)instead of a bit field. I can't seem to make the standard checkbox toggle unless bound to a bit field in the database. Since I can't change the database, is there a way to reconfigure or otherwise modify the existing checkbox Is a custom checkbox required and if so, how I'm still a newbie so need help here. Thanks in advance.
Sturdy
-
- deploy windows service
by JerryZhang
- 4 Replies
- Last post
by mracuraintegra
- Hi everyone
How to add "InstallUtil" to custom action->commit to install a windows service I tried but there always be a error when installutil run, and then exit from setup process. If it is not correct using installutil, how can I deploy my windows service with deployment project
-
- Is is possible to disable the mouse right click?
by Alexander75
- 3 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
I need to disable the mouse right click when a control (non microsoft) is clicked. This control is supposed to open a dialogue when is clicked but instead I need to perform other operations like closing and resizing etc
Is this possible
Thank you.
-
- how to reduce flickering
by algates
- 7 Replies
- Last post
by algates
- How can i reduce flickering in c# windows application by control styles where i want to write this code ..is there any other method to reduce flickering \\\ Regards , ALGATES............
-
- Listbox with icons
by perpetual_dream
- 8 Replies
- Last post
by perpetual_dream
- Hi,
I am willing to have an icon will will display infront of each listbox item so that the users can distinguish between "groups" and "users". So basically I am willing 2 add a listbox with listboxitems each of which has either the groups icons or the users icon. Unfortunately, I couldn't find any useful article or sample fully functional code online. Can anyone help by giv
-
- how to check if value of textbox is changed by pressing a button
by digdug
- 4 Replies
- Last post
by digdug
- i have a search button in my form.. but i only want to perform the search if the value of the textbox is changed ex:
search: "a"
run code......
search: "b" <-----
run code......
search: "b" <-----
dont run code since "b" is currently displayed
-
- open an app inside a form
by blr
- 3 Replies
- Last post
by blr
- I'm interested in creating a form with a panel and I would like to be able to open one program on one side and another program on the other side. For example, Word on the left and Outlook on the right. Is this possible
-
- Please give me the way to write RadioButton Class for DataGridView.
by pvphuc
- 7 Replies
- Last post
by pvphuc
- I want to use RadioButton in DataGridView but I do not how to do that. I just need a very simple Class for getting/setting its Checked state true/false. That is all I need for this control. Please help me to that. It is urgent Thanks in advance Best Regards, pvphuc
-
- ComboBox Databinding
by Dimitris Boundris
- 1 Replies
- Last post
by vtortola
- Hello,
I have two comboboxes that display two different columns of the same DataRow of a table.
Could you propose a solution how to implement that without using the event SelectedValueChanged
Do DataBindings.Add method or CurrencyManager offer a solution at this direction
-
- .net questions
by pratap thakur
- 1 Replies
- Last post
by Inbar Gazit - MSFT
- what is databinding with datagridview in vb.net2005
-
- Combobox Column in a Datagrid View
by Karl424
- 3 Replies
- Last post
by Help needed -Frank
- Hey, I am creating an application in vb.net 2005 that stores two types of logs (Standard & Problem) in a SQL database, these logs are viewed in a datagrid view on the form. When the application is run the datagrid view displays the Standard Logs for the current year by default, This is done by me binding the datagridview to the table in my SQL database using the smart tag. The user can also s
-
- .exe prereq not being downloaded
by theNetSmith
- 8 Replies
- Last post
by theNetSmith
- I have created an executable console app that needs to run as a prerequisite during the installation of my primary application in order to create a SQL Express database and database user and a DSN.
With the Bootstrapper Manifest Generator, I created the package for the .exe (with .Net 2.0 and SQL Express dependencies). Next, I added this package as a prerequisite for my ClickOnce deployment
-
- MDI Minimise/Maxamise Refreshs combo
by Andy Burrow
- 1 Replies
- Last post
by nobugz
- I have a toolstrip at the top of my child form (which holds various controls), in an MDI application, and when resizing or minimising/maxamising the MDI, it refreshes the controls (specifically the combo boxes) in the toolstrip and selects the first value in the list for them.
I don't want them to do this, but keep the previously selected value, before it decided to refresh.
Any idea
-
- string downloader
by Speak
- 2 Replies
- Last post
by Gavin Jin - MSFT
- ok im trying to make a program that will goto a website usign a webclient (already have this part) but in the string as most of u know, includes the whole .html web coding, but what i want is just the string, its basiclaly a leecher, that will go and get names, numbers anything from a site but instead of the whole .html code how can i make it just get those certain strings