File Selection Versus Folder Selection?
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
ADVERTISEMENT
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
Jan 6, 2009
Basically I am trying to enable the user the ability to select a folder and the folders music files populate a list box. I want two list boxes on the page, one with all the contents of the folder and then the other one for files selected from the first box. I have no clue on how to do this at all...
View 4 Replies
Jul 7, 2009
how to do multiple folder selection in folder browse dialog box?
View 1 Replies
May 9, 2009
I have an app that requires the user to select a folder, the app runs up/down that folder tree to read/write various files. All that works fine. To select the folder, I support three methods, a FolderBrowserDialog, drag/drop and also a text mechanism where the path can be typed/pasted into a textbox.The issue I have is handling folder shortcuts. Pasting the path is fine and drag/drop is fine because I can sort out what the incoming object is in code. But for folder/shortcut selection by dialog, I've ended up with two buttons, one being the FolderBrowserDialog for folders and the second an OpenFileDialog for shortcuts (set to display only .lnk files).From a users perspective, I think this is quite poor, it also 'looks' plain odd. It forces the user to check what type of folder object they want to use before they can select it. How can I permit folder OR shortcut selection with the same dialog? It seems that my only option is to build my own dialog, which could actually be quite involved, since I would need to replicate the File/Folder dialogs.
View 2 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
Mar 30, 2006
I could use a reference to any code classes for enabling the selection of a folder via a dialog window.
View 5 Replies
Sep 18, 2010
I cannot seem to load the saved .rtf document into the richtextbox when i click on that file in a combobox. I checked msdn and tried what it suggested, but got no results.
View 1 Replies
Feb 19, 2011
I want to know if it is possible to generate a php file depending on selection on a win form in vb.net 2010. If so, does anyone has a link to a sample.
View 3 Replies
Jun 10, 2012
Using OpenFiledialog I can access a file. Is there a way that I can include a specific file in the code? This would allow me to access the file directly without the selection process and the application would always use that same file.
View 14 Replies
Jan 26, 2012
The user will basically be able to select a file on their hard drive, and enter some details or info about the file and then save it
View 2 Replies
Jun 4, 2010
I have a program that needs to display a playlist of songs, for a band performing someplace, from a .txt file. The songs in the file are listed as follows:
All You Need is Love-Beatles
Rock
4.25
[code]....
The first line is the song's title and group name. The second is the songs genre. The third line is the songs length, 4.25 is 4 minutes and 25 seconds.upon clicking a button, I need to display a playlist from this .txt file based on the number of minutes the band has to play, minutes entered into a TextBox, and the songs genre, selected from a ComboBox. The songs cannot repeat and must be random.I have already coded the program to read the .txt file but have not clue where to start with the rest.
View 5 Replies
Sep 19, 2010
here i;m trying to select a date and time but i'm having problems can you see what i'm doing wrong Dim table = mydataset.Tables("Bookingen")
[Code]...
View 3 Replies
Nov 27, 2009
I want to end the selection in a rich text box.Example:
Sentence - "I was walking in the park and found a coin."
I want to select from "walking" to "found"
RichTextbox1.SelectionStart = RichTextbox1.Find("walking")
[code].....
View 3 Replies
Feb 22, 2012
I have 3 textboxes TextBox1, TextBox2, TextBox3 and a button, I want to do the followingIf I enter a value in TexBox1 and press the button, some text will be set in textbox2 and textbox3; if I enter a value in TextBox2 and press the button, some data will be displayed in TextBox1 and TextBox3.I have no idea how to make the code check if the textbox1 value is not null and the textbox2 value is null, to execute a certain statement and set a value to Textbox2 and textbox3; and if the value of Textbox2 value is null and the textbox2 value is not null, to excecute a certain statement and set a value to Textbox1 and textbox3
View 1 Replies
Jun 11, 2011
i want to create a system that will trigger alert based on few condition, my condition is:the alert will trigger if there is a negative value for 2 consecutive years.example:1)negative amount for 20052)negative amount for 2006here is the code that i have for now
View 6 Replies
Jun 3, 2009
[url]...Do you see the left perpendicular line. When I click on it appears some annoying selection around it how to disable it?
View 3 Replies
Apr 29, 2009
I am using VB.NET and I am trying to come up with some algorithm or some pseudo-code, or some VB.NET code that will let me do the following (hopefully I can explain this well):I have 2 collection objects, Cob1 and Cob2. These collection objects store objects that implement an interface called ICob. ICob has 3 properties. A boolean IsSelected property, a property called Length, which returns a TimeSpan, and a Rating property, which is a short integer.
OK, now Cob1 has about 100 objects stored in the collection and Cob2 is an empty collection. What I want to do is select objects from Cob1 and copy them over to Cob2. I want the following rules obeyed when selecting the objects though:
[Code]...
View 2 Replies
Oct 29, 2010
based on a selection of name and time i want to add a value or text in datagridview,but it doesn't return a value... this my code
Public
Sub Btnplanner_Click(ByVal
sender As System.Object,[code]......
View 2 Replies
Apr 25, 2012
I have the following in vb.net
<asp:RadioButtonList ID="rbEdit5" runat="server" RepeatDirection="horizontal" >
<asp:ListItem Value="1" >Yes</asp:ListItem>
<asp:ListItem Value="0" >No</asp:ListItem>
</asp:RadioButtonList>
I need to programatically select one of the 2 listitems.How do I programatically select say 'Yes' above in vb.net?
View 3 Replies
Mar 23, 2012
I have a telerik radgrid, like shown underneath [code]When I click one of the rows, it will display the password of the clicked row, like so:[code]That works fine. I am proceeding this way because the decryption of the password is a rather complicated and long process, so decrypting one password at a time is less time consuming, especially when the user doesn't need all the passwords.When I have the password displayed, I'd like to be able to select the password in the grid to copy it. Unfortunately, the radgrid will fire the "RowClick" item command once more, and the row gets de-selected. Therefore, I cannot copy the passwords. My question is: Is there a way to cancel the itemcommand of a radgrid under certain circumstances? I'd like to be able to disable the itemcommand event when the password is already decrypted.[code]
View 1 Replies
Mar 4, 2012
I have a listbox with two values, Current account and Deposit account.The current account has an interest rate of 7% and the deposit account 3%.I have 4 other textboxes. The boxes on the right is where the user inputs and the left side holds the value.
Account Type [ ] Listbox >>[Current account]
Deposit account
Investment Amount [ ] [ ]
Interest over a year [ ]
What I want for the Investment Amount is that if the user selects Current account, the amount invested will be automatically calculated with the 7% interest and the same for the deposit, calculation with 3% interest.And the Interest over a year textbox to show how much the interest will be over that year at the rate (whether its 7 or 3%)
View 7 Replies
Jul 11, 2010
I can change title of a selected Tab but I want to change the title of a tab witch is not selected but I want to change its title because I come to know that tab is loaded following code return me the possible New Title of the Tab but how to make changes ?[code]....
View 1 Replies
Feb 27, 2011
When I exit the programme and start it again the checkbox selection from the previously job gets lost. After starting there is not a problem until I exit and start the programme again.
View 1 Replies
Aug 15, 2011
i have used the following code to populate a DataGrid based on the contents of a textbox. the users searches for a name which is populated into a combobox based on the name in the combobox several textboxes are populated with data based on the data in one of these text boxes Private bindingSource1 As New BindingSource
[Code]...
View 9 Replies
Jan 7, 2010
Clicking on any day clears the selections. This bug is repoducable by simply opening a new WindowsForms project, dropping a MonthCalendar control onto its' surface. Click on the TitleBackground, click on a month, Jan thru Dec, and the bug will become self-evident. There may be another bug, if you click on either the Next or Previous month buttons, the selections will shift to the first week of the month. Finally, the Today key at the bottom of the calendar doesn't fully highlight. I am currently using Windows Vista, I will try to repo this on XP as soon as I can.
View 4 Replies
Jun 25, 2008
Is it possible to multi select cells in a DataGridView over several rows?
Example:10 columns, 2 rows
Say I click and hold in row 1, column 5. If I then go down to row 2 column 5. I want column 5 to 10 in row 1 and 1 to 5 in row 2 to be highlight.
View 5 Replies
Jun 21, 2010
Am using vb.net 08 and i have a datagridview with 3 columns. The first column has a button as the columntype with the name "UserName". Now, i want if the user clicks only on the UserName which is the first column, but not the entire row, it should display the value of the UserName column only. If other columns are clicked are apart from the UserName, nothing should display. So there will be a for loop that will itera te through all the rows of the datagridview.
So i have something like this:
CODE:
View 1 Replies