DataViewGrid - Determine That The Selection Starts At Row 3?
Jan 21, 2012
I can get the collection of selected rows but I cannot find a way to determine which is the first selected row. E.g. the table has 20 rows, the user selects rows 3,4,5,6 using the mouse on the rowheaders.How can I determine that the selection starts at row 3?
View 1 Replies
ADVERTISEMENT
Dec 15, 2011
When I open my form that contains a DataViewGrid the first row is always automatically highlighted in blue showing that it is selected. If I use
[Code]...
View 3 Replies
Jan 20, 2010
on my Form I have a DataViewGrid and some textboxes with a save button (they are filled with additional data of the selected row).Save is disabled first, when I change something in the textboxes the save button is enabled.When the user changes a gow in the grid, I want to ask before changing the grid row, if he wants to save (if the button is enabled).I am using RowEnter but this is too late, then the selected row already changed (and my textboxes already got new data)...What event can I use to ask if I should save stuff before the user changes a row?Something like BeforeRowChanging with a chance to cancel changing the row?
View 2 Replies
Jul 16, 2010
I want to make that program starts when computer starts. I have no idea how to do that.
View 4 Replies
Sep 12, 2011
Is this operation possible? I cannot find anything on it. I have something I'm working on and I have tried several techniques all fail.
View 15 Replies
Sep 9, 2010
I have a DataViewGrid that is populated with emp records sorted by a 'header' record listing the managers name. Currently, the user is a ble to select any row, even the manager row. I want to modify the program to prevent users from being able to select the manager record or 'header' record
View 9 Replies
Feb 6, 2012
I have some very long datasets how can i setup so they wrap in the Datview grid rows??
View 2 Replies
Aug 16, 2009
I am using VS2008 using VB. I have a datagridview sourced to a dataset. There are 5 fields mapped to the datagridview, three are read only. I am using the 'RowLeave' event to do some processing.
I am using the 'CellEnter' event to 'SendKeys" a tab in the read only cells. The question is simple: how do I allow the user to enter data into one of the 'editable' cells and change the 'Enter' key into a 'Tab' key, so that the data they entered is in the cell and I tab over to the next 'editable' cell, even if it is in the next row?
View 1 Replies
Dec 26, 2011
I'm trying to figure out how to get a query for multiple columns in my dataviewgrid.. So far i havn't even been able to make a single column query work, when i search something in First_Name for example, it returns nothing. ive used query builer, ive written the code myself, nothing seems to work.
View 3 Replies
Nov 10, 2009
I added a DVG to the form. Then I clicked on the small box and selected a data source through the design screen. I chose the connection and then the sproc to get the data. This all works fine. That was added in the Load sub automatically. I will make changes to the cells by code rather than allowing the user to change the cells themselves. Then I want to click a button and save the changes to the table. Everything I have tried does not work.
View 7 Replies
Feb 4, 2010
when opening a form I parse all items, in this case the Masked Tex boxes.
I am in Germany, I want . to be a thousand separator and , to be a decimal separator.
txt.Mask = "999,999.00" does not work, I do not understand why. Can anybody give me a hint?
txt.Mask = "999.999,00" does also not work.
Public Sub config_maskedTextbox(ByVal txt As MaskedTextBox)
[Code].....
View 1 Replies
Feb 15, 2012
I am trying to search a Access Db via a TextBox1 a Button1 and a dataviewgrid.My sql statement loks like this:
Select LastName FROM Clients WHERE (LastName LIKE 'TextBox1.text')
This doesn't work I have tried '" & "' around the textbox words I've tried '& TexBox1 &'. This I tried to learn from Data over forms video-- LIKE @LastName +'%' that really didn't work. If I use = "Bla bla" it will work but the LIKE word does not. Even a point in the right direction. I've spent many many many hours on this. And what makes me mad is I've done it somhow before even with a combobox as a variable in the SELECT "var" but anywayI'm wondering now if the LIKE statement isn't used in Access? and if the % wildcard is used in Access?
View 1 Replies
Nov 1, 2009
I wanted my search result to display in the DataViewGrid but it shows nothing when i click the search button or anything i did wrong?
[Code]...
View 1 Replies
Apr 22, 2011
I am trying to use a DataViewGrid to show certain transactions.I also have a TextBox for the user to enter the transaction ID to fill the DataViewGrid.In the Query Builder it works if I give the NABTransID in the Query but I want it to read the TextBox1.text to find the transactions.
[code]...
View 2 Replies
Feb 27, 2009
I am trying have a data grid selection populate a form. I am new to this.Basically I have a connection persistance object and I would like to call that and call a stored procedure with the value of the selection. The datagrid is bound to an object.
[Code]...
View 1 Replies
Dec 25, 2010
I have a listbox (20 Items) with multiselection and label that disply the selection and one button. So I wrote (it works fine)
[code]...
Now when I click on button the label show lets say Item2,Item5,Item10,How do I take off the last ","
somthing like that Item2,Item5,Item10
I used to do: Dim s As String = Trim(Label1.Text)Label1.Text = s.Substring(0, s.Length - 1) but it give me an error converting intiger to string
View 6 Replies
Jun 16, 2009
osheet.Range("A1").Select
'The line below is the one I would like to know how should I write it in VB.NET:
osheet.Range(Selection, Selection.end(xlDown)).Select
[code]......
View 3 Replies
Aug 26, 2011
I am using this code to select a folder.how to do the same kind of thing selecting a file instead of an folder.
Private Sub PathButtonB_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PathButtonB.Click
Using FolderBrowserDialog As New FolderBrowserDialog
With FolderBrowserDialog
.Description = "Kies die Folder waar hierdie ResepteBoek die Kunswerke vir sy Resepte moet gaan soek."
.ShowNewFolderButton = False
[code]....
View 4 Replies
Mar 18, 2010
Found this:
Sub SurroundWithAppendTag()
DTE.ActiveDocument.Selection.Text = ".Append(""" + DTE.ActiveDocument.Selection.Text + """)"
End Sub
But I can't seem to figure out how to loop through each line of text in the selection.
View 1 Replies
Jun 15, 2010
For some time ago i have notice that my App on every start make a call to csc.exe and starts it. I know for sure that that did not happened before and I can not find out why this is happening now, or better to say: what did I do in code to make this happened? I have google-it and found out that csc.exe is some kind off on-the-fly compiler for C# (If I understand it correctly ) but my App is in VB.net so I am a bit confused. Can someone explain it to me in general what have I did in my VB.NET code to make my App on every start calls csc.exe?
View 17 Replies
Feb 2, 2010
Im using this , but were shall i use it , on form load ?
Dim regKey As RegistryKey
regKey = Registry.LocalMachine.OpenSubKey("SOFTWAREMicrosoftWindowsCurrentVersionRun", True)
regKey.SetValue("MyExecutable", "C:MyExecutable.exe")
regKey.Close()
Also i have a checkbox on my form , how can i have it that if its checked before i close the application it will open up next time in start up windows , if its unchecked before i close it wont startup when windows starts ?
View 10 Replies
Feb 7, 2011
the issue is that customactions class in my VB 2010 code, correctly configured, does not start the program after installation, neither sets the autorun, it seems that subroutine OnAfterInstall isn't invoked at all.
Note that process termination before installation (for upgrading purpose) eventually works.
[Code]...
View 1 Replies
Sep 19, 2009
I am making an auto login program, and what i am trying to do is have it so when you press a button (button1) it will start the web browser sub. I have to have the code for the login in the web browser sub because otherwise it wont work. But I want it so that the button will start the code in that sub.
Public Class Form1
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
[Code]....
View 4 Replies
Jul 22, 2011
I have a solution that has three projects. One is a service, one is a form, and one is a class library. I use the form for debugging, my logic is complete now I would like to just call.
[Code]...
View 1 Replies
Jun 25, 2009
In some applications, like taskkill.exe you can send info to the app when it starts up. By that i mean taskkill.exe /f /im 123.exe.... how do i make my VB.NET app read that info on startup so i get it in a string like this "/f /im 123.exe". I have absolutly no idea what this is named,so thats why im asking here.
View 3 Replies
May 17, 2010
I need to check if a label starts with a certain text, but it wont work!Here is the code I have:
Dim str1 As String = Label1.Text
Dim value As String = "abc123"
If str1.StartsWith(value) Then
'do something
end if
May I also add that the label i'm checking (the text inside it) has no spaces, i don't know if that makes any difference.
View 5 Replies
Jun 23, 2009
[code]...
i have a text file like above. I want to change the Column which starts with red colour to T1,T2........Tn. I used this code.
[code]...
View 2 Replies
Jul 8, 2010
I started work on form1 but now want to make form2 the program form htat starts first now?
View 2 Replies
Sep 18, 2009
I am a student trying to create a program in VB that starts out with a penny pay for the first day, two pennies the second day, four pennies the third day etc. There is a drop down box that the user picks a day of the month. The program calculates to that day of the month. I am not asking for the code, I need help understanding how the counter initializes and stops on the day the user clicks on.
[Code]...
View 5 Replies
Jul 13, 2010
I've got a very simple SQL database program that lets me change user information in a table. I have two textboxes that show the user information but I want it to show a specific record as the program loads.
View 6 Replies