VS 2008 Creating Storing And Managing Forms Dynamically?

Jan 20, 2011

I'm making a LAN instant messenger and I'm trying to achieve something similar to how MSN will open a new chatting window when you double click on a friend. My main form has a list of friends, and I want to create a new chat window when they double click on one of those friends. I've created a "template" chat form which I want to generate dynamically, and I've run into some problems I need help with. Lets look at the code I already have.

[Code]...

Now, call me a newb if you will, but I really don't know much about threading and all that hocus pocus. Some guidance in the right direction would be great.

EDIT: ClientWind is the chat form.EDIT: That's weird. It doesn't occur with the actual builds.

View 2 Replies


ADVERTISEMENT

Creating / Storing And Managing Forms Dynamically

Jan 20, 2011

I'm making a LAN instant messenger and I'm trying to achieve something similar to how MSN will open a new chatting window when you double click on a friend. My main form has a list of friends, and I want to create a new chat window when they double click on one of those friends. I've created a "template" chat form which I want to generate dynamically, and I've run into some problems I need help with.[code]The form will only appear once as far as I can tell, and the chat form has events such as button clicks; an error occurs when I try to change something like the text property of a label for example (eg. clicking a button on the chat form changes the text of a label on the chat form will cause an error to occur). The error I actually get is:[code]Now, call me a newb if you will, but I really don't know much about threading and all that hocus pocus.

View 4 Replies

Forms :: Creating Labels That Can Be Dragged Around Dynamically?

May 9, 2010

I'm currently making an application that involves time tables / scheduling. I'm required to generate a timetable for school teaching activities. in this application, I want to display the time slots using labels and I want to enable users to drag them around to place the subject cards in the available slots. I'm even confused with the control to use for the time slots. Right now I'm thinking of using datagridview for the time slot. So I'm trying to drag the labels around and placing them in the datagridview cells.

View 1 Replies

Forms :: Dynamically Creating Chexboxes From DataTable Rows

Mar 22, 2009

I am working on a winform project like to dynamically create chexboxes from a datatable rows.

View 6 Replies

Database - Creating And Managing *.db Files

May 26, 2012

I have seen a few .NET apps use .db files. I am not new to Visual Basic, however I have never created a VB app that uses databases. I do know PHP pretty well, and working with databases in PHP I am familiar with.

[Code]...

View 1 Replies

Managing Multiple Forms?

Apr 15, 2010

I am a beginner programmer, and taking my first course in VB.NET in college. I am writing a program that teaches the user step by step to solve a rubiks cube. One problem I am having is how to manage the 20 forms that make up my program. Currently, when the user procedes to the next step, I make the current form invisible, and show the next form.

ex. Nextbutton click
form2.show()
me.visible = false

[code].....

View 6 Replies

VS 2008 Dynamically Creating And Adding A ComboBox To A Specified Column In DGV?

Mar 19, 2012

I am dynamically creating and adding a ComboBox to a specified column in DGV. I also set a DataSource, DisplayMember and ValueMember for the created ComboBox. Somewhere else in my program, I select a number ( let's say 5 ) and based on that number I want to change the SelectedIndex of the current ComboBoxColumn ( I actually loop through the Columns collection ).I tried something like this in a event handler I created:

vb.net
Private Sub combobox_validated(ByVal sender As Object, ByVal e As System.EventArgs)
Dim combobox As System.Windows.Forms.ComboBox = sender
Dim colIndex As Integer = combobox.Tag

[code]....

You will notice here, that I'm not actually trying to change the .SelectedIndex property, but the Value of the current cell.How do I reference the actual ComboBox?

View 4 Replies

Dynamically Creating Methods For Dynamically Created Buttons?

Mar 15, 2011

I have this code.

Code:
Public Class Form1
Dim NPB As Button
Dim x As Integer

[code]....

As you can see, when I open a program from my menu, a new button will be created with text similar to this, "C:Program ". The button it self will not do anything. How can I create the method at the same time the button it is for is created? Also how can I change the text do that it gives me, for example, CCleaner.exe instead of the whole target path?

View 14 Replies

Managing Modal Forms Location

Oct 3, 2010

I've got a "Loading" form which I display as a modal form when doing lengthy processes. I'm using the below to keep the form centred within the child form performing the process. However, when minimisingmaximising the "Loading" form appears before the parent making it look a little unprofessional. Anything I can do about that (Delay it appearing or attaching it in a different way)?

[Code]...

View 1 Replies

Forms :: Managing Multiple Conditions In IF - Then Statement

Oct 19, 2010

I currently have an If...Then statement that checks if all fields of a form have been filled before saving the info in a file. I'd like to be able to tell which field has not been filled to give the user a dynamic message (at the moment, it only tells them that the checklist is not completed ) :

If (txtNoDemande.TextLength = 8 _
Or txtNoDemande.TextLength = 13 _
And txtDateLoad.TextLength <> 0 _

[CODE]...

Is there a way to determine which of these conditions is false without having to do a seperate If statement for each ?

View 2 Replies

VS 2005 - Managing Flow Between Windows Forms

Apr 21, 2009

I have a main form having a comobox with categories populated in it. for adding new categories I have a button1 on this main form. On button1 click I am creating and showing a new form2 for adding new category. I want this new added category in my main form combobox on closing this new form. I have checked mainform_activated even but it is not fired on close of form2.

View 2 Replies

VS 2008 Dynamically Creating And Adding Dropdown Controls To DevExpress XtraGrid?

May 6, 2011

I am dynamically creating and adding dropdown controls to DevExpress XtraGrid.That works fine and I can add a dropdown control to any column I wish.My main problem is that I need to have the first element in the dropdown control displayed. But after I dynamically add 3 dropdown controls to the grid, only the last one has the element displayed. The previous two do not.Although, I add the elements

this is what the code looks like:

vb.net
Dim column as DevExpress.XtraGrid.RepositoryItem.GridLookupEdit
For i as Integer = 0 to dsSometing.Tables(0).Rows.Count - 1
column = New DevExpress.XtraGrid.RepositoryItem.GridLookUp

[code]....

The code will go tru and add lets say 3 dropdown controls, set their .DataSource to datasets I need, but it will only show .NullText of the last added control.

View 1 Replies

PDF File Storing And Creating With Mysql?

Jun 10, 2011

I am going to try to explain this the best I can I didn't develop the original version of this, or the part that rights it to the database.in our company, there is a program that takes PDF files and stores them in our mysql database as blobs. The blobs are attached to inventory items by the inventory items ID. they are basically certificates. That is basically all I know about it.

however, I was asked to show the PDF files for certain associates that may want to view them. ie, if a sales person looks up item 1234 and there is a stored PDF certificate for the item, be able to access the pdf and show it to the employee if they want to see it.The code that I found that was previously wrote to view the PDFs takes the blog, create the file in the app.path directory, and then uses shell to launch it like a normal PDF.

I don't have a problem using the adobe pdf reader to launch the file, but is there a more efficient way other than creating the file on any machine in our company where someone wants to view the PDF ?

[Code]...

View 7 Replies

VS 2005 Treeview - Creating Nodes And Storing A Key Value?

Apr 29, 2009

I want to create a simple treeview from a database table. It is going to be recursive and I want for each item to show the description and in the background of each item hold a key value. Then when the user selects a node I can use that key value to select the data.

View 4 Replies

VS 2008 Creating 'windows' In Forms?

Jul 6, 2010

Just looking for a bit of advice really on the best way to go about something.I am creating a new freeware game in which I am creating like OS for the game. So far I have the OS Home screen (Desktop) with a menu a bit / time / date etc.hat I am trying to do (and not sure the best way to do it) Is I want to be able to create windows within my virtual desktop 'form' as Windows does essentially for instance clicking on 'start' and going to 'Internet Explorer'I have turned the boreder style to no the desktop form and any other thing I do so its my look and feel but I am not sure the best way to go about this. I possibly thought creating my 'windows' as panels and just showing and hiding them but that doesn't appear to work when I overlay them.

View 4 Replies

VS 2008 Managing The Users Application Settings?

Oct 28, 2009

I have a simple application with a main form and an options dialogue. The options dialogue has various TextBox's and drop downs where the user can make changes and OK/Cancel buttons for when they're done.On the FormClosing event of the main form, I save these settings to an XML file. When the program is first run, the settings are loaded back into the options dialogue. The application reads settings directly from the controls in the options dialogue during run time.

View 3 Replies

Creating An EXE Dynamically

Nov 19, 2011

I wanted to make an executable file from my program. I already know that compiling your project creates an executable, but I wanted to know how to make an exe with my program.

View 4 Replies

VS 2008 Managing/theming Other Apps (developing A Shell)?

Jan 12, 2010

I'm developing a shell (think LiteStep or SharpE) for Windows using Visual Basic .NET, and I have reached the point where I will need to get into theming other windows that doesn't run inside the shell itself.Modifications I will need to do is to change their title bars - probably using some kind of API call - to match the design I've integrated into the shell itself, if that is even possible. Having Aero on windows running in a shell that doesn't even look like Aero at all isn't very pretty.) Is there a chance I might be able to do this, or will I have to use a 3rd party application and/or develop my own little programming language for shell-specific applications (which would be a pain)?

View 2 Replies

.net - Dynamically Creating Check Box?

Feb 15, 2010

i am creating check box's dynamically and assigning them names like "chk_1" and "chk_2".now if later in my code i want to check if they have been checked how can i do that.if i do something like if chk_1.checked is True then i am getting error that chk_1 is not declared.Which is true.i am using VB.net 2.0 i can post my code if needed.

View 1 Replies

Creating A Byte() Dynamically?

Aug 6, 2009

I am working on a simple windows app that will take our TripleDESCryptoServiceProvider Key and IV from a file and use it to Encrypt and Decrypt strings, etc...This works great and has for years in a utility program, but I want an easy app that can read the Key and IV...following format in the txt file:

[KEY] {123,123,123,123,132,132,123,...}
[IV] {23,23,23,23,23,...}

And then create the Encryption Pair...Currently I have the following

clientDESCryptoServiceProvider = New _
TripleDESCryptoServiceProvider
clientDESCryptoServiceProvider.Key = New Byte() {111, 222, 333,...}
clientDESCryptoServiceProvider.IV = New Byte() {1,2,3,...}

Is there any way to pull the {111,222,333,...} and {1,2,3,...} from a text file and create the Byte() that is required?I can read the info from the text file, but cannot seem to create the right format for generating the Byte()?

View 1 Replies

Creating Arrays Dynamically?

Jan 17, 2009

I am reading data from an excel spreadsheet and i want to create several arrays to save the data in (according to how many rows of data i have which is an unknow untill i actually read the sheet).

View 4 Replies

Creating Sub Menu Dynamically?

Aug 3, 2009

I already have a menutoolstrip and i want to add the menuItem dynamically.I am able to add the first menuItem however, i have no idea how to add submenu.

View 2 Replies

Dynamically Creating An Asp Table

Jan 23, 2009

I currently have this code to create an asp table [code]where PH is my placeholder for the table to appear in.This code creates a 1 celled table how do i get it to create multiple rows and cells?

View 9 Replies

Dynamically Creating The MSCharts?

Jun 30, 2010

I am having problems creating charts dynamically, using MSCharts.If I drag a chart control into a form, and then use this, I have no problems. However, if I change the code and try to create the chart dynamically, then I just get a blank white rectangle, and no graph, axis or anything.I am trying to create the graph once a user clicks a button. Here is the code I am using.

Public Class Form1
Dim Chart2 As New System.Windows.Forms.DataVisualization.Charting.Chart
Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

[code]....

View 2 Replies

VS 2010 Storing Variables - Access And Use On Several Windows Forms

Apr 5, 2011

I've got a dictionary<string,string> that I need to access and use on several windows forms. In asp.net, I could store it in Session and use it from any aspx page. How would I do this in forms?

[Code]...

View 3 Replies

Creating Excel Workbook Dynamically Through .net?

Jun 5, 2011

to create excel workbook dynamically where data will be input and manipulated by user. i want graph as well to be created using the data i manipulated and entered.i want as many as work sheets to be added in workbook once it is created.

View 2 Replies

Dynamically Creating And Referencing Objects?

Mar 17, 2009

I would like to dynamically create an object (in my case a thread) and then be able reference that object. Simplistically put, I would like to read from a text file and then process each item using a thread (so that I don't have to wait for each item before starting the next). The problem is that I cannot think of a way to create a new thread dynamically ie. thread name so that I can then wait for all created threads before doing something else.

View 8 Replies

Dynamically Creating Buttons With Pictures?

Aug 21, 2009

I am working on a project that requires me to read a table of items, and then display the items as button with a photo for a POS system. Any suggestions on how to implement this? This project is using .NET 3.5 and a SQL Compact 3.5 database as a data store.I am using windows forms over an MDI form.

View 5 Replies

Dynamically Creating Class Properties?

Jul 21, 2011

We use a common web.config file to store all of our database connection strings.

I would like to have a way to read in all of them, somehow create a property or type so that they become dynamically available.

So when I want to create a new sql connection my my class can show the connections strings available.

Dim myconn as new MySqlOps.Connection(MySqlOps.ConnectionString)

so when the user types MySqlOps.ConnectionString. it will give a list of the connection strings read in from the config file.

Not sure how to approach making the connectionstrings available like above.

View 3 Replies

Dynamically Creating Event Handlers?

Apr 9, 2010

in my project I create buttons dynamically

For i = 0 To btns.Count - 1
btns(i) = New Button()
btns(i).Text = names(i)
btns(i).Size = New Size(btns(i).Text.Length * 15, 25)

[code]....

I need to specify a handler for each button that retrieves the button text how can I do this?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved