VS 2008 - Doesn't Use Vbkey
May 22, 2010I'm guessing Vs8 doesn't use Vbkey. So how would I fix this so that it's right?
CODE:
I'm guessing Vs8 doesn't use Vbkey. So how would I fix this so that it's right?
CODE:
I am trying to change the background color of a tooltip
I am using tooltip.backgroundcolor = color.colr
No errors but thecolor doesn't change
I use Visual Studio 2003, VB.net, NetFramework 1.4 and Windows XP I have been using the following Code Snippet for a number of years in both Web Services and Windows Applications. However suddenly around the 29th September 2010 it has stopped sending E-Mails from both Web Services and Windows Applications. The same problem has happened not only to my own Network but on two other Networks, one using XP as its Server and the other using Server 2003. All 3 of these are using different ISPs.
[Code]...
What im trying to do is everytime i put a check in listbox1 or listbox2 the button1 or button2 in form2 will be invisible, but im having problem because if i go back to form 1 then check again form2 the changes that i made didnt save!FOR EXAMPLE i checked hide button1 then pressed APPLY! then i go to form2 i will see only button2 (yes the code works great!) but when i pressed back then go back to form2 again the code didnt work.
Heres my
FORM 1
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If CheckBox1.Checked = True Then
[code]....
but everytime i close the program and re-run it the changes doesnt save.
why does my vb.net doesn't have dropdownlist?
View 2 RepliesThere is a tool running in our company on 2003 servers. Now I want to test it on our 2008 x64 servers but when I start an error appears...
I´m searching for 2 days in forums and tutorials but can't find a solution. Here is the of the errormessage[code]...
im new to the forums and vb. I decided to make a alarm clock and the basic functions work great. But I want to add a button that allows you to set the time you want to snooze till. The button stops the alarm but doesnt set it off. Basically it just does what my stop alarm button does well heres the code. P.S. The last button (button 3) is the snooze button
[Code]...
im using vb express 2008 and have just created an application. i am also using windows xp sp2. when i build the application and it creates the .exe file i can only run the .exe successfully on my own system. when i try and send it to other xp systems, or vista it doesn't work! im guessing it needs specific files to run the .exe on other platforms. someone mentioned that there might be an option in vb express to package up the program so it can be installed and used on other pcs?
View 1 RepliesWhen I use this
[code]...
But for some reason, it doesn't place the image into the picture box.If I use this, and replace it with the first box of code, then it works fine.
[code]...
So, why doesn't it work in my class?
Private Declare Function Beep Lib "kernel32" (ByVal dwFreq As Long, ByVal dwDuration As Long) As Long I've used that API in both vb.net and vb6, but in vb.net doesnt work. Why?
View 7 RepliesWhen I press F7, nothing happens. I got the Virtual Key Codes from here.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If GetAsyncKeyState(76) Then
MsgBox("")
ElseIf GetAsyncKeyState(77) Then
[code]....
Now it updates when I press the update button and then it displays the data like it has updated the database, but when I close the program and run it. It displays the data as not updated WHY DOESN'T THE DATABASE UPDATE?Same with the Add and delete commands, I've almost finished my program but there's always a problem :...
Dim StudentID As Integer = Me.Lst.SelectedValue
Dim con As New SqlConnection("Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|StudentTeacherDB.mdf;;Integrated Security=SSPI")
[code]....
I have a Main form that lauches sometimes a secondary form with the
frmAlert.Show()
code... (FrmAlert.TopMost = True)
some seconds after, from the Main form I launch the
frmAlert.Close()
but the form don't closes itself!
[Code]...
to activate the form, but it don't closes itself, both with .Close or .Dispose or .Hide code even if it is activated by frmAlert.Select()... the FrmAlert.Visible property remains = False
I am trying to take a look at the cache of UT2004 through my application since the information holder contains some bugs sometimes and I know how to fix them.
vb.net
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim totalText As String =
[code].....
I'm trying to get the Score of Pinball:
<DllImport("kernel32.dll", SetLastError:=True)> _
Public Function ReadProcessMemory( _
ByVal hProcess As IntPtr, _
ByVal lpBaseAddress As IntPtr, _
<Out()> ByVal lpBuffer() As Byte, _
ByVal dwSize As Integer, _
[Code]...
i need to imports some namespaces but it give me error, why??namespaces are:
Imports Outlook = Microsoft.Office.Interop.Outlook Imports Excel = Microsoft.Office.Interop.Excel i put them before the public class of a form.
When I press the exit button (the red X) the process is still running in the system manager. So opening it more than once will end up meaning it will slowly start crashing the computer (if you don't restart).
View 3 RepliesSo I was making a program and I have a login/registration system and before I had it detect the drives it worked fine but now when I click the check mark it doesnt do anything.
Public Class LoginForm1
Private Sub PictureBox1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox1.Click
If My.Computer.FileSystem.DirectoryExists(My.Computer.FileSystem.Drives.First.ToString + "RAAccounts"
[code]....
It was there in VB 6. I have some images that I'm going to use a buttons, and I did this in VB 6 with the image control. however, this control doesn't appear to exist in VB.NET 2008 Express. I guess I could use a picture box, but isn't that overkill for such a simple task?
View 3 RepliesWhen i create a windows form in VB, i want to have a picture box on my form, but in design view it shows the box, but when you run the program it doesn't show it. I want it to show the box so when you run the program it will show the box and you can click on the box and you can add the photo you want on your form and then print the form or save it.
View 4 RepliesI have a form with 2 txt boxes (income and expenses)I should be able to add various entries into these fields - pressing the Add button after each entry. the values are then displayed in the appropriate labels. If expenses are greater than income - the value is outputted with red font.all of that seems to work, but the add button only allows me to add only the first initial value - no additions. Below is my code for the Add button:
vb.net
Private Sub cmdadd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdadd.Click
'Adds values to approriate fields depending on whether it is income or expense
Dim profit As Double
[code]....
I'm trying to get my head around this issue, on a few of my functions i get a warning " 'functionDealWithHiddenFields' doesn't return a value on all code paths. A null reference exception could occur at run time when the result is used."Example function:
vb.net
Function functionDealWithHiddenFields(ByVal HTML As String, ByVal numHiddenFields As Integer, ByVal X As Integer)
[code].....
I am using the DownloadDataAysnc. But the ProgressChanged event doesn't show progress until after the data has been downloaded.Even when I try and download a data which is contained in a big file. The programs remains responsive so I know it is doing something.However, it is when the progress has completed that the progressChanged event fires.I known this as the progressChanged and the DownloadDataCompleted fire immediately after each other. However, they should be a pause as the file is quite big.This is the code snippet I am currently using. And the output below
Results:
Progress changed Version userstate: [ Version1 ]
progressBar1.Value [ 100 ]
[code].....
Usually when I get an exception, the code line that creates it is marked yellow etc.. However now i only get a System.NullReferenceException as a line in the Immidiate window;
A first chance exception of type 'System.Net.Sockets.SocketException' occurred in System.dll
Is this due to some setting, or why don't I get any better indication?
This is an mock up only ... but the principal applies to a larger project i am working on...
Basically if you do this:
vb
Dim tstform1 As New Form
Dim tstform2 As New Form
tstform1.Text = "1"
[Code]....
so im running a program, that when a button is clicked, it will increment a progress bar, and loops a code i have, until the progress bar is done. The problem is i want the bar to go slower, i have it incrementing like
[Code]...
I did a test using AxShockwaveFlash1, and while I set the WMode to Transparent, and tested the form, the transparency didn't work! How am I supposed to make it transparent?
View 1 RepliesI have a Webbrowser in my application, it loads the same page after it has finished loading every few seconds really. After a while it will either freeze halfway through loading (show only top half of page) or just not reload at all and stay on loaded page.
I originally tryed the .refresh method but didn't work good, then I tryed just the simple .navigate to the same page, works better but still same problem.
If I manually refresh it with F5 it will work as normal again for a period of time.
Also if I run it outside of the IDE it can crash and give me "flash.ocx not found, it's not included with this version of windows" or something, very strange.
Main prob is webbrowser gets stuck / wont refresh even tho the code is in the DocumentCompleted event.
Im working on this one application/chatter. What it does, theres a server, and lots of clients. Client sends data to server, server process's it, and the client receives the data (unless its a command, like /process username). Heres my problem. My client has a login feature, like yahoo. Client sends username/password to server. Server goes through list of usernames. Then sends it to client, wether it matches. But my client doesn't receive the data. Can anybody fix this, with my client code provided? Let me know if you need server code, and the extra script files/vb files. [Code]
View 5 RepliesWhy doesn't this restore the last selected items in the ListView?
[Code]...