-
- How to get at the dataGridView data ?
by Brad R
- 6 Replies
- Last post
by Bob zhu - MSFT
- Im looking at examples, am using C Sharp 2005. Made an Access database that has description, name, value
Trying to initialize variables with the values from a column. all it will be is when it runs, to take a foreach column has data in Row[x] and take the 15 global variables in my program and assign them to the corresponding entries in the colum marked "value"
the other co
-
- How to make a DataGridViewCheckBoxCell invisible in a visible column (or row)
by R.E
- 1 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
I am trying to put a blank cell instead of a checkBoxCell in a DataGridView were all columns are CheckBoxColumns. I don't want to make the whole Row or Column invisible, just a certain cell where "i don't want a checkbox to appear".
Now, I tried to make the designated cell invisible, but it seems that the visible property for Cells is ReadOnly. If you require further clarificat
-
- Textbox scrolling
by Danny Tykon
- 6 Replies
- Last post
by Danny Tykon
- When I use textbox.appendtext(buff), buff is successfully appended to the textbox and the textbox automatically scrolls.
However, there seems to be a limit... the scrolling stops (as does the data being appended) after a certain amount of data is appended.
I have the maxlength set to 0 and have also tried setting it to 1,000,000.
I have resorted to:
textbox.text+=buff textbox.selection
-
- Splitter Distance Error
by Bloom326984
- 9 Replies
- Last post
by Bloom
- Hi there,
I am getting a strange error with my SplitContainer when trying to manually set the SplitterDistance value.
The SplitContainer.Orientation is set to Orientation.Horizontal, the SplitContainer.Panel1MinSize is set to 25, the SplitContainer.Width is set to 150, and the SplitContainer.Panel2MinSize is set to 25.
When I try to set the SplitContainer.SplitterDistance valu
-
- problem with datagrid
by nour mohamed
- 1 Replies
- Last post
by Yu Guo ¨C MSFT
- hi!
in my datagrid there are multiple records that needed to be inserted to my database. my problem is that it would be inserted to only one row and it would depend on the id.
for example:
- the datagrid will have 3 columns (student id, subject, grade) the rows will be (2006-01, Math, 88), (2006-01, English, 87).
- the database has 5 columns (student id, math, english, science, history
-
- why my progressbar doesn't work in thread?
by wenliang
- 12 Replies
- Last post
by wenliang
- my code is listed below:
private void button1_Click(object sender, EventArgs e) { myProgressBar.Value = 0;
}
private void button2_Click(object sender, EventArgs e) { myProgressBar.Value = 50; }
private void button3_Click(object sender, EventArgs e) { myProgressBar.Value = 100; }
private void button4_Click(object sender, Event
-
- Databinding with overview and detail form
by Christian Burgener
- 2 Replies
- Last post
by Gavin Jin - MSFT
- Hi,
I try to build an application which has an overview form with a DataGridView and a detail form with the appropriate text fields.
Who can tell me now how to bind the DataSet, BindingSource and the BindingNavigator of the detail form to the overview form with the datagrid
BR / Chris
-
- Change Installation Path for an Add-in
by JesusSe
- 0 Replies
- Last post
by JesusSe
- Hi,
I'm trying to install an Add-in for Visio 2003, and I need to know the folder Visio is installed. First I want to search if the correct Visio version is installed, so I add a Search Condition to evaluate that and it works fine.
But now, I want to use the path where Visio has been found to set it as my Installation Default Path. I've tryed to set it with a custom action, setting assemblyf
-
- Controls unregistering their own events
by PolkaDance
- 4 Replies
- Last post
by Peter Ritchie
- Hi,
I have a memory leak problems that is resolved by either nullifying the datasource or unregistering the events of a Combobox. Nullifying the datasource might trigger events so I'd rather not use that solution. I could -= all the events of all my controls but what's I'd rather have is a way for the components to unregister their own events and since they don't know which ones were regist
-
- Hide method doesn't work on program's first execution
by rolandpish
- 4 Replies
- Last post
by rolandpish
- Hi there. In my application I have a main MDI form (called frmMain) and a login form (frmLogin) . frmMain is the main module of my application. I have the following code on frmMain load's event: this.Visible = false; this.Hide(); _frmLogin = new frmLogin(this); _frmLogin.ShowDialog(); When I execute the application for the first time on the current session, frmMain loads but remains visible and th
-
- File verification
by Scotty2012
- 5 Replies
- Last post
by Guang-Ming Bian - MSFT
- I am trying to verify that some files on a hard drive are also listed in a database, and that file names listed in a database are also on the hard drive. I want to know if there's a more efficient way than what I'm doing. The files are divided randomly into some folders (so not to kill windows with millions( ) of files per folder). The files are stored like this Mainfolder __12345 __23456 __345
-
- Take two string from a string
by Biswajitghosh25
- 3 Replies
- Last post
by Derek Smyth
- Dear All,
I have taken a string in my code. I want to take the last two characters from this string. Can any body tell me how.
e.g. the string is "Biswajit". I want to display the last two characters that is "it" from the right. Can any one tell me how it will be in c#. by sending a small code snippets.
Regadrs,
Biswajit
-
- Form controls reorder on show
by spanky4_3
- 6 Replies
- Last post
by spanky4_3
- Hi everyone,
I have a baseform which has 3 controls (a Panel, a splitter and a UserControl) that add to the form's Controls collection. I inherit from this form and add some controls to Panel (not directly to the form's Controls collection). The 3 base controls are docked such that the usercontrol and the splitter are on the right and the panel fills the remaining space. Obviously I want th
-
- DataGridViewComboBoxColumn - Display vs. Actual (data) value
by David N.4117
- 3 Replies
- Last post
by Price Brattin
- Hi All, Is there a way to specify display value and actual (data) value for a DataGridViewComboBoxColumn For example, my database table has a column account_type of type NCHAR(1), which is used to store either 'C' for Credit or 'D' for debit. When the data records are retrieved from the table and displayed on a DataGridViewComboBoxColumn cell, I want it to be displayed as "Credit" or "Debit
-
- Strange problem with DataGridViewComboBoxCell
by StillSeeking
- 3 Replies
- Last post
by StillSeeking
- Greetings,
I am constructing a user interface that uses the tab control with two tab pages. Both have DataGridViews that are bound when the user loads an object and both have contain a column with the DataGridViewComboBoxCell that are bound with child/parent related binding sources.
If I load dataset and Databind to both DGVs, the one displayed on the first tab page shows fine. When
-
- Printing an Image with Color Profiles
by Joel Hess
- 1 Replies
- Last post
by nobugz
- I'm trying to print an image and an finding out that the color matching options that are specified in the driver are not being applied. Specifically, there is supposed to be an ICM Color Profile applied to the output that isn't. I'm not doing anything special, just Graphics.DrawImage(), and PrintDocument.Print.
I can't find anything in the documentation that says that I am responsible for a
-
- find a string in datagridview
by damla.yilmazer
- 8 Replies
- Last post
by Biswajitghosh25
- Hi,
I want to search a string value in datagridview. But i don't know how i do it. please help me. I try to do it and finally wrote a code like it:
string aa= cozellik.SelectedItem.ToString();
if (aa == dataGridView1.Rows[0].Cells[1].Value.ToString())
{ MessageBox .Show( "There is this record." );}
else {}
but this code searching in Rows[0]. I want it sea
-
- Hyperlink in Datagrids
by jkm_22
- 1 Replies
- Last post
by Ken_L
- Hi I have a windows application coded using Visual C# in .NET 2005. The application queries data stored in an MS Access table. One of the field in the access table contains text which is hyperlinked to particular files on the local machine. Say, I have a field called TITLE and all each of the specific documents (pdf or word) are hyperlinked to the corresponding record in the TITLE field. I am able
-
- more than one curve?
by HbH
- 7 Replies
- Last post
by nobugz
- this is really urgent, I need help about it..
I'm drawing a curve, and taking the coordinates of the points of the curve by clicking the mouse on the picturebox. I'm using a dynamic arraylist to get the best result about it and it works really good.
but the problem is, whenever I click the mouse, it give an additional point to that curve. What I want is, to finish adding points to a curv
-
- how to hide the vertical scrollbar of listbox
by jazeel
- 6 Replies
- Last post
by jazeel
- hi, i am a beginer in the world of C# 1.
I want to hide the vertical scrollbar of a listbox . In properties i
can hide the horizontal scrollbar , but there s no option for vertical
scroll bar.how can i hide this 2. I also want to call
the event of vertical scrollbar on a button click.. i dont know it is
posible or not... Is it possible then can u give any tips thanking you in advance jaz
-
- C# show new form vs vb way
by Bear23
- 14 Replies
- Last post
by Marc Guvenc
- This is just a question. Why can C# not show a form as easy as vb.
Form1.show();
instead we have to create a variable for it, etc..
Form1 Form1 = new Form1();
Form1.Show();
The same goes with calling another class, etc. What I always have to do is I create a blank class then set public variables in it. and from my other forms I always have to do this.
Classcreated.var
-
- Saving and loding TreeView problem using List<TreeNode> collections
by Tal770
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- hi,
I'v looped on a treeview and stored all the nodes in List <TreeNode> collection
Code Snippet
private void GetNodes( TreeNodeCollection nodes, List < TreeNode > list)
{
foreach ( TreeNode node in nodes)
{
list.Add(node);
GetNodes(node.Nodes, list);
}
}
suppose I add
root -- node0 -- node2 -- node5
| |
-
- Derived Control child docking
by Steve98796
- 7 Replies
- Last post
by Steve98796
- I have created a class for a control. I have tried deriving the class from UserControl, ContainerControl or an existing control and the following issue applies to all.
The class I have created for a control contains a Panel docked at the top.
When I use this control on a form in the VS designer, the control appears ok with the child panel docked at the top.
Now I want to use t
-
- how to add such checkbox column?
by Jassim Rahma
- 3 Replies
- Last post
by Yu Guo ¨C MSFT
- Hi,
I am using this code to populate data into datagridview and i want to add a simple checkbox column which is not related to any field in the database but it will be used for the staffto select the visit and make the payments for the selected visits only.
how can i do that
public void get_visits() { this.Cursor = Cursors.WaitCursor;
data_table = new DataTa
-
- Disable file name text box in SaveFileDialog?
by DontFret
- 2 Replies
- Last post
by wirol
- I am using the SaveFileDialog class to prompt the user for a location to save a particular file. The kicker is that I don't want the user to be able to change the name of the file. I want to display the file name that I specify through some c# code, then disable the file name text box so that it can't be changed. The SaveFileDialog class does not have a property to disable the text box. Is there s