Switching Between Forms Lags Computer?
May 10, 2010
So the program I have is an overlay for a bit of software that has a main Video out. Whenever I go between forms the video freezes for a tiny bit but is noticeable. I am using the following to go between forms,
vb
Form6.WindowState = FormWindowState.Maximized
Form6.Show()
Me.WindowState = FormWindowState.Minimized
Me.Hide()
Is there a better way to cause less work for the form, making there be no lag at all?
View 1 Replies
ADVERTISEMENT
May 2, 2012
I have some forms in my application and need to switch between them. I dont want to open another form over other form, in short I want the user to get a feel that he is working on one form only. Right now I am doing something like this but this is not what I want
[Code]....
View 2 Replies
Aug 16, 2011
In my project, I want the abiliity to switch between forms without closing them. What is the best way to do this? I have a "Login Splash Form" that you sign into, and then a Main Menu Form opens in Full Screen. I want this form always to stay open with the ability to open up other forms from this main menu screen as needed.
View 3 Replies
Jul 20, 2011
The problem I'm having is with the .close() event. Basically I've created the below code to prompt the user when closing the form they are currently viewing.
Private Sub Form_closed(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.FormClosing
If MessageBox.Show("Do you wish to exit?", "Program Name", MessageBoxButtons.YesNo) =
[code].....
View 2 Replies
Sep 27, 2010
I am making a visual basic game. And in the game I have a few instances where I want to call open a window (let's save to save the user's preferences) from a form, then I want to go from that form to another one.
Example:
The user has completed the new game page. I have the users choices in a host of string, integer, and boolean variables. Now I want to use a generic saving screen I made with a progress bar. When I open up the saving box, I want to close or hide the new game setup menu (whichever I need to do). Then when it is done saving I want the Saving bar to return and cause the new game form to open the actual game form and close itself.
So I guess my question is this: What is a reliable(or correct) way to poll for a return in form to signal it to go ahead with execution?
Second:
This is similar to the first question. Instead of keeping the first form open when I use the saving form; is there a way I can save the name of a page I want the saving bar to go to once it's done?
I want the user to enter their prefered username before they start a new game for the first time. So I poll the saved username setting I have and if it equals "username" I want the Username entry form I made to pop up, but once it's done I want it to immediately call the new game screen. I also want to use this username entry form on the options screen so that the user can change their accepted name at anytime; but I want this screen to return back to the options screen.
What is the accept way to do this? Is it done through stacks? (form information -> stack : load new page : Do stuff: load stack value -> goto)
Finally:
Do I have to keep a window open (not close it) to access the variables that I have defined in it, and have stored values too? Does this apply to hiding too?
View 1 Replies
May 11, 2011
My application having one mdiform in that form six child forms are there.Switching of one form into anather form blur bars are appearing form at the title of every opened child form.These six child forms are opens in mdiform.how to remove the blue bars are appearing from every opened child form in mdiform.how to remove blue bar are appearing from switching of one childform into anather in mdiform using vb.net?. how to remove these blue bar.
View 1 Replies
Jan 21, 2012
The scenario is i get a string sent to me that i split by a space. Any thing under 60 count when the split occurs it's fine. After that i have a problem.Now there is a lot that needs to happen before we can add this newly split array to the listview.First we need to check what the name starts with. Then assign an icon to this nick.When my server class gets sent this string. Raw Numeric 353 channel names i then send it to my nicklist class.
vb
Private Sub InitiateThread(ByVal nicks As String) Handles _server.NameListEventArgs
Dim thread As New Thread(DirectCast(Sub() DoWorkChannelNicks(nicks), ThreadStart))
thread.Start()
End Sub
Then we split the string and loop each item
vb
Private Sub DoWorkChannelNicks(ByVal users As String)
Dim nicks() As String = users.Split(" "c)
[code]....
how to speed the process up?
View 9 Replies
Mar 19, 2012
I've copied a project from one computer to another and while I can open the project and its one module, when I try to open any of the forms, I get this error:
Quote: There is no editor available for 'C:UsersDaBoyesDesktopWattsDBForm6.vb'.
Make sure the application for the file type (.vb) is installed. I can open the forms just fine on their own--I just can't open them from within the project.
View 5 Replies
Jan 25, 2012
How can I check if a computer has multiple screens?And is it possible to move form to other screens aswell?
View 3 Replies
Aug 17, 2011
[URL] some properties aren't showing in my vb just like the one needed in the video..my computed column is made only by
-project
-add new item
-dataset
then i just changed the expression property
View 5 Replies
Jun 24, 2010
i developing my stock management system..in the welcome screen i want to put a enter button with a symbol as in computer keyboard.how can i get that symbol in button Text.
View 5 Replies
Oct 16, 2009
I'm trying to display all services on a computer into column 1 under Processes and column 2 as services. I can't figure out how to do this with the WMI statements.
Here is my code......
Private Sub OKButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OKButton.Click
[CODE]..................................
View 4 Replies
Aug 18, 2010
I created a background image for the form with rounded corners. I filled the outer edges and empty space with Lime color (00FF00) and then set the same transparency key in the properties for my form. It worked well, the edges were transparent and the form appeared round-edged. This was accomplished with Visual Studio .NET 2005 on Microsoft Windows Vista Home Premium 64-bit.The very same application was ported to a different platform. Visual Studio .NET 2005 on Microsoft Windows XP Professional 32-bit. All the settings are the same and nothing has been changed. But the transparency effect is not appearing on the Windows XP platform.
View 5 Replies
Aug 10, 2010
I came across this Switching from VB.NET to C#?I would be moving from C# to VB.Net. To be more precise, I would be moving from C# 3.0 to VB 10.0 (.Net 3.5 to .Net 4.0). I am initially planning to use a C# to VB converter to cope up with the syntax.
View 6 Replies
Jul 10, 2009
I have the following code, which works fine most of the time:
Private Function NormalizeTexture(ByVal Texture As Bitmap) As Bitmap
Dim Out As New Bitmap(2048, 2048, PixelFormat.Format32bppArgb)
Dim Gra As Graphics = Graphics.FromImage(Out)
[Code].....
View 11 Replies
Jun 10, 2010
I have a scrollable panel that has a "list" of controlls. However when you scroll, it kinda "lags" with a kinda "motion blur" Does anybody have a solution to my problem?
View 1 Replies
Jul 18, 2010
I have 2 listbox's, same locations/sizes (one behind the other). I have 2 buttons, and they just switch the views between the listbox's by changing their visibility propertyThe problem is listbox1, which gets populated first, displays just fine. No code in the program touches listbox2, except for 1 button that adds items. When switching to listbox2 to see the added items, the items are there (verified by debugging and hovering over the added variable), but the text that is displayed won't update. The text that is displayed is the text from listbox1.
View 14 Replies
Jan 8, 2012
I am currently working on transferring data between minitab and excel and have everything working out fairly well. I am having trouble getting back to minitab (I can get the initial program to run with the shell commmand). I have tried appactivate, and windows commands but I am not having any luck.
View 1 Replies
Sep 6, 2010
Having had to replace my old computer, one can virtually only get 64 bit Win7 in UK.All my old Visual Studio 2008 + other components installed OK but when I tried to build and run a prgramme that still runs happily on the old machine, I get the following error message
System.TypeInitializationException was unhandled
Message=The type initializer for 'mydata.Colin' threw an exception.
Source=mydata
TypeName=mydata.Colin
StackTrace:
[Code]...
The programme is called mydata and Colin is my User name. Anybody got any idea what is wrong and how to correct it. I have tried to run it in Visual Basic 2010 Express and get the same error.
Hopefully VB2012 will have Gigs of error messages that mere mortals can understand!
View 8 Replies
Mar 15, 2010
I have an application I wrote that is in VB.NET 2.0. Works great, but I'd like to switch this application to Linq. I use ADO.NET to load XML into a datatable. The XML file has about 90,000 records in it. I then use the Datatable.Select to perform searches against that Datatable. The search control is a free form textbox. So if the user types in terms it searches instantly. Any further terms that are typed in continue to restrict the results. So you can type in Bob, or type in Bob Barker. Or type in Bob Barker Price is Right. The more criteria typed in the more narrowed your result. I bind the results to a gridview.
1) Go to Project Properties --> Advanced Compiler Settings and change the Target framework to 3.5 from 2.0.
2) Add the reference to System.XML.Linq, Add the Imports statement to the classes.
So I'm not sure what the best approach is going forward after that. I assume I use XDocument.Load, then my search subroutine runs against the XDocument. Do I just do the standard Linq query for this sort of repeated search? Like so:
Dim people =
from phonebook in doc.Root.Elements("phonebook")
where phonebook.Element("userid") = "whatever"
select phonebook
View 2 Replies
Mar 19, 2012
i have a task to create a TCP Server (a program that is listening on its network card interfaces for incoming data stream).I have search on the internet and i found that i can use two methods : Socket or TCPListener class.I have created an example for Socket class, but i wondering how could i test it? I need to check that if another computer in the network send some string data to the listener computer , then this message should be displayed.Here is the example from microsoft that i am using for TCP Server using Socket:
Public Shared Sub Main()
' Data buffer for incoming data.
Dim data = nothingc[code]....
But it does not work because of the PORT setting.If in the TCP Server i have "Dim localEndPoint As New IPEndPoint(ipAddress, 0)" the client crashes, but if i change the port from any (0) to 11000 for example,the client works fine.Do you know why?
Later edit2:Maybe i should have started with this question:Which method is recommended for my scope?asynchronous or synchronous method ?
View 2 Replies
Jan 29, 2009
I am developing a computer application designed to monitor the network and CPU statistics on a computer remotely. The monitored computer would have my program installed and the monitoring computer would display, in a form, the information being sent from the remote client.The application does not send any information regarding packets, user names, passwords, etc. It is solely meant for monitoring CPU performance and Network resources remotely.
What would be the best method to send this information over to my host machine?I am programing in Visual Studio 2008 on windows XP. The client machine is also XP. I know this sounds a little shady, but it is required for my little business (http://www.iquorum.net) to monitor what and when something happens on our machines when I and my employees are away.
View 2 Replies
Jul 11, 2009
I am trying to dial a computer from another computer using Modem for sending files and messge.Follwoing is the code done in dialing computer
Text1.Text = "Test string from App1 "
Number$ = InputBox$("Enter phone number:", "Number$")
If Number$ = "" Then Exit Sub
Temp$ = Status
[code].....
But after the dial tone, i am getting the exception "CTL_E_GETNOTSUPPORTED " at the line MSComm1.Output = Text1.Text?
View 6 Replies
Feb 4, 2011
i have encountered a problem, i want to access the data coming to the computer from the in-built bluetooth module of a computer on windows platform, this data has been sent by a remote bluetooth module say a by an autonomous device (just like a bluetooth mouse connecting to the computer). The to be sent is in the form of numbers and i need these to manipulate on the computer.
View 6 Replies
Jun 12, 2010
I have a desktop computer with a cable connection on the back that allows me to watch TV on the computer using Windows Media Center. I had the idea of writing a program that would access this feed and send it to another computer (laptop) via my network. That way I would be able to watch TV from anywhere that my network spans. I have no idea if this is possible or how I would even do it,
So I have three questions.
1: Is it possible?
2: How would I go about access the feed?
3: How would I send it over the network?
My original thought was doing it in Flash, but I'm not very good at Flash so I wanted to do it in VB.Net.
View 2 Replies
Dec 19, 2006
I need to copy a file from a local computer to a remote computer on the network, if i try to use File.Copy without logon i get the following error:"Logon failure: unknown user name or bad password."How do I provide user name and password for file copy?
View 2 Replies
May 21, 2010
how can i look up for a specific computer given ip or computer name ...retrieve the user logged on..
View 2 Replies
Mar 31, 2009
Problem:When my computer restarts my mapped drive appears under My Computer. When I try to use it from code I get errors. If I open the mapped drive by double clicking it, and then try the code, it works. What I discovered is that when my computer starts the status, using net use, is
[code]...
View 5 Replies
Aug 9, 2009
trying to get my first windows form running with controls. I havent been able to figure anything out. . . and then i realized duh, it's all in VB. How do I switch the generated files to C#? Am I confused? This is what I'm getting when I try to add my first control for Button_Start:
[Code]...
View 2 Replies
Sep 28, 2009
I'm starting to play around some with VB2008.
In VB6, I would write something like this:
rs.open("SELECT * FROM Contacts", cn1)
strFirstName = rs!FirstName
In VB2008, line 2 does not work. How do get to the fields in the recordset?
View 2 Replies