Generate A Php File Depending On Selection On A Win Form
Feb 19, 2011I 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 RepliesI 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 RepliesI have a web page where I am trying to populate the PSI # into the txtPSI depending on which customer is selected in ddlCustomers.I have written it a way it has worked on a past project and it compiles with no errors, however it doesn't work when it runs.
The code adder is not working so I had to add it manually.
Protected
Sub ddlCustomers_SelectedIndexChanged(ByVal
sender As
[code]....
I have a form with a combobox and a textbox. The combobox is used to select a username and the textbox displays the staff No. I use the following code to populate the combobox.Private Sub DeleteUser_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
[Code]...
i have a DB table and a form the following fields , combobox and textboxes, what i need is how to write a query to retrieve data from the table when the user select some record from combobox
View 7 RepliesHow can i make a control required to put input depending on the radiobuttonlist selection?
Let me try to clarify a bit more. I got 2 radiobuttons, if one gets selected, nothing else has to be done.
But if the otherone gets selected, a textfield must have some input too.
I seem to be having issues with the selected index on a list box.
The list box is having various items inserted depending on the user selection. An example would be:
LiIndex = ListBox1.Items.Count
ListBox1.Items.Insert(LiIndex, "Item1")
LiIndex = ListBox1.Items.Count
ListBox1.Items.Insert(LiIndex, "AND")
[CODE]......................
This all work and displays without a problem. The issue I have is if I select the second of the two AND's. If I click the second "AND" in the list and then a button to fire a method, the selected index is always the index of the first "AND". Dim listIndex as integer = ListBox1.SelectedIndex
I can't work out why, the listbox itself will always show the second one as selected, but the action will happen against the first one.
I am currently working in an access database.Using vb.net, I made a form wherein a user can sort data he wanted to generate in a report...sorting are done by selecting the order_date of the transaction(e.g. from 12/01/2005 to 05/03/2006) then he had to select an account(e.g. company name) and lastly exam(e.g. urine test)...Upon completing the selection on the three fields, I want to generate the report base on the selection...I am obliged to use crystal report for this...
View 6 Repliesi am creating a programme for my institute which helps in their administrative process. i am using visual studio(basic) 2010. which is connected with ms access database (abcdata.accdb) the database is having table called session with columns sessionID,sessioncode,sessionname.
* sessionID data = 1,2,3,4
* sessioncode data = 13,14,15,16
* sessionname data = 2013,2014,2015,2016
[Code].....
other then this u can see i want this because i am trying to create a database which must save the students data year wise, so that whenever we need to know a detail any students then we can find with query.
how to generate unique ID based on combobox selection?
View 5 RepliesI 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]...
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]....
Am migrating VB6 to VB.Net and am stuck once again. We use App.HelpFile in vb6 to set Path and Filename of current help file.Current help File can change depending on which form is displayed.How do we assign help files in VB.net?
[Code]...
how can I put this idea in code to say: if TheLastFormVisitedIsFormCustomers then
CurrentForm.myTextBox.Focus End If
In simple english. How can I retrieve the name of the last form visited in code and give focus to a textbox control depending on the last form visisted.
basically my problem is my program i made is fine on my screen, but when i port it to my mates screen some of my listboxes and buttons are not visable. because of his resolution i want to me able make my prgram adaptiable to specific screen resolutions.
View 9 RepliesI am developing a iimage veiwer.
1. i need to resize the form to a suitable size depending upon the heght and width of my image
2. their are two buttons one should always be at the bottom right corner and other always at the top right corner.
3. How do i make the picture fade in.
How would i go about checking a file extention to see if it is either
'.exe' or '.ex_'
What i need to be able to do is that if the extention of the file is '.ex_' then that file is copied to another folder, or if the file extention is '.exe' then it is passed onto another routine that will compress is.
Baring in mind that there could be a number of files in that folder.
I already have a routine that will compress the files, just need the above.
i was wondering if it's possible to load a listbox with files from a folder and depending on the file extension , the file name color would change ex.. if it's a .txt file , then the filename would load as blue , if a image (.jpg) the color would be red , and so on...posibility in a listbox ?
View 7 RepliesI am trying to put together a program that will run in the background which will monitor each print job and redirect them to a specific printer depending on the file size.Example, if Jody prints a 3mb file it goes to her default printer. Then if Jody prints a 200mb file it automatically gets redirect to another printer without Jody having to select that printer.
View 2 RepliesI'm making a game maker, and I just need to know how to put the buttons on the form. where to add the button code in the Form1.Designer.vb file? I just need to know what the syntax of InitializeComponent is.
View 7 RepliesI'm trying to search files for matches, and depending on what catagory the match is under, do a certain function... Say I have a .txt file that looks like this
[Code]...
Then I have a form with Button1 and Textbox1. Say I type "Cat" into Textbox1 and press Button1. It would then bring up a MsgBox that says "Match found under Animal catagory". But if I put "Three" in Textbox1, the messagebox would say "Found under Numbers catagory".
I'm having a problem how to refresh the aplication so that the tray icons changes when reading a txt file that is actualized in 5 to 5 minutes.
Imports Microsoft.VisualBasic
Module Module1
Public Sub Main()[code].....
I am trying to generate a new checkbox in a different form. [code] While this is great for things like those added, it may make things a bit difficult removing items down the road. Is there an easier way to name things generated?
View 11 RepliesI have no idea about this. Actually i have create one form like personnel requisition form.hen user open the form, ref no will appear at the top of the form. ref no is used to search any personnel requisition later.
View 5 RepliesI 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
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]......
In a vb.net windows application, I need user to confirm before closing application. I have this code in FormClosing event
[Code]...
How can I cancel form closing if user clicked No?
Tried e.Cancel = false but it didn't work (exits application).
I am looking to after the user selects from a drop down to give read only access to the form( textboxes, buttons, etc).Upon the second selection the user would have read-write access and upon the third selection full access.Does anyoen have an example of how this might go ? I have the code in place which places the information in the drop down from the configuration table itself.
View 1 RepliesI want it so when you click a button you have to select the window you want (A Temporary Red box appears round the window your currently selecting). Then when you click the final window decision then it will put a new form on then resize the form to the selected window!! how??
View 12 RepliesI want to auto generate serial number during my form load.
View 7 RepliesI've got 2 radio buttons on a form and am trying to allow a user to change the color of the form based on which radio button is selected. I've used select case in a separate procedure to do this because ultimately I'd like to have about 1/2 dozen or so color options to choose from.
The color changes when the first radio button is selected (pink or green, doesn't matter), but when I try and select a 2nd option, the program crashes (VB 2010 Beta).
My code so far is:
Public Class Form1
Private Sub SetColourScheme(ByVal colour As String)
Select Case colour
[Code]....
I get a 'StackOverflow' error, but I don't really know what this means. NB: Adding 'Return' keyword made no difference to the outcome - same error.