C# - Dynamically Call Startup Form??
Apr 22, 2010
I have application in VB.net that have two different form (Form1 and Form2). Now I need to examine some condition and if condition is true then i set Form1 for startup for and if it not then i set Form2 for startup form.So is there anyway to dynamically call startup form?
View 3 Replies
ADVERTISEMENT
Nov 11, 2009
i deleted my previous start up form to be replaced by another one but each time i launch the application,the deleted start up form is still displayed.i dont know from where this deleted start up form is being loaded.
View 3 Replies
Jun 20, 2010
I can hide my startup form (or make it appear hidden) on startup. I can start my app on windows startup--through registry values--if the user checks a checkbox.
But if the app starts up on windows startup, I want the form to be hidden, so the program can just keep working without bothering anyone. If it starts up because the user started it, I want the form to be showing, because the user probably wants to change some settings or something.
View 8 Replies
Mar 29, 2011
I have created a project in VB.net in which i have used SQL database connectivity
connection string of my project is stored in project properties > settings in the way
<connection string name>, <type>, <scope>,<actual connection string>
I want to provide that connection string dynamically at the startup of my applicaion
Hence the connection string stored should be changed dynamically at startup
View 4 Replies
Sep 9, 2010
I have in vb a selector
Dim ver =101
Select Case ver
Case 101
upd101()
Case 102
[Code]...
How can I make this select better by calling function in more dynamically in this form: with the prefix "upd" followed by a ver integer.
View 3 Replies
Dec 28, 2009
I need to dynamically call web service! For this I made simple web service Service1.asmx
Then I created the proxy class for the Service1 Web Service, I use the WSDL.exe utility and following command at the command prompt: wsdl /language:VB /out:myclass.vb http://localhost:3245/Service1.asmx?WSDL
This command create class myclass.vb. That class I include in my Windows Application project, but when I do this I get lot of errors.
This is the how created class look like:
Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
[Code]....
View 2 Replies
Mar 9, 2007
i have 2 classes. Temp1 and Temp2
Instead of doing
dim clsname as new Temp1
Temp1.GetData("dfs","dfd","fff")
How can i do it where I specify the class name
int=1
dim clsname as string = "Temp" & int
Then somehow use clsname - i tried Activator.CreateInstance but need some help
Public Class Temp1
Private _Account As String
Public Sub New()
[code]....
View 4 Replies
Nov 24, 2010
I'm having one basic aspx script that needs to load some "plugins". Every plugin has its own settings and it should perform different logics. What i'd do in php is create a class for each plugin, load that class, pass the settings file to it and call some method on that class that would give me some output. But is it even possible in vb.net? I'd need to have multiple files with multiple classes, load those files, depending on the plugin name and call some method on them to parse that plugin's settings.
View 2 Replies
Jan 12, 2010
I want to call an event TabPage1_Enter dynamically. To do this what are the arguments should I pass.
View 7 Replies
Jan 20, 2012
I've created a dialog which I'd like to popup from any function or sub in any class or form that I have in a project. It would nice to have it work exactly like a messagebox except it's got a progressbar and a cancel button on it. It's job is to display the progress of other functions so it should just stay open until I close it or the user selects cancel.Now I've found many of the basic examples on the net and have got the dialog working exactly as they have shown it. The trouble is that the examples are using a counter or thread.sleep which simply adds +1 in the DoWork sub. In other words, it validates that a worker thread can update a progressbar but it's a closed loop that only exists in the dialog's class.The examples don't show how to call an unkown function in another class dynamically, they're simply a hard coded 1+1 in DoWork. To me it's not a real world example because it doesn't show how to plug into the dialog or get a communication stream from other classes and functions that are running and wanting to increment the progressbar.[code]
View 3 Replies
Sep 8, 2011
I working on a project that includes to call a certain type of method to each control, i have this code:
Private Sub txtBcNum1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles txtBcNum1.KeyPress
If Char.IsDigit(e.KeyChar) Or e.KeyChar = Chr(8) Then
[Code]....
I have 15 textboxes( txtBcNum1,txtBcNum2,....,txtBcNum15 ), what's the best way to call this function inside KeyPress method on each textboxes with out manually adding it to KeyPress method?
View 1 Replies
May 20, 2009
How do I dynamically call a function with delegates by passing a string to a background thread in VB.NET?
Currently my code is this
Public Sub invertImageBK(ByVal image As Bitmap)
Dim snxl As System.ComponentModel.BackgroundWorker = createBW()
snxl.RunWorkerAsync(New ImageProperties(image.Clone, "invertImage", Nothing))
[Code].....
View 1 Replies
Sep 22, 2010
I have a VB .NET 2010 application. I added a C# project to my solution. I tried to call the form called 'main'. However, I could not figure out a way to do that. What is the best way to do that? I Goggled, and did not find anything. Actually I noticed that my Developer converted everything to VB .NET.
View 5 Replies
Mar 23, 2011
well i successfully docked a perpixel alpha form with the main form(form1). but the perpixel alpha form always appears at the top left corner of the screen and when i move the main form the form(perpixel alpha form) inside it dosen't move it stays at the top left corner. ALWAYS. to dock the perpixel alpha form i used
Me.toplevel = false
Me.parent = form1
View 6 Replies
Jul 2, 2009
I am using vb.net 2008 i have been using a mdi form which is the startup form for my prog. and i have a main menu on that form. now i would like to shift to tree view as my client has asked for it. whenever a node is selected i can select the form corresponding for that particular code. everything is fine till here. but when the form is loaded the tree view is coming on top of the form the tree view is docked in a pannel. now i have tried everything treemenu.sendtoback and the say the form to b called is taxtypemaster then taxtypemaster.bringtofront but still the tree view is coming over the form
I have tried the following :
Dim mMenuSelected As String = e.Node.Name
Select Case e.Node.Name
[CODE]...
Even the visible doesnt work as it seems after the .show it makes the tree view visible again. how do i hide the treeview pls. someone guide me at the earliest. i feel it is not the prob. of treeview but something to do with the mdi form am i right ?
View 23 Replies
Jan 3, 2010
What I want is -
Dim filename = System.IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath.ToString)
Dim openForm As Object
[Code]....
View 4 Replies
May 23, 2011
As usual, I change the startup form under Application tab. At this time, it doesn't run my selected Startup form. Whatever I set to any forms or even excluding that form, it still runs the same form.
View 2 Replies
Mar 31, 2009
Is there a way to get the name of startup form? I want to access a property of a control that is on startup form.
View 3 Replies
Jul 28, 2010
VB2008 application.
Using a splashscreen.
When the spashscreen is done, the main menu for the program appears.
The problem is that the main menu appears UNDER things already open on the desktop.
Always On Top could be the answer BUT if I do that, all sub-menus will be UNDER the main menu rather than stacked on top.
View 4 Replies
Oct 30, 2010
I continue to get this error when using the code samples from Cengage's book Zak's Programming with Microsoft Visual Basic 2008. I am running Visual Studio 2010.I am attaching the code below:
Option Explicit On
Option Strict On
Option Infer Off
[code].....
View 8 Replies
May 16, 2011
I'm supposed to invoke the click event for the two default radio buttons when the form first appears on the screen and I did that but its giving me the following error message when I run the form.A startup form has not been specified.url..
View 2 Replies
Oct 15, 2011
I have an problem to assign a startup form in vb.net. I have three forms:
1) Registration Form
2) Login Form
3) Main Form
Firstly i have set set startup form as registration in properties =>Application after registration completed or saved i am displaying the Login form by hiding the registration form. and entering username and password it displays the Main form. Now the twist when i exit from application next time i started to run my project where i can check if their is entry in registration form it will directly goto login form.
View 3 Replies
Feb 16, 2012
I need to put following code in the Constructor of my startup form.
JohnKenedy.BusinessSQLEXPRInstaller _ins = new JohnKenedy.BusinessSQLEXPRInstaller(" _ <Installation Display Name>", "localhost", "<New database instance name>", _
"<new database name>", "<database password>", "<database backup filename>");
if (_ins.IsDone == false) _ins.ShowDialog();
if (_ins.IsRestart == true) {
Application.Exit();
this.Close();
return;
}
But I really do not know what the Constructor is and how to access it?
View 2 Replies
May 28, 2009
make my application choose which form to startup using an IF statement. Where can I type my IF statement to make it work that way? Please explain in very simple terms.
View 2 Replies
Jun 1, 2011
I created a VB.Net Windows Forms application and my Form1 is my startup form. I want to have a class be my startup file instead of my form. In c# you have program.cs which does that for you but I cant seem to find something like that in vb.net.
View 1 Replies
May 25, 2009
How do I do it, I suppose it would be through properties but Im not sure where
View 2 Replies
Aug 2, 2010
this might be a really dumb question, but if someone could enlighten me I'm writing a Winforms application in VS2008 vb.net.The application starts with a main form. I've got a status bar at the bottom of the main form, indicating the application status. I've got a 'SetAppStatus' method on the Main form.
I'm writing a class that needs to update this status. So in the class I'm Importing the Main Form. But I don't know how to call this SetAppStatus method because I don't know what the instance of the main form is called Plus am I doing this the right way? I'm still grappling a bit with how .NET all fits together and it can get a bit baffling :)
View 10 Replies
Sep 13, 2009
I have a startform called start1 this opens a form called oppstart, I added Me .Close avter the showialog codelike this:
[Code]...
View 5 Replies
May 12, 2009
I have a VB.net program that originally had a form. I added a module and then deleted the form, but now I get the error...
"A startup form has not been specified"
With VB6 I would change the startup object to sub main, but I can't see how to do this in the properties of the project. I tried changing the application type to console, but then I get the following error...
No accessible 'Main' method with an appropriate signature was found in 'WindowsApplication1'
How can I do this without using the original form?
View 10 Replies
Sep 10, 2009
When developing a Windows Forms Application, I can see in the Application.Designer.vb file where Me.MainForm = Form1, but I can't find where/how Form1 actually gets newed-up.
View 3 Replies