Answer Questions
Habib Heydarian MSFT DataGridView changes not saving!
Hey Guys, I am writing an app with Visual C# Express and have put a DataGridView on my form. It pulls data from an Access database and displays it fine, but when I edit, add, or delete a record from the DataGridView control the changes "appear" to have taken, however once I close the app and reopen or check the Access database none of the changes have taken affect. I didn't write any insert, update or delete statements as I thought that funtio ...Show All
Tim Rowell How do you use HIDDEN HTML INPUT in WinForms?
Hi, I want to make a link to a site of mine that takes hidden input parameters. Does anyone know if this can be done Thanks for any help! :) rasmas, no I'm afraid it won't. Your page more than likely uses the POST&nb ...Show All
Andrew Choi WINFORMS
I have a small question: I have a form(a){Main Form} and form(b){login form}. I want to load form(b) as dialog to form(a), when form(a) is loaded. Please help..! Thanq for the support... but there is a problem..the UI of FORMA is not visible..when i add the code.. HOW do i achive it. The reason that the UI of Form A is not visible is because ShowDialog blocks all com ...Show All
Bill Ward ClickOnce deployment at Orcsweb
Hello, I just signed up for a Beta2 hosting account at Orcsweb. They set the mime types for application, deploy and manifest and they have the Frontpage Server extensions, so I can just click Publish from VS2005. I published an empty windows form&n ...Show All
grclark Autocomplete in multiline textbox
Is it possible to have autocomplete in a multi-line textbox In a simple test, I enabled autocomplete on a textbox and set MultiLine == false, and the autocomplete works. But if I change MultiLine to true the autocomplete does nothing. I didn't see any mention of such a restriction on the use of autocomplete in the documentation, but maybe I missed it. Can it be done I am having the same problem, using vb.net ...Show All
J B Li Problems in Updating database using data bindings
Hello I am trying to update an access database with the databindings using the this code oleDaCampervan.Update(dsCampervan) But it does not update in my database unless I assign the position by itself like that Me.BindingContext(dsCampervan, "secondhandsales").Position = BindingContext(dsCampervan, "secondhandsales").Position oleDaCampervan.Update(dsCampervan) Then it updates in the table noemaly by this way I am wo ...Show All
Wong Junn Kit How can you create more than one string Resources file using vs.net 2005 beta2?
If I use visual studio to create a resources file it creates Resources.resources for me. But what if I want to create a few more different ones so I can break out some strings into more logical files. Maybe one reource file called "ErrorMessages" another called "FormLabels" Add a new item to your project, and select Resources File. ...Show All
Emil Helldin right click context menu
hey all, how do i get the right-cliked menu pop down to include options from my application. Like winzip and other application, do it i was'nt clear in my query.. sorry what i want to do is that when a user right-clicks on ...Show All
nove9nove DatagridView column instance name changed in Release version
Hi Initially I had been working on Beta version of VS2005. I was having 3 datagridViews in my form. Now I have moved to Release version of VS.NET. In Release version the instance name of datagridView columns have changed automatically.Since I have given same "Name" (Name property of datgridView column) for different columns it is throwing error when i tried to open the form in designer view. I know that, this is because in ...Show All
Davidmi Passwords in DataGridView
I need to display usernames and passwords in a DGV, and I have 2 questions : How do I display the password as a string of asterisks Right now, I am storing them in a List<string>, and then doing something like this foreach ( DataGridViewRow row in dataGridView.Rows) { string s = "" ; for ( int i = 0; i < passwordList[row.Index].Length; i++) s += "*" ; row.Cells[ "passwordColumn" ].Val ...Show All
Rpotthoff Getting the content of Textbox in one form, from another form
Hi all, i'm having two forms. Form1 contains a textbox 'txtId'.Form2 contains a grid. Based on the Id in txtId, the grid should get filled in Form2. When i try to access the text in TxtId in my Form2,i need to instantiate the Form1 class which leads to the creation of new object which contains 'null' for my TxtId. Help me to overcome this problem,immediately!!!!!! I referred How do I access a TextBox on one Form from another Form http://msdn ...Show All
HockeyNut Drawing polygons with multiple holes
I'm trying to draw a polygon with two holes in, but I can't make it create the holes correctly. Take a look here : http://sharpmap.iter.dk/images/polygonproblem.png Here's what I do: -------------------------------------------------------------------------------------- Image img = new Bitmap (pictureBox1.Width, pictureBox1.Height); Graphics g = Graphics .FromImage(img); PointF [] points = new PointF [] { / ...Show All
Andrew Thorpe Keep deleted records in DataGrid
Hello, I'm trying to make the System.Windows.Forms.DataGrid to display all rows from a DataTable (even deleted ones). I'm using the following code: dataGrid.SetDataBinding(myDataSource, myDataMember); DataView dataView=(DataView)((CurrencyManager)dataGrid.BindingContext[myDataSource, myDataMember]).List; dataView.RowStateFilter |= DataViewRowState.Deleted; The code works as I a expected (I mean it keeps deleted records in t ...Show All
JuliasW Getting selected value of databound combobox
If I populate a combo box manually with items, I can get the selected item using comboBox.SelectedItem.ToString(); But now I have created a databound combobox, but cannot find out how to get its selected value. comboBox.SelectedItem.ToString(); Returns System.Data.DataRow and comboBox.Sel ...Show All
Sridhar Madhugiri MSFT Developing a Keyboard component
I've developed a little HTML keyboard for typing Greek in Unicode (<A href=http://dev.basictheology.com/greekkeyboard.aspx>http://dev.basictheology.com/greekkeyboard.aspx</a>) and I'd like convert this to a WindowForms app. I don't really know where to start on drawing out th ...Show All
