Changing Window - Pause/menu Screen ?

Aug 19, 2009

I want to know how to change the form to well another screen. Example:In the popular mcdonalds flash game you can scroll through varius screens such as the restaurant, the farm, etc. You can still play the game though and it's not just a picture. Another example would be a pause/menu screen where you could interact with it. Could I use more than one form but when they play the game they can only see the first one? Then when a certain event happens it changes to the other form or something?

View 1 Replies


ADVERTISEMENT

Pause In Between Screen Outputs?

Oct 7, 2008

I've got a little code that just reads and displays all the folders in a particular directory. What I want to happen though is for the program to pause 1 second after adding a new folder to the listbox. When I have Sleep(1000) it simply freezes completely.

Code:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

[code].....

View 4 Replies

.net - Taking Photo Of Screen - Take A Picture Of The Entire Screen, Not Just The Focused Window?

Jul 6, 2011

Currently I have the following VB.NET code to make a screenshot of my desktop, but it only takes a picture of the active screen:

Public Function SaveScreen(ByVal theFile As String) As Boolean
Try
SendKeys.Send("%{PRTSC}")[code].....

The following code is how I execute the above function, if it makes any difference, which I don't think it does:

SaveScreen("C:Lexer_tracescreen.png")

Now, I need to be able to take a picture of the entire screen, not just the focused window.

View 4 Replies

VS 2008 Draw Directly On The Screen (not On A Specific Window) Just On The Screen?

Jul 1, 2009

I send a message a while ago and no one answerd, how can I draw directly on the screen (not on a specific window) just on the screen, neither if it's on the desktop or anything else.Is there is any option to bring up the switch between applications window (Alt + Tab), I don't want to use sendkeys because the user need to keep the key down and I just want the user to select the application with his mouse.

View 3 Replies

IE Window - Size The Window, But Not Change The Windows Location On The Screen?

Jun 21, 2011

im using vb.net to open IE and go to a website... i can figure out how to size the window, but not change the windows location on the screen... how can i make the IE window position always 0,0

Dim oIE As Object
Dim hWnd As Long
oIE = CreateObject("InternetExplorer.Application")[code].....

View 3 Replies

[2005] Display A Randomly Generated Sentence On The Screen Wait - Pause - Timeout - Standby?

Jan 26, 2009

My program is supposed to display a randomly generated sentence on the screen (something like a screensaver) Then 'wait' for a random period between 1 and 5 minutes before cycling through to generate another sentence. How do I do that?

[Code]...

View 5 Replies

Changing From Menu In Form During Runtime

May 11, 2010

I have a forms application and I have multiple localizations for it. I've figured out how to add a button to a form, to change the localization and then read all the labels/etc and change them to the other language.What I would want to do instead now is click a button and it changes to the other language the current form but also the entire application so that any other windows opened while the application is open open in that other language.[code]This is the code I use when a button is clicked on a form to change it to Hindi the current form. However I want to when the button is clicked, change application to continue to run on that localization instead for the remainder of the time it is open.[code]

View 3 Replies

Changing From Menu In Form During Runtime?

Mar 8, 2011

I have a forms application and I have multiple localizations for it. I've figured out how to add a button to a form, to change the localization and then read all the labels/etc and change them to the other language.What I would want to do instead now is click a button and it changes to the other language the current form but also theentire application so that any other windows opened while the application is open open in that other language.

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If Present <> OriginalCulture Then

[code].....

View 7 Replies

Changing Menu Hover Color

Oct 18, 2009

I have changed the color of my menus to a darker color and it has light colored text, the problem is when I however over the menus it hovers over with a light blue color so I am unable to see the text, is there anyway of changing the color of the hovered menu color?

View 2 Replies

Why The Pause Button And Also The Pause Command Does Not Exist In VB 2010 Express

Mar 8, 2010

1) Why the pause button and also the pause command does not exist in VB 2010 Express?

2) I have some solutions under 2010. In 2 or 3, while debugging, I can change instructions without restarting the application. In others, I cannot change anything (Is like readonly), Looking in 'My Applications', Tab 'Debug', Option 'Configuration' I can choose several Options. In the applications I can debug, the default is 'Active (Debug)'; in the others is 'Active (Release)'. If I change the options, the word 'Active' remains attached to the original option.

View 5 Replies

Scrolling/Changing The Screen?

Aug 22, 2009

Well in some games I want to make, I want to be able to move or change the screen. I will just post examples of some of the things that I would like to do.

ex. Like in an RPG game where you go inside of a building

ex. Press a key and a menu comes up

ex. Click a button to change the screen to a different part of your game( in a restaurant, click a button and you got to the kitchen)

ex. Scrolling screen as in an RPG or adventure game

ex. 2 player split screen where they both have scrolling screens

I was thinking I could achieve this by haveing more than 1 form but you can only see 1 and it switches between them but I doubt I could do that.

View 3 Replies

Insert A New Right Click Context Menu Item To The Existing Right Click Context Menu For The Active Window?

May 15, 2010

VB express 2008 .net 3.5 or .net 4.0 VB express 2010?I have written application to convert RTF to HTML. The main Purpose of the application is to copy VS code to the clipboard and covert it then put it back into the clipboard as a HTML Document so that it can be pasted into a HTML document such as Windows Live Mail. I found that code copied and pasted is spaced out in in the wrong positions.

The applications works perfect with no bugs so far. I then asked Myself how to go about doing the copy with the least amount of operator interaction. So I added an Icon to the Icon Tray with a right click menu to use to convert once the Rich Text Format was copied to the clipboard. This works fine except you have Five steps, Select the text, Copy to clipboard, Right Click the icon, Select the Converter and Paste. The normal is three steps.

To this the best solution is to add a context menu item to the active form such as the RTF editor or window. So that when you select the Rich Text to copy and right click on the form to bring up that menu then to Just Select the menu Item such as "Copy RT and Convert" I searched and found about 544000 Items and tried to restrict down to no avail. I read until I finally gave up. I did not find any code examples of this. Almost every thing I found related to the web or some other explicit document like Excel and not to the Various windows that could be active with RT in it.

how do you add a context menu item to the context menu of an active rich text format window such as WordPad or VB?I have test in my application that tests to see if it is a RTF in the clipboard so if it is not the converter does nothing.

Imports System.Threading
Imports System.IO
Imports System

[code]....

View 8 Replies

Changing Properties Of The Control That Calls A Context Menu?

May 8, 2011

I have 10 PictureBox on a windows form (created in Design View) and a context menu strip is attached to each of them. I am trying to set the property of the PictureBox using the context menu.

View 1 Replies

Changing Screen Resolution With VB 2005?

Mar 25, 2006

I'm having a difficult time converting a Windows API call that works fine in VB6 to run in VB 2005 (Windows XP with SP2 in both cases). I reduced the problem code down to its core which is below. I'm trying to change the screen resolution with the ChangeDisplaySettingsEx call; the idea is that on entering the program it shifts to high resolution and at the end it restores the original settings. I left the restore part out because I get the same error. Which is "An invalid parameter was passed in.This can include an invalid flag or combination of flags." I'm trying to use exactly the same parameters, but somewhere in the conversion process from VB6 a fatal change crept in. My guess is that it's either in the ByRef/ByVal or Short/Integer/Long alternatives, or in the conversion of the Devmode structure which included fixed-length strings (OK in VB6 but not allowed in VB.NET). But all my fiddling so far has not produced a solution. I got the same error code back in VB6 when I tried to set a display frequency that was not supported at the resolution I requested, but even leaving the values unmodified (in effect setting them to what they are now, with no change) gives the same error. Any ideas? So far as I can tell, there is no alternative to the API to accomplish this goal; would be interested to know if I missed it.

[Code]...

View 1 Replies

Programmatically Changing Screen Resolution?

Nov 28, 2005

I have an application that needs to run at a particular screen resolution. How do I detect current screen resolution and then change it if it needs to?

View 4 Replies

How To Build A Main Menu Screen

Jan 1, 2011

I'm a beginner VB.Net programmer using VS 2008.I'm planning a new winform project whose main form should look more or less like this:

[Code]...

The user can either choose from the Main Menu (by clicking an item) or enter the item number in the textbox. For example, if the user clicks DoSomething3 in the Main Menu (or alternatively enters 3 in the textbox), another form will be opened and hide the main form.What would be the best way to implement it?Specifically, I would like to know how I make so that choosing from the menu and entering a number in the textbox fire the same event.

View 3 Replies

Changing Menu Strip Items From Open File Dialog1

Aug 31, 2009

I am making a program that is in need of labels changing and showing depending on what the user clicks on a file Dialog.

Everything works fine except for that when I change the labels, it uses the entire file path, and I ONLY want the file name. How would I be able to get JUST the file name?

[code....]

View 5 Replies

Dynamic Menu Creation Not Working After Changing From VB 2003 To VB 2007?

Jul 12, 2009

I have started a new blank project for VB 2007. I have taken the old code (VB 2003) and added it to the project.The line marked below worked on the old VB, now it does not. I get the following error:

Object reference not set to an instance of an object.

Troubleshooting tips:

Use the "new" keyword to create an object instance.

Check to determine if the object is null before calling the method.I have tried several forms of using the "New" keyword and still get the error.

Public Sub BuildChooseFileMenuItems()
Dim k As Integer
Dim numChecked As Integer

[code].....

View 1 Replies

How To Get Full Screen Without Changing The Form's Layout

Nov 23, 2009

I have finished my winform project. And now, i want to setting my application full screen mode. I tried, but my layout was not is the same as mode is before full screen.

View 2 Replies

Screen Designer - Changing Size Of Control?

Jul 22, 2009

I am working on a application which is basically a screen designer. I have implemented the form designing capabilities using IDesignerHost and other interfaces. In my application user can pick a component from toolbox and drop it on the designer screen and can configure the properties from property window. I have my own set of properties which gets populated from database. Screen designer is working fine but the problem occurs when user changes some properties from property window. Say user changes property 'Width' then I change the width of the selected control in designer but the problem is SelectionOverlay shows the old size. When I select another control and select old control again, SelectionOverlay(resize handlers which appears around the control) shows properly. How can I tell the SelectionOverlay that the size of the control is changed.

View 2 Replies

[02/03] Login Screen Not Appearing Before Main Menu?

Jan 7, 2009

I'm creating a basic window's application where I have a login screen where the user will enter the userid/password etc. Only problem is when I try to run the application, it goes straight to the main menu.What would give the main menu precedance over the login screen?

View 5 Replies

Changing A Window's Title?

Apr 29, 2010

Dim num As Process
For Each num In Process.GetProcessesByName(TextBox1.Text)
Next

[code].....

View 2 Replies

VS 2008 Setup Program - Changing Welcome Screen Text

Mar 21, 2012

I've added a setup and deployment package to my project. When I go to install it the first screen says "Welcome to the setup setup wizard." Obviously, that doesn't look right. I want to change this, but can't figure out where that setting is. How to rename that setting so that it says "Welcome to the Wonderful Program setup wizard" instead?

View 6 Replies

Immediate Window Removed From Menu?

Mar 24, 2009

I was having trouble debugging an app because I couldn't invoke the Immediate window. I finally ran across a keyboard shortcut to invoke it (Ctl+Alt+I) so my 'immediate' problem is solved, but now I'm trying to figure out why the Immediate window option doesn't appear on my Debug menu like it does on my co-workers? (The menu-designated shortcut, Ctl+G also doesn't work for me.)If necessary I suppose I can customize my menu to add it back in.

View 3 Replies

Screen Capture That Will Include The Menu Strip If Expanded?

Mar 11, 2010

Is there anyway to do a screen capture that will include the menu strip if expanded? I know ALT + PrintScreen will do a capture of the current view, but once I hit the ALT key, the menus disappear...

View 1 Replies

Capture Window Changing Event?

Apr 18, 2012

how can I capture the event, if the user f.e. changes from ie to ms word?

View 3 Replies

Changing Items In Listview From Another Window?

Feb 19, 2010

How do i change the values inside a listview after inputing some values from another window. The window with the list view doesn't close. There is a button where you can open another window that will store a value in a variable. then after closing the 2nd window, (ok button) how will the value appear?

View 2 Replies

Changing State Of External Window

Nov 2, 2010

I am trying to make a window manager and I am wanting to know how to change states (SW_HIDE, SW_SHOW) of an external window such as a firefox browser or explorer window.

View 1 Replies

Disable F10 From Activating Window Menu In WPF

Aug 24, 2009

I'm trying to figure out a way to prevent F10 from activating the window menu (same function as pressing 'alt') and fire keydown/previewkeydown instead. I know there are ways to do it using window.forms, but I'm using WPF on VB.net and I can't seem to find a method that would apply.

View 1 Replies

Disable F10 From Activating Window Menu In WPF?

Apr 27, 2011

I'm trying to figure out a way to prevent F10 from activating the window menu (same function as pressing 'alt') and fire keydown/previewkeydown instead. I know there are ways to do it using window.forms, but I'm using WPF on VB.net and I can't seem to find a metho

View 13 Replies







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