-
- DataGridViewComboBoxColumn binding
by Simon Martin
- 7 Replies
- Last post
by Simon Martin
- I am trying to populate a DataGridViewComboBoxColumn but I get nothing in the ComboBoxColumn and I can't see why. This first code block shows how I am creating the column and the 2 approaches I have tried to populate it (the foreach is commented out ). And then I add the DataGridViewComboBoxColumn to dataGridView1 (there are other columns that I am adding, but I have omitted them to keep the code
-
- Updating an application from WITHIN the application.
by Logan1337
- 7 Replies
- Last post
by Logan1337
- This is becoming a common ability: applications can check for updates via a web server and if there is one available, can download and update itself automatically. I am wondering what the general plan of attack in implementing such a feature would be. In my particular case, I need to do this from a downloaded (and run) executable, as I already have a program released that I want to provide the upd
-
- draw an image in original pixel size
by yaron-ct
- 7 Replies
- Last post
by nobugz
- Hi, I'd like to draw an image in original size (in pixels). According to doc DrawImage uses physical size by default. does that mean that:
Code Snippet
e.Graphics.DrawImage(image, new Rectangle(new Point(x, y), image.Size), new Rectangle(new Point(0, 0), image.Size), GraphicsUnit.Pixel); is the simplest way to do this, or am I missing something here
-
- select the row using checkbox
by Santhosh Pathipati
- 4 Replies
- Last post
by vinoth kumar.R
- Hi..
Iam using gridview for displaying the data.I gave the first column for checkbox.my requirement is while i check the checkboxes i want to select that row...........can u help!
-
- validation help urgent please
by Sathi
- 2 Replies
- Last post
by Sathi
- i have two text box and a combobox in windows form. i am able to validate the textboxes.
after that i would like to validate a combobox , so as to check whether user have made the selection before any further action such as save to be done. i am disabling the save button until the selections and entries are made
i would like to know in which event is good and what is checking
-
- Auto generation annoyance
by fishandchips
- 7 Replies
- Last post
by bimplebean
- this is single handedly the most annoying behaviour of VS 2005 when you edit something in the designer, change a property or whatever, then change selected item with left button... the next thing you know your in code window and its assigned some message that u dont want... any way to disable this annoying ***
-
- DataBinding to a custom user control
by Kevin Beck
- 0 Replies
- Last post
by Kevin Beck
- Normal binding behavior is that when a change is made to data within a textbox and that textbox looses focus the binding source CurrentItemChanged event fires. However, I have a custom user control with three textboxes. I created three properties and set the attribute tag [Bindable(true)] to allow for databinding from the designer. This seems to work correctly, except the binding source CurrentIte
-
- Data type mismatch in criteria expression
by Zara28
- 12 Replies
- Last post
by BonnieB
- Hello I am having a problem with a data type mismatch in a criteria expression. Here is the code
Try
OleDbConnection1.Open()
Dim command As String
command = "delete from Stock where Prod_ID = '" & TextBox6.Text & "';"
OleDbDataAdapter2.DeleteCommand.CommandText = command
OleDbDataAdapter2.DeleteCommand.ExecuteNonQuery()
Catch exceptiono
-
- Updating mulitple tables on the same form
by aabundez
- 5 Replies
- Last post
by Mathew1972
- I've got a form with textboxes and comboboxes for Instruments and InstrumentDetails. My dataset has these tables with a data relation/FK constraint which I consider one-to-one (One detailID to One InstrumentID) The child table's ID is set as the primary key, with no
auto-incrementing. I've tried setting the datarelation to Relation Only
and Relation+FK Constraint. I've successfully made updates
-
- MDI ToolStrip Merge
by R Raja
- 0 Replies
- Last post
by R Raja
- I'm forced to invoke 'ToolStripManager.Merge' in MDI_ChildActivate event everytime to switch between the child windows.
The sequence of operation in MDI_ChildActivate is,
* ToolStripManager.SaveSettings(...)
* ToolStripManager.RevertMerge(...)
--- Repeat for all the toolbars
* ToolStripManager.Merge(...)
--- Repeat for all the toolbars
* ToolStripManager.LoadSettings(...)
-
- NotifyIcon - BalloonTip
by kicaj
- 2 Replies
- Last post
by abcdef12345
- How to close BalloonTip on demand Example: when I click in the button on the form I want that the BallonTip was closed.
-
- ShowDialog to only block parent
by spanky4_3
- 10 Replies
- Last post
by spanky4_3
- Hi everyone,
I have a query regarding the ShowDialog method of Form. What I am trying to do is have a dialog form popup that only blocks its parent while the parent's parent (etc etc) remain active. I created a small test app where the start form creates a secondary form and uses secondaryForm.Show() to display it. On the secondaryForm is a button that (onclick) will create a dialog form an
-
- windows forms maximize issue
by KalpanaB
- 6 Replies
- Last post
by nobugz
- Hi,
I have created my application in vb.net.
In my application, there are three forms placed on a panel. These 3 forms(f1, f2, f3) individually can be maximized or minimized. On main form i have two buttons say b1 and b2. Clicking these buttons above 3 forms are displayed respective to that for. Means say 3 forms for button 1 are displayed. when i click button2, 3 forms for button1 gets hidd
-
- DataRowView Casting problem
by Nathan406go
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi All,
I am having difficulties getting around a casting problem in the folling code.
for ( int j = 0; j < 10; j++){ DataRowView row = ( DataRowView )clbcMasterCategory.GetItem(j); }
Note: clbcMasterCategory belongs to the type below... private DevExpress.XtraEditors. CheckedListBoxControl clbcMasterCategory;
Exception: Message "Unable to cast object of type 'Syst
-
- Form size - odd behaviour
by RichLeyshon
- 3 Replies
- Last post
by RichLeyshon
- I have a number of forms (I'm using VB by the way) that have identical layouts, a certain size with a centered Rich Text Box and a Back button - very simple.
However, one of the forms, always displays larger than the others despite having the same Size properties. In the designer, it looks fine.
There is no code whatsoever that could be changing the size - the only line of code added is the
-
- n-tier Winforms application
by Pete Walburn
- 2 Replies
- Last post
by Pete Walburn
- Isn't there anywhere on the web that I can find a simple example of a winforms n-tier database application written in C#.
I need an example that has physical tiers as well as logical tiers. A simple example to retrieve a record from a database would be good. I need to have a simple UI on the client PC and a business layer and data access layer on the server PC with the client communicating
-
- Mouse Events outside the form
by Virmundi
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hello, I need to know if a mouse button was depressed outside of the application. I want to do this in a CLR compliant way (meaning that I don't want to hook into the any ms window specific dll's). I know how to get the position of the mouse via the Cursor.Position. How to get something like Cursor.MouseDownEvent. Thanks for the responses, JPD
-
- Runnning ClickOnce app as Scheduled Task
by Tom25
- 0 Replies
- Last post
by Tom25
- Hello,
I would like to run a ClickOnce (offline and online) application as a Scheduled Task. The application installs, runs, and the ClickOnce updates work as advertised. When I try to setup the Scheduled Task the Wizard asks for the location of the program.
How do I find the exe location Will it change after a ClickOnce update
Thanks Tom
-
- Debugging script code with Visual Studio in a Windows Forms Webbrowser control
by SERware
- 4 Replies
- Last post
by SERware
- Hello,
I am Spanish and my English is not very good. I hope that you understand me.
It is the first time that I post a question. I have looked before for a solution but I do not find response.
I'm debugging a C# Windows Forms application that loads an HTML document in a webbrowser control. The Windows Forms application calls Javascript functions by means of
-
- Re-Installing windows xp pro
by KCChiefsFan
- 1 Replies
- Last post
by Bob zhu - MSFT
- I need help. I bought an OEM version of windows xp pro and i installed it on my home pc no problem. Well a year has gone by and the hard drive i installed has fried. When i went to install my (legal) copy of windows on my new hard drive ( same computer) it said the product key I have has already been used on another computer(IE my old fried hard drive). When i went to call microsoft and told them
-
- Rebuild project does not clean project
by bpeikes
- 0 Replies
- Last post
by bpeikes
- I have a setup project which I have added the Active primary output from my other projects in the same solution. The setup project is set to be built in both the Debug and Release configurations. I set the configuration to "Release", Clean and then Rebuild. If I look at the SourcePath attribute for the files listed under Detected Dependencies, I see that it is picking up files from by Re
-
- I am unable to provide persistence to drawing a line using Mouse at runtime.
by boyapati
- 5 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hai my dear Friends,
requirement : using mouse i want to draw a line b/w two controls . that line indicates
that both has the relation.
problem:: i have developed the following code. it is providing persistence for last drawn line only. but i want all lines to be persistent.
That means, whenever i minimized my form and re-opened it . it is showing me a last drawn line
-
- .NET IDE Corrupts DataSet Designer file ?
by Karl R Kaiser
- 2 Replies
- Last post
by Karl R Kaiser
- Howdy, I have created a moderately complex dataset having a parent-child table pair, and about 6 "lookup" tables. The data set will persist data from a SQL DB. The process of creating the dataset, using the designer, works fine: picking tables, setting query terms, specifying some field defaults. However, after saving it, the file <data set name>.Designer.cs is either corrupted or
-
- Problem with passing arguments to main[] function
by sakthivel-insoft
- 3 Replies
- Last post
by Christopher Payne
- Hai
My application is developed and converted into an EXE.
when running the EXE from the command prompt, i have to pass an argument to the main[] function as
MyApplication.exe "c:\Documents and Settings\my\note.txt"
while receiving the argument, the function holds only the value"c:\Documents"
args[0]="c:\Documents";
Can anyone please help me
-
- attribute for vertical text alignment in forms designer?
by exotericist
- 6 Replies
- Last post
by exotericist
- i have designed a custom control which displays a single line of text.
currently, on dragging the control vertically in the forms designer, only the blue lines for "aligned top" and "aligned bottom" display.
what is the attribute that allows the pink line for "aligned text" to display
many thanks,
e.