VS 2005 Loading Forms
Mar 29, 2012
i have a problem with loading forms in VB and i was hoping someone can help me. this is the code i made:1st form.form name: formload.vb [code]now the thing is whenever the loginform appears when i successfully entered the accounts the form the userinterface will appear and the loginform disappears for a few seconds then reappears again.i wanted the loginform to disappear the only form that is visible is the userinterface.how to make database of accounts where the login form depends on?
View 4 Replies
ADVERTISEMENT
Aug 15, 2009
I have a main form when loaded will display a login form. I want that when the main from loads, the login form and another form will be loaded side by side.How do I show two modal forms?
View 2 Replies
Aug 22, 2010
I have a main form when loaded will display a login form. I want that when the main from loads, the login form and another form will be loaded side by side.How do I show two modal forms?
View 19 Replies
Mar 24, 2011
I am designing a yahtzee game in Visual Basic. I am wanting to save the form's background color and the picture boxes dice so they can be set the next time the form is loaded. The user can change the background color of the form and choose between several sets of dice. I want the last color the form's background color was and the picture of the last set of dice used placed back in the picture boxes of the dice the next time the user opens the Yahtzee game. I am trying to do this in a module, with generic collections of all the picture boxes on the form. Am I able to do this before the form loads?
View 5 Replies
Aug 19, 2009
I'm trying to load and host a WPF control in a .net 2.0 windows forms application. The WPF control should only be loaded if .net 3.5 is installed.
I found a link to Hosting WPF Content in an MFC Application and that is about what I'm trying to do but my C++ knowledge isnt sufficient to be able to 'translate' it to .net.
here is another link: Hosting WPF Content in a Java Application that doest the same again but I dont know where to start writing that code in .net.
View 3 Replies
Nov 29, 2009
when i run my app how do i make a certain form load first before any other form?
View 6 Replies
Jun 23, 2011
I have a grid loaded with data. What I wanna do is when you double click on the row header, the data in that row should load into a form with textboxes. I've chosen the RowHeaderMouseDoubleClick as the evnt for this but dunno how to start.
View 2 Replies
Mar 25, 2009
I want to load picture dynamically within VB.NET and the following code does not work due to 'loadpicture' not existing in VB.NET.
picturebox.image=Loadpicture("tick.jpg")
View 3 Replies
Mar 18, 2009
i have a problem in loading an image from a file in vb.net. I have the following code in the class of my project.
Imports System.Drawing
Imports System.Drawing.Drawing2D
Imports System.Windows.Forms
[code]....
So, now I've exactly used this code to load an image from a path specified. Still, i seem to get a blank form when i run. im quite sure about the path and the existence of the file. Also, the exact piece of code is also available at: Draw an image : Draw Image2D GraphicsVB.Net Tutorial So, now do i have to insert a picture box to se the loaded image. Its like.. ive used the graphics thing to draw the image. so i reckoned that picture box was unnecessary.
View 8 Replies
Feb 6, 2010
Is it possible to load an image into a picturebox when that picture box is clicked? What would the syntax look like? It's an image that I already dropped onto the form that I would like to load into that picturebox.
View 1 Replies
Sep 13, 2009
I'm not able to find my answer from threads.I want close the loading of web page when it take more of tot seconds...(if is possible with a Firefox or IE)
StrAdrress = "http://www.google.com"
Try
System.Diagnostics.Process.Start(strAddress.Trim)
Catch ex As Exception
MsgBox(ex.Message, MsgBoxStyle.Critical, "Error")
End Try
Threading.Thread.Sleep(50000) So you can see I wait 50 seconds now..Is it possible to convert this code in : if the page not load in 10 seconds, stop load,close the tab and open another tab with another address?
View 1 Replies
Mar 29, 2009
Problem
Forms:
1) Splash1
2) frmMain
Purpose:
unloading splash1 and loading frmMain
Code used so far:
CODE:
Problem:
The Whole project is ended!
Problem2: How to Create and .exe?
Basic Problem: I Have started programming in VB.net today only, I have experience of 2 years in VB6.
View 4 Replies
Jun 2, 2009
I am using a DLL in my application that will probably be experiencing frequent updates. I want the DLL to detect the new version (I know how to do this), load the new version of the DLL into memory, and continue running. Is this even possible? So I need to know how to: Unload the current DLL. Load the new DLL. If possible, do this from the DLL in question. Is this even possible? If not, how close can I get to this?
View 6 Replies
Feb 17, 2009
Now I need to avoid exception error for when I move, minimize and close any of the other 3 forms for the program I am building. ZOrder?. I was thinking of using an if statement to determine the zorder of each form. I need to know how to implement the if statement.
Option Explicit On
'Route User to the desired page
Public Class Form1
[Code]....
View 1 Replies
Sep 29, 2010
I am programming in VB9 WPF and Blend 3. I was working on a program in Blend 3; I can work on all my forms and everything runs fine in Blend, but when I opened it in VS the WFP forms would not display (I have five of them in my program and they all have the same problem in Visual Studio.), but I can run the program in VS, see the forms in run mode, and work on the code behind with no problem. I can't determine what is causing the WPF forms error in VS. It appears I have a "ResourceDictionary_4 error, but I cannot locate that dictionary in either Visual Studio or Blend. I even tried searching my entire computer and can't find any trace of it. Are there any ideas as to how do I solve this problem? The error messages I am getting are:
[Code]...
View 5 Replies
Jun 2, 2010
I am designing a yahtzee game in Visual Basic. I am wanting to save the form’s background color and the picture boxes dice so they can be set the next time the form is loaded. The user can change the background color of the form and choose between several sets of dice. I want the last color the form’s background color was and the picture of the last set of dice used placed back in the picture boxes of the dice the next time the user opens the Yahtzee game. I am trying to do this in a module,
View 21 Replies
Dec 9, 2009
there's an img src=blah on a web page that I am loading with a webbrowser control, and I want to alter it to say img src=blahblah instead ... What I've been doing so far is waiting for the document to complete, doing a .replace, then saving the file to the hard drive, and finally navigating to that local altered version.I was wondering if it's possible to skip the step of replacing and reloading the local page, and instead, just dynamically alter the original source code of the page AS it's loading the first time. Can this be done?
View 2 Replies
Nov 26, 2009
So I am nearning completion of my 7th major project And I need the application to load files into ram when the application starts..Almost like a splash screen but with a loading bar.I have to load over 90 JPG's And I would like to have them in RAM so the application isn't so slow at first IE System.Load(My.Resources.JPG1) And LoadingBar1.Value += 10 Etc, etc.I have a Form I have created as a splash screen..I need it to load all the JPGs before starting the application..
View 6 Replies
May 14, 2009
I have a picture box on my form along with a combo box with a number of different options. So anyway when a combo box item is selected I want it to look in the dataset for the selected item's row and pick out the image to load and then using an IF statement it sets the image (or should).
Dim RaceImg As String = DS.Tables("tblRaces").Rows(ID).Item("RaceImg")
If RaceImg = "AusGP" Then
GP_Picture.Image = Image.FromFile("./Track Images/AusGP.png")
ElseIf RaceImg = "MalGP" Then
GP_Picture.Image = Image.FromFile("./Track Images/MalGP.png")
End If
I have tried a number of different ways to get this working, I have tried them in the resources for the program and also tried the following code
GP_Picture.Image = "./Track Images/AusGP.png"
It seems like the picture box isn't redrawing or something? Just to add it will load the first image which is the AusGP because thats the first option in the combo box, after that none of the others will load.
View 3 Replies
Jun 6, 2009
Sub laad_leden()
Dim myConnection As New connectdb
Dim tabel As New DataTable[code]....
While loading the data to the program the window freezes. It shows the progressbar but the progressbar is also freezing.How can i let the progressbar marquee while loading / freezing.
View 1 Replies
May 6, 2009
I've got a database that's 13,000 lines long and I'm trying to load this into a string array when the program loads but it takes approx 5-6 minutes for it to load it.I've got a MS Access database or an Excel file that I can load this information from, each has two rows: SVONo, Description This is my current MS Access
[code]...
Does anyone have any idea of how to make it faster? Or does anyone have a better way?I did have the idea of loading it by letting the user select the first letter and then only loading the ones that begin with that letter but I've got 4000-5000 'S' ones and it still takes about 2-3 minutes to load it All I want is to load the data from the database or the excel file and then put the products into 'cboProducts' and the 'cboProducts AutoCompleSourceList' and the descriptions into the 'txtDescriptions' AutoCompleteSourceList and a string array.Then when the user selects a product using 'cboProducts' the description will automatically be put into 'txtDescription'.
View 12 Replies
Apr 2, 2012
I am doing a project for part of my coursework which involves the creation of a series circuit designer.
I am having some trouble with the saving and loading functions; I had intended to save them to a text file with commas separating the component name and the value (if any) attributed with it.
Grid(xcoord, ycoord, 0) contains the component name. Grid(xcoord, ycoord, 1) contains the attached value (resistance or voltage- components such as wires have a value here of 0)
Once the save button is pressed, the text file contains 50 rows of "0".
P.S. Let me know if any other parts of my program are required.
Dim comp(maxsize) as ccircuits[globally declared]
Const maxsize = 50
Structure ccircuits
[Code]....
View 2 Replies
Nov 11, 2009
I have a desktop application that shows a list of pdfs, and when the user selects one it shows it to him/her. I use the AcroPDF control for this, and it seems to work, but if the user goes back and forth between viewing the file and viewing the list, then the control randomly decides not to show the file (showing a blank page instead).
View 4 Replies
Nov 25, 2009
Instead of loading a crsytal report from a path like this:myCrystalReport1.Load("C:Program FilesAstec IndustriesPlantDailyShiftReport.rpt")Is it possible to include the crystal report in the solution and load it from there? I've used this is asp:
Dim myPath As String = (Server.MapPath("PlantDailyShiftReport.rpt"))
myCrystalReport1.Load(myPath)
View 1 Replies
Jan 28, 2010
i am hiding a form and showing another form by this bit of
form1.show()
form2.hide()
form 2 contains of a dgv and by the form1 i am editing the contents of the dgv present in the form 2.......
after making the changes when again i show the form2 and hide the form1,then the changes made did not appears in the form2............
i have this bit of code at the form load of the form2:
con = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;Data Source=LibraryManagement.mdb")
con.Open()
[Code]....
now when i close my application and again reload it then then changes that i made appears in the dgv of the form2........
if i am showing the hidden form then at the time of showing it,does the form load event of the hidden form is raised?
or,
the hidden form is already loaded and there is NO form load event and only the form is shown and hidden...
View 3 Replies
Aug 26, 2009
I have been given the below form but here i cant understand the use of this checkbox named LoanCredit card number.I am told that when user checks it then all master data will be displayed. does it mean that when i am entering some data in the database then the data will not not appear in the dropdownlist of the creditcard no. combobox automatically,on checking the checkbox the creditcard no. which is saved in the database will be added in its dropdown list? again when i uncheck it then again the dropdownlist of the combobox will become empty?
View 3 Replies
Mar 16, 2009
I am currently developing an application that will be the "base" for several components (business reporting systems, order management, etc). The idea is that our customers will install this "mother application", and we will offer components that will slot into it, expanding the functionality.
Now, here's my idea for how to make this work. I have some of this basic functionality down, but I want to get other people's opinions, ideas and experiences with this sort of thing before I move too far in a direction that might not be the best way to go:
[Code]....
View 11 Replies
Mar 2, 2009
I am currently trying to load an XML file into my app. However, it keeps throwing an exception error (InvalidOperationException - Object reference not set to an instance of an object) and I can't work out why. have a look at the code below and see if you can spot the error? I'm still very much a beginner so i'm sure it will be something simple..
Public Class FrmXMLReaderTest
Inherits Form
Friend WithEvents txtOutput As TextBox
[Code].....
View 7 Replies
Feb 2, 2011
I have a form which asks for a username and password to connect to a MySQL database. Before I load the login form I would like to place a check to see if the connection information is stored in the My.Settings.<connection string..I am using Sub New() in the Form.Designer to do this by placing the following [code]The connection form does show but when i close the form there is a blank form that shows up.
View 3 Replies
Jun 13, 2007
My Startup form open very slow. How can I show a wait screen while Initialize Component. Then close this wait screen and show my Form.
You can see my attached image.
View 7 Replies