-
- MDI: getting form handle affects child focus
by smhaig
- 4 Replies
- Last post
by smhaig
- Hello:
I have a MDI and multiple child forms. The only way to bring a child in focus and to the front of the other forms is by clicking on the titlebar. I have discoverd that this occurs only when I set a property on the form to the form's handle in the new() sub. It does not happen if I do this in the load event
Why does this happen.
here is the code for the child
Public
-
- Editing in Datagridview!
by doener
- 11 Replies
- Last post
by doener
- Wadup!
I have a GUI with a datagridview . The user can select some data (out of an integrated table) and the selected data from this table will be automatically written into a row of the Datagridview. Now that the data has been entered in the datagridview row, i want to implement a feature in which the user can manually go to row( with a mouse click for example) and make some changes in the dat
-
- panel layout
by Wallace_
- 5 Replies
- Last post
by Wallace_
- Hi, I have a panel in my windows form application that has six buttons in a single row. I want to layout the buttons so that when the window is resized they fill out (shrink and grow) at the same rate.
Is there a way I can do this
Thanks,
Wallace
-
- Step by step instruction. Open Form2 from Button on form1 C#
by Woody440
- 2 Replies
- Last post
by Figo Fei - MSFT
- Hi, anyone able to tell me please how to..
Click on a Button i named Next on Form1.. it will then open Form2 page not as an extra page.. but as though its a new page on the same window. ty
-
- filling a datagridview from a stored proceduer
by Ljhopkins
- 6 Replies
- Last post
by Ljhopkins
- I am trying to fill a datagridview from a SP but it is not working
Private Sub buildXLS( ByVal vennum As String )
Dim objconn As New SqlConnection(connstring)
Dim ocomm As New SqlCommand
ocomm.Parameters.Add( New System.Data.SqlClient.SqlParameter( "@vendornum " , System.Data.SqlDbType.Text, 15, "vennum" ))
ocomm.Parameters( "@v
-
- get linq results
by mommi
- 3 Replies
- Last post
by mommi
- This is the situation:
When I load my app, I want to get some data from the database with LINQ and bind it to a datagridview.
If the sql server is down, the app would be invisible for 15 seconds while the query is running (query executed in FormLoad), in order to avoid that I am using a backgroundworker. (which I start from the FormLoad event).
So currently my backgroundworker
-
- IDs not refreshed when new rows are added to Datagridview
by SSwam
- 3 Replies
- Last post
by Cael Z
- Hi,
I'm a newbie for .Net. I have a datagridview which is populated by a datatable. (Note: I fill this datatable by passing this datatable as a reference to another project that uses a dataadapter and dataset and return values in this datatable)
The grid is populated and when the user clicks on the "Add" button then I programttically create a datarow and put the focus on the newly
-
- Asynchronous calling question
by andriscs
- 13 Replies
- Last post
by andriscs
- Hi, I have a method that calculates directory size recursively. With large directory structures it is quite slow so I decided to start it on a separate thread so I could use my form meanwhile. I read a lot about threading but something is not clear. Here is my code:
Code Snippet
delegate long MyDirSizeDelegate(DirectoryInfo di); ... DirectoryInfo di=new DirectoryInfo(dir); MyDirSize
-
- Populating DataGridView in Rows and Columns from DataSet
by excelthoughts
- 4 Replies
- Last post
by excelthoughts
- Hi, I have a previous thread at http://forums.microsoft.com/msdn/showpost.aspx postid=1467164&SiteID=1 and had a further question on the subject. I have developed the following based on the previous post. Note that I have another datatable dtPeopleRatings which contains PeopleID and SkillCodeID. I loop through this datatable and add a row to the dgv for each peopleid and fill the checkboxes ho
-
- Modifying BidingSource
by vcbugreporter
- 6 Replies
- Last post
by vcbugreporter
- I wonder if I can modify the bindingsource to dispaly specific field from a table rather than displaying the whole table. Here is what I am talking about. I am using a commercial grid to display my data. I don't have any problem to display the whole table to the grid. For instance, the following code displays a whole table to the grid. grid1.SetDataBinding(table1BindingSource); Now
-
- "Enter" button focus
by pat562456
- 8 Replies
- Last post
by pat
- All they taught in college was Java. Now that I've gradutated and have the time I've been having some really big fun with Visual Studio 2005 Pro :-)
Question: Using the above IDE, I want to give an "Enter" button focus whenever the keyboard "Enter" key is pressed regardless of what control has focus. This is for a Windows Application. I tried setting the Form property &q
-
- cancel navigator add new on double add -using no null allowed exception
by hrubesh
- 3 Replies
- Last post
by Bruno.MMonteiro
- hi how can i cancel when the add button is pressed twice, i get no null allowed
Public Class Navigator
Inherits BindingNavigator
Private Sub BindingNavigatorAddNewItem_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles BindingNavigatorAddNewItem.Click
If BindingSource IsNot Nothing Then
Try
BindingSource.AddNew()
Catch r As No
-
- pagesetupdialog
by smsurendar
- 5 Replies
- Last post
by Gavin Jin - MSFT
- How do use page setup dialog in visual c#
-
- Validatechildren does not fire the validate event
by Rav1027
- 2 Replies
- Last post
by Rav1027
- I have a toolstrip with a save button and 2 textboxes on my form. When I click on the save button, i'm calling validatechildren. I would expect the validating event to be fired for all children (in this case both textboxes), however the validating event does not fire on the textbox that has focus. How can I get the validating event to fire for all children, even the one that has focus
-
- Bind ArrayList with object member to DataGridView
by missbluebar
- 3 Replies
- Last post
by Harminder Singh
- I wish to bind an ArrayList of data objects to a DataGridView. If the ArrayList contains objects of simple types no problem the grid is populated as expected with public property names.
However, if the objects of the ArrayList themselvescontain an object member, the object is representing in the grid by a single 'object' column. How do I implement Databinding to expand the member objects such a
-
- Search form dynamic sql
by erzfezsf
- 1 Replies
- Last post
by Rong-Chun Zhang - MSFT
- hello
i am trying to implement a multiple criteria search form, so far I have written the stored procedure which contains the dynamic sql.
I have a windows form with some search fields and a datagridview to show the search results.
what is the best way to implement the link between the form and the database
the storded procedure can receive a variable number of parameters, but alw
-
- Binding a textbox to the main Data Connection
by krussellm
- 3 Replies
- Last post
by Damiaan
- I would like a user to be able to go into a configuration or be prompted at startup to enter a server name and the entire application and data sources are now using that server. I don't want the user to have to go into anything advanced to make this change. For example, my current server is KRIS\SQLEXPRESS in the server explorer and my data sources point to this one server to retrieve and store da
-
- date & time difference
by Jassim Rahma
- 3 Replies
- Last post
by James Curran
- I have two DateTimePickers (dateFrom and dateTo)..
I want to get the difference in words..
for example, two days, eight hours, twenty two minutes
-
- Password change logic.
by Nadeem Alvi
- 2 Replies
- Last post
by Nadeem Alvi
- Hello, I have windows form as given below. ___________________ Old Password : [__________________] {name:txtOldPasswd} New Password : [__________________] {name:txtNewPasswd} Confirm Password : [__________________] {name:txtNewCPasswd} User shud be able to change their passwrod. Few things i need to check when user clcik on apply button ar
-
- DataGridView Gridlines
by Gilim6
- 2 Replies
- Last post
by Gilim6
- Hi, I have in most of the situations DataGridViews that have less records than the DataGridView height is. Therefore half of the grid is empty whereas the other half has gridlines. Is there any posibility to display grid lines in all "rows", but not by adding empty rows to the DataSource
-
- WebBrowser.Navigate IE7 pdf adobe not run in same window
by HDo
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- On some machine I found that when I call
WebBrowser _wb = new WebBrowser ();
_wb.Navigate( "C:\\temp\\test.pdf" , true );
IE7 will not run the adobe viewer in same window, but if I open up IE7 and type c:\temp\test.pdf IE7 will display the pdf in same window.
Does anybody have a suggestion to why IE7 has behaviour when invoke using WebBrowser.Navigate
-
- How to save data in a datagridview to a database?
by pmak
- 2 Replies
- Last post
by Gavin Jin - MSFT
- In a Windows form I have a "Save" button to save the rows of data from a Datgridview control to a database. The following is the code attached to the "Save" button with the "Click" event and it did not work. Help!
Dim ctl As New Datagridview
ctl = Me.dgv_Sales_Details
Dim r As Intefer = 0
For r = 0 To ctl.RowCount - 1
If r <> ctl.CurrentCel
-
- Deployment of .NET 2.0 framework?
by Rob Ainscough
- 2 Replies
- Last post
by PhilWilson
- How do I force my deployment setup to NOT look at the internet for .NET 2.0 framework
(this is NOT a click once deployment).
There appear to be 2 locations where I specify where my app should get .NET 2.0 framework from.
1 - right click on my Deployment Project that is part of my solution select Properties, under configuration properties select "Build", click on Prerequistes, ha
-
- Slow form loading time
by kasmatt2000
- 1 Replies
- Last post
by codyb
- Hi all
I have a real problem. I have made an app where each form has a jpeg image as it's background. When i run the app all the forms take a while to load the controls on them. At first i thought it was because i have too many controls and containers but i tried it again with just two textboxes and a button and its the same thing. Bottom line is as long as i have the jpeg as the form backgroun
-
- Corrupt Form - Designer cannot open : help
by GaMDH
- 5 Replies
- Last post
by Mike Hopkins
- Running Visual Studio 2005 using VB. Form was working fine, was in the process of debugging etc. Opened some other modules made changes. Went back to open my form and got the following Error
I saw a few other threads of corrupted forms after upgrades etc but didn't seen anything quite like this.
Anyone have any ideas
Thanks in advance
Mike
One or more errors enco