-
- How to program to retrieve selected rows in another form from a Datagrid form
by zw013
- 2 Replies
- Last post
by Gavin Jin - MSFT
- Hi
I have a datagrid in a form. An update button on the form upon clicking gives another form which should show all the records of the selected rows from the datagrid. These selected rows would then be updated. Could someone kind enough to provide sample code or ropes showing how to implement this
Appreciate any help
-
- DragDrop file into RichTextBox *without* icon?
by smarr
- 6 Replies
- Last post
by smarrocco
- I wish to drag a file from a folder on the desktop and drop it into a RichTextBox in my app. It works, but all I really need is the path & filename of the dropped file, which I can get from the dropped event. However, my RichTextBox always get the big icon of the file (an empty square with the filename to be exact) dropped into the dropped mouse location. How can I prevent this icon from appea
-
- Refreshing listboxes
by BeaverMan
- 5 Replies
- Last post
by Gavin Jin - MSFT
- hi guys,need help here
currently i'm displaying data from sql server 2005 database using a listbox
i binded a dataset to it and it does display the items i want displayed,but the problem is i do not know how to refresh the list immediately when a data is added to the particular table
any solutions
thanx in advance
-
- Use ComboBox's MouseOver event to show tooltip for individual items?
by ekb0211
- 2 Replies
- Last post
by nobugz
- Is there a way to use the MouseOver event (or any other event) so that I could show tooltips for individual items in a combobox as I mouse over them I don't want to have to select them to show the tooltip, just mouse over them. How would I get the item in the combobox in which the mouse is currently moused over I would appreciate any help. Thanks! P.S. I'm using C#
-
- Version information on the first page of install
by OmegaMan
- 3 Replies
- Last post
by Stefan Krueger
- I would like to have the version number, preferably of the item being installed, or of the setup project's version number. Is there a way to get that number in the display Or is the only way to manually change the Title to reflect the target version number by hand
-
- How to remove null values from a datagrid???
by Shepherd
- 6 Replies
- Last post
by Shepherd
- Hi All,
I am trying to remove null values from a datagrid.
Pigs
373
(null)
(null)
Cows & Bulls
6
(null)
(null)
Calves
5
(null)
(null)
Sheep
6
(null)
(null)
Goats
0
(null)
(null)
Rabbit
0
(null)
(null)
(null)
(null)
993
(null)
(null)
(null)
-
- Accessing objects on a form via a class
by Scionwest
- 9 Replies
- Last post
by JJ Jordan - MSFT
- I have a form with a text box and I need to access the textbox and some other events within the form class from a seperate class. How can I get access to that textbox The form is making a call to a method within the class
class.getCommand(command);
and then the getCommand method needs to be able to modify the textbox within the form.
Any suggestions would be great!
Thanks!
S
-
- Image
by Khalil_ck2002
- 13 Replies
- Last post
by janue
- Dears All,
I need to store the path of image in database in table student i make it nvarchar(1000) and i want to retrive it into gridview template col i make as bind but it give me error why help me please
with my regard
khalil
-
- Inaccessible Properties
by David J Klawiter
- 4 Replies
- Last post
by Ðãv? Â???????
- It is quite a source of frustration. In Debug, there are many properties that hold exactly the values I would like to access, yet those entries are not available on the IntelliSense context menus and if handcoded produce errors such as "object does not contain a definition for ..."
One example: Obtaining the LDAP path for the selected node in a treeview.
In debug, I can se
-
- dynamic control layout
by webb_er
- 1 Replies
- Last post
by Pincha
- Hi All,
Is there a way we could make the TableLayoutPanel behave similar to an
excel sheet, where we have a list of controls added (vertically), and
it should also be possible to add control between rows i.e. insert a
new row between two rows and push all controls (or rows) under it to
move down
I'm try to have this done dynamically, where the user would select some
option
-
- Binding at the OnPropertyChanged level
by RossL321
- 4 Replies
- Last post
by Yu Guo ¨C MSFT
- I am working in Wnforms using VS2005 and I am having problems with bound controls on my forms. I have bound many of my controls to properties of an underlying business object and set the binding context to OnPropertyChanged. The reason I do this is so that I can recognise immediately any value on the form is altered and allow validation to occur, including setting of button properties such as to e
-
- Installing a simple .NET application that uses MS Access
by ForEverLearning
- 4 Replies
- Last post
by ForEverLearning
- Hi
I have a simple application that does:
1-Use MS Access as a database on the LAN
2-Reads and writes data files
3-Produce a report in Crystal Reports (the version that comes with the .net studio)
I want to install this applicaiton on the LAN.
I will ask the LAN Admin to perform this work. He/she will manually install .NET Framework.
I need to give instructions
-
- Can I make my Message Filter targetting one child form in my MDI form?
by Feng26
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- Hi,
I have a MDI container that contains multiple child forms. In one of my child forms, I am using the following code to add a message filter to handle key_down event (don't ask me why, it's a long story but we need it) in this child form:
oMsgFilter = new MyMessageFilter ( );
Application .AddMessageFilter(oMsgFilter);
Everything works fine on my child form. But here
-
- Form.CausesValidation?
by Ejan
- 11 Replies
- Last post
by DBass63
- In .NET, the Form object also has the CausesValidation property which, in my experience, is really annoying . Here's why:
Suppose that I've a TextBox control, txtFiscalYear , which I want the user to fill before she can move to any other control on the Form except the Cancel Button . For this, I left CausesValidation property of all controls on the Form set to true and set it to false for the
-
- How to capture a "back Tab" (Shift+Tab) key?
by Feng26
- 3 Replies
- Last post
by Mick Doherty
- Hi,
I have a windows form that needs to handle a "back tab" key which is the combination of a Shift key and a Tab key. But when I try to handle this in my KeyDown event handler, I can only capture either a Tab or a Shift, but not both at the same time. In my KeyDown handlder, the "return true" in the following code never get hit:
if (e.Modifiers == Keys .Shift
-
- insert into table thru stored procedure
by jam66
- 4 Replies
- Last post
by jam66
- Hi
I am trapping the error in VB2005 and I am updating this information into a table. The problem is only 258 charecters of the Exception -ex.tostring() value is getting stored in the table even though the size of the field is varchar(4000) in the table and the size in stored procedure is also varchar(4000). Is there anything I can do to store the full message in this table-field
Th
-
- Load and resize image
by cgraus
- 3 Replies
- Last post
by JohnWein
- Obviously, I know how to load an image from a memory stream ( which is what I have on hand in this instance ), and I know how to resize it. What I want to know is, if I have a memory stream that represents a 4092x4092 PNG, does any method exist where by I can create a 1024x1024 ( for example ) copy of this image without having to have enough memory to hold the full size image as part of the proces
-
- Problem With NumericUpDown
by Dror
- 5 Replies
- Last post
by Tall Dude
- when i set the min value for 10 for example like this NumericUpDownMax.Minimum= 10 and then set again the Minimum to 5 for example like this NumericUpDownMax.Minimum= 5 the problemi is that the minimum doesn't change and stay at number 10 do you if I missed something Thank you in advance Dror.
-
- Problem with image quality after many resizes
by Speedie
- 1 Replies
- Last post
by Speedie
- In my program the user can insert an image file to the screen. Using the mouse to click on the resize portion of the images (black handles around the image) and by moving the mouse the image resizes. If the image is made smaller, then bigger again, the quality of the image deterioates. ie when making bigger, it makes the smaller image bigger instead of using the original image. CODE private void C
-
- Possible C# bug in a definition and use of an event/eventhandler in a user-defined class
by polocar
- 4 Replies
- Last post
by polocar
- Hi, I have
defined a class derived from Panel class (letĄ¯s call it MyPanel). It contains
three buttons, called btn1, btn2 and btn3. I have
defined an event called BtnClicked, and I have thrown it in the code of
btn1_Click, btn2_Click and btn3_Click (in practise, it raises when the user
clicks on everyone of the three buttons). Definition
of the event: public event EventHandler BtnClic
-
- taking a screenshot?
by bucz
- 1 Replies
- Last post
by nobugz
- How to make a "screenshot" of the panel in a program In menu I want to have an option to save all the workspace as a jpg image. workspace is bigger than the actual view - there is a panel with scrollbars.
-
- Pulling data from a DataSet using vb.net and then exporting to Excel?
by nbk5533
- 1 Replies
- Last post
by Gavin Jin - MSFT
- I currently have a DataSet pulls data by implementing a SQL Stored Procedure. It will then export it to an Excel spreadsheet and autoformat it. We will eventually have 9 million rows of data from which to pull.
I would like to be able to use vb.net to write code to use checkboxes that will use a boolean on which columns to keep and which ones to dicard. The drawback when I have the data in
-
- Copy a form from one project to another
by David Cleave
- 4 Replies
- Last post
by David Cleave
- Hi there Can anyone please tell me how to copy a form from one project to another I have tried copying the cs file using My Computer, and I have tried using copy and paste in Solution Explorer. Neither work. Why can't it be straightforward David
-
- Related records don't link to parent table correctly
by SiN!
- 2 Replies
- Last post
by Kiavash
- Hi,
I have a form with 3 tables.
Student Details
Students Courses
Student Course Units
Each student can take multiple courses, and multiple units for each course
I'm using the raleted tables from the dataset, so I understand ADO.Net should relate the child records with the correct foreign key.
I try to add a new course, then course units without, then sa
-
- ComboBox & Datagridview
by Diango
- 4 Replies
- Last post
by Diango
- Guys, I'm having trouble with an application I'm developing. I'm trying to get a "To Do List" that has a gridview which connects to a SQL database. My table has the following fields: taskID, TaskName, Completed. The completed field is a bit type which takes in true or false. The problem I have is, that I want the value to show on the gridview as it pertains to the comboBox. For example,