I am new to visual basic and have only made some basic things in it. I am trying to create an application that will insert a DWORD into the windows registry. But when I follow microsoft's instructions. I creates a normal registry key. Here is some example code
Public Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Integer, ByVal lpValueName As String, ByVal Reserved As Integer, ByVal dwType As Integer, ByVal lpData As String, ByVal cbData As Integer) As Integer Public Declare Function RegCreateKeyEx Lib "advapi32.dll" Alias "RegCreateKeyExA" (ByVal hKey As Integer, ByVal lpSubKey As String, ByVal Reserved As Integer, ByVal lpClass As String, ByVal dwOptions As Integer, ByVal samDesired As Integer, ByVal
[code]....
But when I execute it it doesn't correctly change the value of the DWORD from 0 to 1, it creates an invalid value.
I'm trying to make an app using visual studio 2010, I have this excel formula that will calculate a 6 Digit code from a 11 digit serial number.The excel is pretty old and it consts of math operations such as RIGHT, LEFT, MID and POWER I managed to "translate" that to Microsoft.VisualBasic.Right, Microsoft.VisualBasic.Left, Microsoft.VisualBasic.Mid and Math.Pow but i'm not sure if i did it right, since is not giving me the result i'm looking for, instead of a 6 digit number is giving me something like this: 9.9E+52
I am having problem with compiling the DLL. Here is the scenario: Let's say I have created a DLL and App1 is using it. the application will monitor a folder for several hours. The dll and the app1.exe is copied to C:foder1 directory. The application is running without any problem. Let's say I need to make changes to that DLL. If I open the DLL project in my Visual studio and compile it, it says that the file is currently used. DLL project is stored in different path. let's say in D: drive. Why it says the dll is used? The app1 should use the DLL in C:folder1.
I have searched and searched and searched. Nothing is working. Well it kind of works...I have a rtb which reads from a bunch (like 4.6k) xml files. Depending on the value of a few tags it displays a certain character. I want those characters to be color coded.
[CODE| If File.Exists(xmlFile) = True Then Reader = Xml.XmlReader.Create(xmlFile)
How to make this calculator:2 Texboxes In first textbox is writeble (where user will write the version) The second textbox is notwriteble ( there will show the result)In the first textbox to make calculation of version.If user writes for example: 1.03.11 In textbox2 to display the calculation: 22656 If the user writes for example other version:1.05.50 In textbox2 to display the calculation:22895and the same way if user writes 1.03.24 or other numbers auto to calculate the versions, and if user writes a bad text in tetbox2 to display error: For example In textbox1 user writes text: omg In textbox2 shows : Error Only if user writes number like this: 1.03.11 or other number will calculate it else to shows error
when I open my project in VS 2010 (File - Open Project - *.vbproj) my project loads just fine. I can run it just fine. But, when I change something -anything at all- and run the project, nothing is changed. I can even save, close and reopen the project with the new changes, but it still runs the old version.
For example: I open the project, with Form1 that has 3 buttons. I run the program and I get Form1 with 3 buttons. I stop running, add button 4 and hit play... I get Form1 with 3 buttons.I save the project, close it and open it again. My Form1 design shows 4 buttons. But when I start it, there are only 3 buttons...It must be something inside the project, cause this happens on 3 different PC's where I have VS 2010 installed.
Now, when I open my project in VS 2010 (File - Open Project - *.vbproj) my project loads just fine. I can run it just fine. But, when I change something -anything at all- and run the project, nothing is changed. I can even save, close and reopen the project with the new changes, but it still runs the old version.For example: I open the project, with Form1 that has 3 buttons. I run the program and I get Form1 with 3 buttons. I stop running, add button 4 and hit play... I get Form1 with 3 buttons. I save the project, close it and open it again. My Form1 design shows 4 buttons. But when I start it, there are only 3 buttons..It must be something inside the project, cause this happens on 3 different PC's where I have VS 2010 installed. But I can't figure out what it is. Is there some mysterious hidden backup somewhere??
First, I am wondering how to make it so that when i click a button it adds 2 text boxes and a label and can keep doing it until it hits a certain number and makes the form bigger?
how to make a server, and let my program connect to that server. My program is on books, people can go through the list of books and "favourite them". Then in a window I open I can see the most favourite overall etc. How would I do this, what type of server (srry im not pro on servers at all).
I have project to do it.Project name RCON.I created form, where is showing RCON of status (offline/online logged), log, etc.How do i make it RCON work with that program?I have rcon.exe and with that running must be:notepad.exe > saving as startrcon.bat.[code]
I'm looking on how to make something like a NewsTicker.Imagine that I have the text "The sky is blue and today will not rain."And I want it to marquee something like:Well, let me explain, I want to always be showing something on the label, and when it ends, before ending it starts the beggining again..
since i started to vb i made several exe files and when i tried to show them to my friends or someone else but every single time i got the "Virus!" label stuck to my program.. i mean antivirus programs ran alarms and screamed "Are you nuts ?! Its a VIRUS!!" and i dont want that happen... how can i prevent this to happen??
Im preparing a program for my teacher friends using vb 2010 express. They keep records about their students. I prepared a database that contains a table named "Mystudents". It has columns like "studentId , Name, Surname, etc.." . My problem starts here. Each student attends lots of lessons during a year. I must keep "which lessons they attended", "when they attended", "which topic done in the lessons" for each students. for example
Id: 104 Name : Jason Surname : Black Class : 10A
[Code]....
i mean i have a list of data for each record of databese.
I'm trying to make an app using visual studio 2010?I have this excel formula that will calculate a 6 Digit code from a 11 digit serial number.The excel is pretty old and it consts of math operations such as RIGHT, LEFT, MID and POWER I managed to "translate" that to Microsoft.VisualBasic.Right, Microsoft.VisualBasic.Left, Microsoft.VisualBasic.Mid and Math.Pow but i'm not sure if i did it right, since is not giving me the result i'm looking for, instead of a 6 digit number is giving me something like this: 9.9E+52?
i am currently trying to make an invaders-like game with visual basic 2010.I've managed to make one alien (picturebox16) dissapear when the coordinates of the arrow (picturebox1) kinda matches the coordinates of the 16th alien, however, the second alien(above it) doesnt dissapear(picturebox4)?
I'm trying to make a borderless form. I chose a dark red color as a backcolor and as a transparency key. I made my own dragable title bar, my own close, minimize, maximize and restore buttons and all that stuff. BUT, in order to imitate the Microsoft Windows' style perfectly, I tried to copy that outer glow that Microsoft has:I had to add an outer glow to my form in Photoshop and save it as .PNG. Here's what happened:The dark red became darker under the influence of my outer glow, and it was not considered a dark red anymore. How can I get rid of that?