I have a form with 72 buttons (YES nearly a hundred) kinda laid out like a grid, its to set up an alarm system so the form looks like the room the system is installed in and you just press on both buttons you want your alarm to check between.
THE GOAL: either, get all the buttons between the two that were pressed to become red, like the "line not to be crossed"... or get an image of a red line to stretch between both buttons (seems i lost all button co-ordinates when setting them in a tablepanellayout). here is what I have for the first solution so far:
I have a textbox in my program which refers to the user specified path. Everytime the program is started it retrieve the setting : Private Sub frmmain_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load If My.Settings.path <> "" And My.Computer.FileSystem.DirectoryExists(My.Settings.path) = True Then txtpath.Text = My.Settings.path ElseIf My.Settings.path = "" Then When I try the program on my own system there is no problem. But the customers said that everytime they start the program the messagebox popups and they have to choose the path again and again.
this is the errors when i try to compile my created report in vb2010: the value expression for the text box 'textbox1' refers to the field 'name'. report item expressions can only refer to fields within the current datase scope or, if inside an aggregate, the specified dataset scope. this is my dataset:
I have a radio button control on a web form. The members of my ListItem collection are assigned the following.
Text No Value 0
Text Yes Value 1
So what I need to do, is to readd a varchar value from my database and if the column value returned equals 'Yes' then I need to select the radio button that has the assigned value of 1. Otherwise if the value read from the database is 'No', then I need to select the radio button assigned a value of 0
So how can I set the value for my radio button? I experimented and could not figure it out. The 'Yes' or 'No' value is stored in my database in the field ds.Tables("employee").Rows(0).Item("answer")
So I tried something like this which is not correct:
1. Something similarly I want with another button - when I click button2, I want to remove specific object - let say panel2, not hide it.
2. The second thing is that I want to put text from my textbox into excel, but in specific row. I would like to do that with word file as well. I would like to put text form my textbox in specific table, or row, or line. I only know to put text into a file.
i got a form that when i press button1 it runs button 2 and i want to run button 3 after the whole process of button 2 its done.how can i do this
vb.net Private Sub button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles starauto.Click button2() ''WHAT CAN I DO HERE TO CALL BUTTON 3 WHEN 2 ITS DONE
or also i have a flag that is activated (in the code of button 2)when the button 2 its done..so how can i make button 1 look for the flag "on" after button 2 its done?
I want to make a save button to save the text into the richtextbox and make a Load Button to take text from a .txt,.html,.php and blablabla.. and send it to the richtextbox ...
I have a modified button control with a string array in it. I am having trouble sending the string array to the form with the modified button on it. Anyone know what i can do? The form uses a arrayList to hold the buttons since they are made at runtime.
Is there any way to refer to a button by using string?For example: I want to set a value on specific buttons only, the naming convention is, btnA0, btnA1 etc.. So in a for loop I want to be able to change a setting on each pass. Basically something like: btnA+"string variable here".visible=true.The variable for the second part of the button name is actually an integer, I hope I have made my problem clear.
I was wondering if there was a way to launch a string of programs from a button.I want to be to launch, say 6 programs. Once the first one is done, the code has to know that the first program is done doing it's automated process and then continue.In VB 6, I used the Shell Execute command to launch a program, but it doesn't work in Vb.Net and I wouldn't even know how to make it launch consecutive programs.
i'm a beginner at vb.net and well i think this is very useful for future experiences.anyways, everything i have now is working so far.. and well i would like to add a backspace button and a percentage button but idk how.. idk if i can put up the program itself but.
I'm trying to make a basic Windows Form and I'm trying to make it so once the first button is clicked, a set of new buttons come out which can also be clicked. I've gotten the first button to open up a set of buttons when clicked; but i can't manage to link events to the clicking of the new buttons.
[CODE]......................
That was my first guess, but I got some WithEvents error. I went back up to the top of the class and added Dim WithEvents BHorse As New Button. Now I don't get any errors but the click event isn't working at all.
My button gets a commandargument of empty string even though the commandargument gets set. I have verified it gets set to the correct ID in debug mode, but then when I go to access this commandargument later in the repeaters ItemCommand event the commandarguments are empty string. And I have no idea why. I end up getting a sq foreign key exception because it is inserting an ID of 0 from the empty string values. There is no other code regarding the repeaters buttons that would be resetting it.
How can I click the submit button after I've sent a string to a website using httpwebrequest?
Heres my code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim wr As HttpWebRequest = DirectCast(WebRequest.Create("[URL]"), HttpWebRequest) Dim encoder As New System.Text.ASCIIEncoding Dim stringdata As String = "code=" & Clipboard.GetText & Environment.NewLine & "&submit=submit;" [Code] .....
But it doesn't work. the string I'm sending converts ok when I open the site + do the conversion manually, but using the above code it reports an error: Statement fragment: please enter a complete statement. I've double checked + it must be a problem with the stringdata line.
I've few Button on my form and when i press these button, Music has to play, and collect the word in label1 like what ever button i pressed those button's name has to catch on that label and make a string and there is one more button that button has to play that whole string music which one is in label1.I've done 1st part but i don't know how to make string and play it when button click.
I have a graphical button named ba1(blue arrow 1), ba2, ba3, etc to ba8 which coincides with questions on a sig pad 1-Qmax(=8) so that the clinician can see which question the patient is answering at the time.I need this For statement to work but it is giving me syntax errors and nothing much else. I am guessing it doesn't like placing a string and integer together. I have tried turning the int into a str and it balks.[code].....
I'm making a card game and the first thing I'm doing for it is generating a random card. I used an array for the cards (can't think of a better way to assign a picturebox to a card picture other then a huge select case block). I'm trying to split the 2D array into two parts but it doesn't work.
My current
vb Public Class frmMain Private Function Flop() 'First three common cards to be displayed.
[Code].....
I looked around online and I don't think a list will work for my 2-dimensional array.
Basically I have an application that has 2 textboxes and a button. What I am trying to do is when the button is clicked, it takes an entered string from box one (which is validated to only accept numbers) adds 235 to it then converts it to hex and finally reverse the string and sets textbox two equal to that value. Note that the final string has to be eight digits so the string may needed to be padded with zeros before the string is reversed. With that said how could I go about doing this? Also I do plan to add 2 more textboxes and another button to undo this process but I am thinking if I can figure out do it one way writing the code to undo the process shouldn't be too hard.
ive been trying for days to try to figure this out out on my own , and im wondering how i can have the user enter a string into a textbox and press a button and have that text appear on a label.
How do I set button1.image to the image resource named in a string? if my_string = "image1" then button1.image = my.resources.image1 else if my_string = "image2" then button1.image = "image2" ... else if my_string = "image30" then button1.image = "image30" end if Is there an easier way to do this?
I'm here again asking stupid questions. I don't have really get this but i ask again but i try explain all better. Here is a website link and i want catch string from here. Look page's source code and find first what starts <td> someword </td> I use this code for catch word from page. Visual Basic Express 2008
i have a string array that i want to output to a text file. the array size is 10000. i fill the array starting from 0 with some strings. at the end, i only want to show the array from index 256 to the last array that is not empty (for eg. if the array is filled with data from 0 to 2000, i only want the text file to show the data from 256 to 2000 and ignore the remaining strings). Is there any function to do this?t i use is shown below
Dim myArray(10000) as string Dim strArray As New System.IO.StreamWriter("c:List.txt") strArray.WriteLine("{0,10}{1,30}", "Index", "Symbol")
I am using VB.NET and I can't compare the radio button lists selectedItem.Value to a string, it doesn't work...here is the code: (I have also tried selectedValue it does not work either)
[Code]...
Why won't it evaluate that rblOne.SelectedItem.Value = "No" !?!?!? I tried rblOne.SelectedValue, that doesn't work, AND I added .ToString to both, which did not help, I even tried it w/ "No".ToString...this doesn't make any sense.
Good Evening! I am attempting to write a code so that someone can enter characters into a text box and then press a button which will validate the string and then count the number of uppercase letters in the displayed text. I also have a button that will allow lowercase tabulation. However I cannot get either to work or display in the associated text boxes.
Basically I have textbox1 and I have button1. I want it so when I press button1 it chooses a random string from these 4 strings. "dubstep","metal","hardcore","rap" textbox1.text = "***doido:L"