|
Hi,
I am using datagridview control on my usercontrol. And I want to set datagridview control's row as deselected using
DataGridView1SelectedRows[0].Selected = false;
I have a function call bind grid which returns dataset and in usercontrol;s load event I bind it with datagridview. and next line is
DataGridView1SelectedRows[0].Selected = false;
but at this point runtime gives me an error like below...
first error message is " Index was out of range. Must be non-negative and less than the size of the collection."
Actual Error message is "this code has called into another method, when that function is finished, this is the next statement to be executed"
if anybody has any idea then please let me know...
Thanks Code project...
It People..
|
|
|
|
|
I would like to develop a feature from Linux Xserver that makes it possible to resize the currently active window by holding down a key sequence and drag the mouse. My problem is that I need to use the unmanaged Windows API to do that, and I can't get it to work.
I've tried to use a global mouse hook and get the window handles from under the mouse, but I could only get X,Y coordinates, and not a usable window handle.
Do you have any ideas on how to do this?
Edit: I used this to get the X,Y coordinates, but it's only a local hook (but I get a usable window handle, but since it's local, I only get the handle on the form, and not any other window)
How to set a Windows hook in Visual C# .NET
|
|
|
|
|
Hello There,
Can anyone let me know how can we add a row to a datagrid/datagridview control on the click of a button. The problem we face is that we can add the combobox once, but on further clicks the comboboxes are getting added in a separate column of the grid rather than the same column.
I hope I am clear with my doubt. A link to a sample app can also help me immensely
Thanks and regards,
ATUL
|
|
|
|
|
Where do I download a grid box control with check boxes embedded in it
Similar to a checked Combo Box
|
|
|
|
|
Hi,
go to Toolbox > DataGridView > click Smart Tag > Add Column > from the "Type" choose "CheckBoxColumn" (VS2K5)
|
|
|
|
|
Hi everybody!!!
How I can use ErrorProvider in DataGrid??? (It is for notice when the input data in some field is failur. In this case you mast see blinking of ErrorProvider in some field)
|
|
|
|
|
hello,
i want to change the data into an ini file during the setup of an aplication using installshield.
Note: the inifile is installed also by the installshield.
thanks regards,
dghdfghdfghdfghdgh
|
|
|
|
|
you thought about using custom actions?
|
|
|
|
|
Hi
Iam developing a desktop application in .net1.1.How to give shortcut keys to the buttons in the toolbar control?pls giv the solution for it.
|
|
|
|
|
Hi,
the easiest way is to have a MainMenu, with MenuItems each covering the same functionality
as the toolbar buttons; then assign a ShortCut property value to those MenuItems, and
you get it for free.
If you dont like this, you must handle the keyboard events, test for your letter(s)
and check the Control.ModifierKeys value at the same time.
|
|
|
|
|
Hi all I am Rakesh, I had a problem regarding setup project which includes directx
I had created a c# desktop application. What I want to do is when my application is installed in the target machine then it has to check whether the directx is installed or not. If not the application itself had to download form net and install, after installing the application has to continue the installation. can anyone help me regarding this task.
I had worked with bootstrapper regarding this task. But i think i am missing some information in product.xml and package.xml.
Rakesh
|
|
|
|
|
I am currently breaking throuh the ice of Windows Forms, this development environment is a bit different from what I'm used to. Basic functions and structures does not work like I want them to which creates huge ammounts of frustration since I get stuck at nonsense.
I would need something like a "Beginners Basic Tutorial that leads you by the hand with small babysteps towards great achievements". If someone know where I can find this, please point me towards it.
For the moment I'm creating a simple zoom-function for an image and I want to use an array for the different zoom-sizes. I can't figure out how to declare the array and hardcode some doubles into it. This is a quite typical example of what I get stuck at, please enlighten me on how to declare them arrays.
::peace
|
|
|
|
|
Dim ZoomLevels() As Double
Seriously, before you frustrate yourself out of a job, pick up a book or two on Beginners VB.NET.
|
|
|
|
|
|
That's not an array or is it?
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
My blog
|
|
|
|
|
Sure it is! It returns an array of search results!
|
|
|
|
|
Digital_Scapegoat wrote: I can't figure out how to declare the array and hardcode some doubles into it. This is a quite typical example of what I get stuck at, please enlighten me on how to declare them arrays.
If this is where you are getting stuck, you really need to pick up a beginners programming book and a good introductory book to your programming language (VB.NET or C#) and start from there.
Digital_Scapegoat wrote: this development environment is a bit different from what I'm used to. Basic functions and structures does not work like I want them to
What development environment are you used to? The behavior of the functions and control structures are the same in any of the .NET languages and are the same as in almost any other procedural language. The object oriented concepts in .NET are also the same as in almost any other object oriented language (except maybe SmallTalk).
Again, if these are the kinds of things that are causing you problems you need to build a good base understanding the fundamentals of object oriented and procedural programming and then learn the syntax for you chosen programming language.
|
|
|
|
|
how can i copy files and folders from a specific location on my computer to a remote pc on my network using c# code and a window form based application
|
|
|
|
|
It's only that urgent if you have to pee. Go ahead, we'll wait...
Oh! Adn do NOT cross post in multiple forums. It's called spamming and is considered very rude.
|
|
|
|
|
Dave Kreskowiak wrote: It's only that urgent if you have to pee.
Added that to my growing list of sigs
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
Your sig is different for every post. Do you have something that just pic's a random sig when you click "Post Message"??
|
|
|
|
|
Hey Dave,
I use CPHog. I have different sets of sig on my desktop machine and laptop, so sometimes they are random. CPHog actually has a checkbox for randomizing, which I've not used yet.
Paul
"I've seen more information on a frickin' sticky note!" - Dave Kreskowiak
|
|
|
|
|
Man, I've got to be one of the only top 25 posters to NOT be using this little toy!
|
|
|
|
|
Are you using Firefox or IE? CPHog is only for FF. I don't want to start a browser battle. I do use both ( and sometimes Safari for Windows ).
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Nah, mostly IE. FF only if I get really pissed at IE for some reason.
|
|
|
|