How To Turn On 'ViewerForm.vb'
Feb 21, 2010I'm learning vb2008 from a book, and I just can NOT figure out how to turn on the "ViewerForm.vb [Design]" when it's not showing up as a tab.
View 6 RepliesI'm learning vb2008 from a book, and I just can NOT figure out how to turn on the "ViewerForm.vb [Design]" when it's not showing up as a tab.
View 6 RepliesMy current code: Server: Imports System.IO Imports System.Text Imports System.Threading
[Code]...
Right now I can add background music in my program by using this code
My.Computer.Audio.Play(My.Resources.Music_3, AudioPlayMode.Background)
I can also turn it off and change the music by using this code
My.Computer.Audio.Stop()
My.Computer.Audio.Play(My.Resources.Another_Music, AudioPlayMode.BackgroundLoop)
Is it possible to pause the music then if I resume the music it will just continue the flow? I mean if I pause the background music in 33 seconds and the music has 50 seconds and I resume it will just continue playing in 33,34,35 etc.. seconds?
I was wondering if their was a way to for me to turn off events and then turn them back on in my program or just queue them up until i am ready for them to be excuted. Kinda like how a OS turns on and off interupts. Is this one of those general programming no-nos?
View 1 RepliesAs easily as possible? How to parse and create XML easily?
View 3 RepliesI want to take my dataset and convert it to an xml string.
View 2 RepliesI have code bellow. Why it doesn't work?
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
SendKeys.Send("{NUMLOCK}")
End Sub
I want to make a simple program with I can turn on/off litle USB LED.
Nothing special, just one small LED as you learnt in 8th grade.
I think the simpliest way to do this is "powering off" USB port. But how?
I'm using Visual Basic 2008 Express Edition.
How do I turn off a monitor using VB.NET code? OK, actually I found the C# solution. But I need the VB.NET solution. I have tried an online C# to VB.NET converter, but the converter is complaining that there are errors in it.How can the following C# code be translated to VB.NET?
[Code]...
my query is this: I want all of the characters that are of a membership level in a given area that is of admin or above.
This is what I have so far:
Dim L As List(Of Character) = (From C In MasterCharacterList.Characters.Values _
Where Me.Item(C.CharID).DreamLevel.ContainsValue( _
(From L In _Levels Where L.Value.Admin Or L.Value.BotMaster Select L.Value.MemberLevel).ToList.ForEach) Select C)
Me, in this case, is the members collection.
So far, I can't get the query to turn into a list (hence no .tolist at the end.) I know there's something wrong here, but I'm not sure what.
I would like to turn of this exception in the debug menu but I am not sure how or which one to uncheck or check.."ObjectDisposedException was unhandled"
View 6 RepliesI am making a small guessing game, and I have a numerical number box in the option forms which sets the max number that can be generated. Because of the way I get the variable it wont update that value correctly. To fix this, I have a label which, upon closing the form, is set to the number of the numerical number box, and the max value is gotten from that label. My question is this: How can I convert a string to an integer? I tried one way, but got (i think, i cant remember exactly) a "First class expectation error" and something to do with "vbexpress.dll" (again, not the exact name) This then caused my Laptop to lag up so much that i couldn't do anything, and had to force crash it. So again, my question is this: How can I convert a string to an integer?
View 3 RepliesI have an array of conditions with elements like "thunderstorm", "severe thunderstorm", etc. I want to loop through the elements and, for each element, check a registry key. Then, based on that registry key I want to either check or leave unchecked a checkbox called TornadoCheckBox, SevereThunderstormCheckBox, etc.
Here's what I've got so far:
Dim ConditionsArrayString() As String = {"Tornado", "Thunderstorm", "Severe Thunderstorm", "Hail", "Snow", "Heavy Snow"}
Dim CurrentConditionString As String
[Code]....
I'm creating a program that creates icons starting at images using vb.net in VS 2008.I wish I could rotate an image displayed in a PictureBox horizontally.The intention is to leave as Windows Vista /7 is the view of putting a folder of image files in this folder within a folder.It (the image) is rotated just a bit not totally aware of the front screen.With a program only had managed to do this with Word 2007, using the new "3D Rotation".But I have to do with VB.Net code.I have looked something about using Google, but found nothing useful.
View 8 Replieswhen i put this in a button
WebBrowser1.Navigate("http://go-text.me/w/")
and when i click on the button and go to the site, then i can't send messages from the site... (When I click on send this messages,nothing happens)The problem is javascript , when you turn javascript off in your main browser like ie 8 or firefox then it becomes the same problem... how i can put javascript in webbrowser1 on or something?so I can click on the "send this messages" button... ?
I have a book for VB 2005 and I am running VB 2008 and in VB 2005 they have a layout tab where you can turn off Absolute positioning and in VB 2008 there is no layout tab. So my question is how do you turn off absolute positioning in VB 2008?
View 1 RepliesI have a space ship, and am wanting to calculate how long it takes to turn 180 degrees. This is my current code to turn the ship: .msngFacingDegrees = .msngFacingDegrees + .ROTATION_RATE * TV.TimeElapsedMy current .ROTATION_RATE is 0.15, but it will change.I have tried:Math.Ceiling(.ROTATION_RATE * TV.TimeElapsed / 180)
View 1 RepliesInstead of making a WinForm for my application, is there any way to let it operate in the background without a form or anything?
View 1 RepliesI want to disable(or turn off) the Work Offline.Work offline is available in IE or Firefox(File ---> Work Offline). When i run my vb.Net application, i need to disable the Work Offline Mode to disable using the Javascript or vb.net.
View 1 RepliesI want to bitwise turn off the left most bit of a Short value (&H8000) and leave the other bits as they are.
Dim x = BitConverter.GetBytes(Short.MaxValue Or &H8000)
Dim z = BitConverter.ToInt16(x, 0)
Isn't there any shorter way with bitwise operators?
When I do
Dim a = Short.MaxValue Or &H8000
I get a compiler error, cuz it goes up, instead of negating it.
i have a network drive mapped to z each time i turn on the pc that drive is disconnected but i can see the z letter and if i click they return, there is some way to active that letter/drive but vb.net?
View 1 RepliesI have a space ship that I want to turn to a destination angle. Currently it works like 90% of the time, but sometimes, it 'jumps' to the destination angle rather than moving smoothly. Here is my code:
a = System.Math.Sin(.destStoppingAngle + System.Math.PI)
b = System.Math.Cos(.destStoppingAngle + System.Math.PI)
c = System.Math.Sin(.msngFacing)
d = System.Math.Cos(.msngFacing)
[Code]...
I want to disable(or turn off) the Work Offline.Work offline is available in IE or Firefox(File ---> Work Offline). When i run my vb.Net application, i need to disable the Work Offline Mode to disable using the Javascript or vb.net.
View 2 RepliesI built a power saver program that makes the screen turn black when you're not standing over the keyboard, but it only makes the screen turn black and that probably won't save much (or any) power
View 7 Repliesi'm working on a game where when your character (in a picture box) collides with anthother charachter (also in a picturebox), the character disappears. i want the computer to generate characters as you play. I'm trying to figure out how the computer will know if the player character has collided with a computer generated character. as the computer generates characters it puts their names in a list box. what i'm not sure how to do is pull the names out of the list box and have the computer check the location property of the picture box with the name that corresponds.
View 3 RepliesPublic Declare Function PostMessage Lib "user32.dll" _
Alias "PostMessageA" _
(ByVal hwnd As IntPtr, _
[code]....
And here is the actual code to do the task:
PostMessage(Me.Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 2&)
This puts the monitor into standby. Can I please have some help to modify the code to turn the monitor off, and also the code to turn it back on.
I am adding values and descriptions manually to a list box.I have a class for the items [code] and in a form the most basic example click a button to add a value and some text and then show a messagebox to get the value [code]however ListBox1.SelectedValue is always blank , however no error is thrown when adding the values.I have gone right back to basics with this example , but just cannot get a value added in manually and stored in the listbox.value property.
View 1 RepliesI am trying to create a specific aspx page where I display clickable links based on information in a sql database. For example one column could be the anchor tag another column could be the path to the link itself etc. In the past I would pull this information from sql and put it into a non-visible Label (say linkLabel1). Then in the page itself I would insert <%linkLabel1.text%> to insert the link path from the database to the appropriate area.
What I would like to do is set up a way that I could simply enter a new row into a SQL table with link information and a web page automatically displays the new link for me.
I guess I am mostly looking for insight, opinions, or directions of what approach to consider. I can elaborate if I was unclear (wouldn't be awfully surprising if I was not).
What is a method to detect if NumLock is OFF and how to turn it always back ON automatically when my VB APP is running ?
EDIT: My app is dedicated app, running on dedicated computer with external numpad device.
another option would be to ACCEPT NUMPAD ARROW KEYS (etc) and convert these to NUMBERS on fly, is it possible?? (e.g. ignore the numlock off situation and behave as numlock is on)
I have a graphics application I'm working on that displays full screen so there's no control in the upper right to close the application. I have it set up so that a right click closes the application but I noticed that a right click menu comes up on the desk top after my application closes which is no big deal. You could ignore it but I was wondering if there's a way to turn off the right click menu so that it wouldn't come up though I would want it to be enabled after that first click that closes my program.
So the right click would close the program disable the right click menu and then enable it again so that the next right click would show the menu. Haven't come up with anything on searches. I could use something else to close my application but if there's a convenient way of doing this I would like to find out what it is. I have almost every key on the keyboard doing something though I haven't used F1 through F12 at the top of the keyboard. Maybe I'll use F1 if I don't find out how to do this. How to use F1 to F12 to close or do something?
I've been using keypress events to do a lot in my application but for
Select Case e.KeyChar
Case "F1"c
isn't valid.
I tried other things. {F1} etc. I have option strict on. Thus the little c is necessary for characters like "a"c or "b"c.