Create Multi-forms At Runtime?
Nov 24, 2010
Background: ok I have an app that hides in the system tray. During its operations in the background it can try to invoke an outside app several times.. and I need to track when the call errors out.. I was using messagebox's but for some reason if the app hidden the messagebox's dont come up and goto the forefront. So in reading about this I read I should just use a form to do it.. so I did.. works fine.. well works fine for one error.. but if the user tries to do 3 of the same operation.. and lets say first errors.. second works and third fails.. using one error form wont work.. since I diaplay the error one.. then need to display error 2.. I need 2 error forms so they can click OK on both.[code]...
View 2 Replies
ADVERTISEMENT
Jun 16, 2010
I'd like to know how I can craete new forms at runtime.
Lets say I press Command1, a new form would open with a text box and a button on it. If I click Command1 again, another form would open with a textbox and a command button.
View 3 Replies
Oct 4, 2009
Trying to create an application where the objects in a form are created during Form.Load depending on the content in an ini-file.The objects I have in mind are textboxes and labels for a start.
View 5 Replies
Jan 6, 2012
I have a form that depending on results from a table would create a number of buttons using code at runtime. This could range from 1 to 20 buttons. What I am struggling with is creating a generic mouse over event for each of these buttons? The reason why I want a generic mouseover event is that depending on the text on the button I would do certain things, instead of duplicating the same code in individual mouseover events. I am writing in VB.Net.
View 1 Replies
Aug 25, 2009
With the following code I only can add until second level node... If wan to add more level in child node?? I want to add child node to "UOM" node??
TreeView1.Nodes.Add("Maintenance", "Maintenance")
TreeView1.Nodes("Maintenance").Nodes.Add("2", "Item Group")
TreeView1.Nodes("Maintenance").Nodes.Add("3", "UOM")
View 4 Replies
Dec 29, 2010
If I have a large number of classes, each similar to the other in certain aspects (they all share a common base class, but each does things differently), and I need to create Windows forms for each to allow easy changing of their values through a GUI? Create one matching form for each object in VS' forms designer, Or Use code to create the forms dynamically at runtime.
#2 makes the most sense to me, because a lot of these objects will share very common features of the form, notably "Ok" and "Cancel" buttons. But one object might need to draw a textbox on the form while another might need to draw a combobox. Not to mention, if I want to put icons on the "Ok" and "Cancel" buttons, I'd have to do this for each copy of the form in designer, and that sounds like it could get out of hand quickly.But is drawing forms through code sane? VS' forms designer is pretty sophisticated and designed to make life easier. Am I wise to consider ignoring its functionality and diving into the trench warfare of forms design through code? Or are there examples of automating form creation based on an existing object's properties?
View 1 Replies
Apr 29, 2011
I have a question how can I change the BackColor of all forms at runtime?
I tried to loop through each form but didn't work for me
View 4 Replies
Jun 3, 2009
I'm currently working on multi selection on the Picturebox. I'm kinda of stuck with these coding.
Public Class Page_2
' for selection on part of body
Private start As Point = Point.Empty
[code]....
View 1 Replies
Apr 12, 2011
Ok, Im having trouble passing a value from one form back to another using a listbox... The user clicks a button in the main form to bring up an instance of another form (form2.show). In that form, the user then then selects a number 1-5 and then presses done:
Code:
Private Sub frmPlayer_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim x As Integer
If lboNumber.Items.Count = 0 Then 'list box is empty
For x = 1 To 5
[Code]...
How do I pass that value back to the main form as a value when the user clicks done?
View 2 Replies
Mar 29, 2010
I have a solution in VS 2008 that creates a DLL. I then use that DLL in another application. If I go in to the DLL projects property pages and change the following configuration for a DEBUG build then the built dll no long provides the desired functionality. If I change it back and rebuild the DLL, then the DLL does provide the correct functionality:
[Code]...
View 3 Replies
Dec 15, 2011
I had set the multiselect option to true for listbox.Let me know how to move the list items up and down with this option.
View 2 Replies
May 14, 2010
I'm using vs2008 with vb.net, and I have googled all around for a multi column combobox and I know there is not an easy way to do it in .net. However, this is my situation:I have a table in my database that only has around 4 or 5 entries, with the columns FirstName, LastName, Type. I need all of these columns for each of the 4 or 5 entries to be displayed in the combobox. I've been trying to think of simple ways to do it such as counting all the rows, selecting each cell in a loop and programmatically assigning them to the comboboxes, but I realized that the ID column for these entries have numbers that do not go chronologically. (I thought that if I counted the rows, the row number would correspond to the ID number and I could go about looping and assigning variables/concatenating them into the combobox, but this is not the case).
So I am just looking to see if anyone else has any ideas on what I can do to solve this? It's a pretty simple problem but I'm kinda out of any simple ideas.
View 1 Replies
Oct 6, 2009
I have been given the task of making a small program in vb.net to have two list boxes. The first list box contains the data and the second one is blank, when you select the one bit of data from the first list box it can be dragged and dropped into the other list box. my task is to make it so you can select multiple bits of data from the first list box and all that is selected is draged over to the second one when you drag and drop it.
View 1 Replies
May 7, 2011
I'm trying to dive into what I consider a deeper end of VB.net to see how far I can go with it. I have a project created, ironically called "My First Server". The aim of this is to create a server which can handle multi clients but additionally isn't the commonly shown tutorial setup of a console application. So it is created as a Windows Form application. The main form (Public Class PrimaryForm) consists of only one control which is a listbox control. This is named LogOutput.
[Code]....
View 7 Replies
May 24, 2012
I am currently working on a project for school in which I am trying to implement a multi user login on one of my forms. I have an internal database connected in which one of my tables contains the user-names and passwords. I have a For/each loop to search the table for a matching username/password before allowing access to next form. The problem is even if the username/password is correct, my message box still appears to notify of invalid credentials, but still allows access to other form. The problem only occurs when I implement two For/each loops. With one, code works fine. Can any one see what might be wrong?
[Code]...
View 5 Replies
Jul 9, 2011
I have a very simple 2D array, it holds a list of song titles, their genre, and their runtime. frmMain loads the array from a text file and allows me to manipulate it and boil it down to a desired (implicitly sized) playlist. i want to THEN pass that playlist array to a second form, frmPlaylist The problem i'm running into....When frmPLaylist calls the Property from frmMain I receive an error that VB cannot convert the string value to a two dimensional array. Simplified...frmPlaylist is all locked and ready to receive a 2D array, but frmMain seems to only be sending a single string variable. on frmMain
Public ReadOnly Property PlaylistOut() As String
Get
Return mstrTimedPlaylist(,)
[code].....
View 1 Replies
Apr 27, 2009
I am using two forms.
Form 1 organizes student information from a textfile
Form 2 appends a new student
I load the second form with:
Dim secondForm As New Form2
secondForm.ShowDialog()
It loads, cool..When I close form 2 with me.close, form 1 does not have the updated information. (Most things load with the form_load event)This is form my intro to VB course.
View 6 Replies
Apr 12, 2011
Im having trouble passing a value from one form back to another using a listbox... The user clicks a button in the main form to bring up an instance of another form (form2.show). In that form, the user then then selects a number 1-5 and then presses done:
[Code]...
View 2 Replies
Aug 24, 2011
How can you disable the multi-select using the windows forms datagrid in vb.net? I want the user to have only the ability to select a single row.
View 15 Replies
Sep 7, 2010
How do I create a multi dimensional array in visual basic. For example I have a soccer team with players. Each player has an id, first name, last name, address, phone number. How would I represent this using a multi dimensional array?
View 1 Replies
Sep 18, 2009
I am new to programming. I know how to create simple windows app using VB and Sql Server/AccessDB. My question is this: Can my windows app be ran on a LAN or do I have to create a special multi-user app for a LAN? If the answer is yes, can someone please guide me on how to create a LAN/Multi-user app.
View 2 Replies
Jun 26, 2011
I am planning to make a multi-user chatroom client. I have got a web hosting, but I don't have the server. I want to know how to create the chatroom from my webhost and what type of method that I would need to connect it?
View 3 Replies
Feb 19, 2009
I need to create a multi user VB.Net application that connects to Access 2007 and has 2 forms. How do I go about it? Please give me a start up.
View 6 Replies
Mar 30, 2012
who can clearify more about how to link the relationship between a Local database to ComboBoxes as an example below:
1. ComboType: it will show only kind of audio file extension
2.ComboCompany: will show only the music company name we added
3.ComboVolt: will show of album volt
How it work
If we've selected the ComboType Ex: mp3 file then in the ComboCompany After we have selected with any album name.
The last result is in ComboVolt the number of volt will show up base on we have selected the name of any company name in ComboCompany.
[Code]....
View 4 Replies
Apr 6, 2010
In my first application I need to create a multi-level "IF" statement and I am a little lost on how to proceed. The idea is to do figure out an estimate on costs based on the quantity of products being sold. I can do this in Excel, but the VB code escapes me.
So I'll show you in psuedo code what I want to do.
IF comboBoxA = 1 and comboBoxB = 1 then
value X
IF comboBoxA = 2 and comboBoxB = 1 then
value X
If comboBoxA > 3 and comboBoxB > 1 then
(comboxBoxA * costA) + (comboBoxB * costB) = Value X
I have another IF statement that will work off the calculations here. Haven't figured this one out yet, but I haven't gotten there yet in my form.
If Value X > Y Amount then
Offer product Z as a better idea
View 6 Replies
Feb 23, 2009
If i want to create a vb.net windows application in multi-language (EnglishArabic). Is there any steps i need to do?I installed the Arabic at my windows XP and I am able to write the labels and the the textbox for example in arabic but is there a way for the controls to shifts automatically?
View 7 Replies
Feb 27, 2009
i have a function to export data with some loops now the problem is that when he is exporting the data the program stop responding and only respond when the job is done, and i need a option to cancel the job when it is running but the problem simple block all forms that is opened how can i creat some multi task for fix that problem?
View 1 Replies
Feb 27, 2009
i have a function to export data with some loops now the problem is that when he is exporting the data the program stop responding and only respond when the job is done, and i need a option to cancel the job when it is running but the problem simple block all forms that is opened how can i creat some multi task for fix that problem?
View 1 Replies
Apr 17, 2012
I'm trying to create a multi column combo box in VB.net.[url]...
It just does not like the class="MSONormal" statement at the beginning.
View 4 Replies
Jan 29, 2010
I have a bunch of images that I want to save as 1 tiff file.
I can get it to read just fine. But It is not picking up frames. I think it has to do with the encoderParamters.[code]...
View 6 Replies