VS 2010 Add Tips To Variables In Sub?
Oct 26, 2009
Is it possible to add the tips to your code in the sub so the user know what part of the sub is for? Like if I create a sub like this:
Private Sub Stuff(ByVal Tip as String)
End Sub
When the yellow box comes up you might see something like:
Quote:
Private Sub Stuff(Byval Tip as string)
This is just some text you use in the sub, don't worry about it.
View 1 Replies
ADVERTISEMENT
Mar 3, 2012
I started learning VB about one month ago and I try to make some programs to learn a bit. Right now I'm trying to make an application that will open a website, click on the url there, wait for a set amount of time, click on a button on that page then go back to the main page and restart with another url.
[Code]...
View 2 Replies
Jun 6, 2011
I'm currently debugging a form that sets a flag when the mouse button is pressed, then clears the flag when the mouse button is released. As long as the mouse button is pressed, the user can move the mouse around and a few things happen depending on where they move. One of the things that happens is that a timer starts, or stops, and a few things change color depending on the mouse position. The timer starts when it should, then stops when it should, but once stopped, it is not re-starting when it should. I can verify that MouseMove events are getting through, because coloring changes as I move the mouse, as it should. This would be a simple thing to debug...except that it requires the darn mouse button to be down, and it uses the mouse move event. Anybody who has put a breakpoint in a mouse move event handler knows the issue: There are THOUSANDS of them. Worse yet, since the mouse button is necessary for switching to the IDE, as well as setting a breakpoint (technically, a keyboard shortcut could do this if I could shift focus), I can't wait for the problem to happen, then switch to the IDE and set a breakpoint to see what is happening then.Does anybody have any tips or techniques for debugging in mouse move events when the mouse button is down and has to stay that way? As it is, I'm going to have to write some funky code into the method just so that I have a place to get a breakpoint when I need it without breaking on every one of the mouse move events.
View 7 Replies
Apr 1, 2010
I've been programming in VB.net for a while now, and I finally got access to a mac to make ipod apps. What are some useful sites, videos, etc. that could help me get used to Objective C and the Xcode IDE? I've stumbled upon the samples on the apple dev site, but none of them really give good examples which I could learn the syntax of the language from.
View 2 Replies
May 31, 2010
With the tool tip text having disappeared from the properties box, I am having trouble getting it to appear.This is what I have written for a Radio Button (as mouse hover):
" Dim tooltip1 As New ToolTip
tooltip1.ShowAlways = True
tooltip1.AutoPopDelay = 5000
[code].....
View 5 Replies
Nov 28, 2009
I need some advice to make a small application running, i need to calculate a integer prime and i use a recursive function inside a while true loop, first i get a random number with random class and then i call the recursive function that checks if it's prime, if it's prime it exits the while. Sometimes it works others throws the stack overflow exception, what i must do to get rid off this exception?
View 4 Replies
Apr 28, 2011
I want to add Tool Tips to a the controls in a ToolStrip. I add a Tool Strips control to the form and there is no property for it, only for the generic Tool Tip which doesn't have the same features.
View 9 Replies
Apr 6, 2011
Can you guys share some techniques and methods on how you validate dates, where and how to do and stuff like that.Like If you were to set a new employee's five month contract, and having him/her account terminated on contract ending.Let's say I built a Lan-Based Management Information System and a small application that will automatically routes/scan every dates in the database every 1 mili-second using a Timer Control in VB to identify which date has been reached to dismissal phase.
View 4 Replies
Feb 12, 2009
I'm about to start a new project, its a Payroll System, I'll be using VS 2008 and my dbase is MS SQL Server 2k5.I just want have some tips for this kind of project.
View 4 Replies
Nov 28, 2009
Instead of the tool tips popping up next to the cursor, it would be more convenient for me to have them appear in a label on the status bar.
I've tried to myself, but had no luck. I also had no luck googling it. I mean, I could go about it in a shameful "ghetto rig" way by applying mouse overs to all the items and having them change the text in the label on the bar, but that's a waste of time.
View 3 Replies
Mar 13, 2009
The program should request the person's occupation, the amount of the bill, and the percentage tip as input and pass this information to a Sub procedure to display the person and the tip. Title is gratuities, first line Person's occupation, amount of the bill:, Percentage tip: Compute Tip, and show the tip. Im not sure how to approach it properly.[code]
View 2 Replies
Oct 20, 2010
JUst started to program in VB again after a long downtime (5-6 years).During this time I have been programing in ADA , Java and have therefore forgotten the "VB-way of doing things". Anyway..I'm triyng to build a web-aplication that looks like a normal questionform. [code]When the user hits "Submit" I want to add this information to a Excel-sheet(that exist in the same map as the web-page).Also I want to to program to check if that "Type" of event is already book for that date and time.I can easily do some of this in a "normal " application but is there anything special I have to think about when it's a web-app?Im also wondering how its works when you want to copy info from my application to a excel-book. How do I do that ?
View 2 Replies
Mar 18, 2012
I have a project with Control arrays that include over 200 controls.
I could use Tipster to define a Tool Tip or I could assign a Handler for the MouseHover event & use the handler to provide a help remark.
Would the Tipster approach result in the use of more memory/code than the MouseHover approach to this job?
View 1 Replies
Aug 18, 2009
I got an email I just created using Outlook automation and I need some help to get it formated nicely:set Font of the body set font-style to bold of certain words insert a picture into the body (this is not an attachment) when putting text in the body using VB.net looks like outlook automatically adds spaces for each "paragraph", how can I get rid of these spaces? how can I get my signature on because it disappears when text is added to the body [Code]
View 11 Replies
Jul 14, 2010
working with dates has always been a tricky part so let me show you how I handle dates in my application and please could you show how do you handle dates and also feel free to criticise. Normally I would create out a system to be able to save and then load a date note I am using a varchar(50) on my SQL Server db rather than datetime but I understand this is wrong, that's why I am looking for a decent way to work the dates out. My system has worked for me fine so far but if I would have to sort the dates ascending or descending I think I would get into trouble because it is saved as text.
[Code]...
View 4 Replies
Jan 29, 2011
I would like to set stringa and stringb to be equal and then clear stringa like so:
Dim stringa as String = "abc"
Dim stringb as String
stringb = stringa
[Code]....
However this code sets up a link between the 2 variables, so when I clear stringa stringb is also cleared.
View 1 Replies
Feb 13, 2012
I have already made my GUI with multiple forms using VB2010 and made buttons that would open and close them (me.hide and form#.show)My problem is how could I use a variable I've computed and displayed on a sub-total (cashier of sorts) to be used on the main form where it would display the bill on a listbox?Here's how the button works to compute for the item sub total
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cstotal As Integer
[code].....
View 10 Replies
Nov 19, 2010
What is the cleanest way to assign a value to multiple variables? For example, how can I assign FALSE to each of Label1.Visible, Label2.Visible, Label3.Visible, Label4.Visible, and Label5.Visible.Is there anything like
code
Label1, Label2, _
Label3, Label4, _
[code]....
View 1 Replies
Dec 27, 2010
Still working on that overlay. I am stumped on what I think is my last function. I have a + and a - button that needs to control a text box that has numbers in it. For instance: TextBox1 shows the number 2 in it. When I click the + button I want it to increase that number by 1. It sounds too simple when I say this out loud, but I think I am stumped with this basic function. I don't know where to begin.
View 8 Replies
Feb 7, 2012
I have the following structure:
Public Structure objKeys
Friend Shared [rsaPrivateKey] As String
Friend Shared [rsaPublicKey] As String
[Code]....
How can I check if these two variables have the same data?
View 13 Replies
Apr 5, 2011
I have been using VB a fair bit in the past developing a Access Database, recently I wanted to give my front end interface a bit more power so I have started learning VS 2010.
Anyways, I am still using Access for my databases and i am having a bit of trouble working with the data in VS 2010, what i would like is the following:
A way to form a string or integer from a SQL query (from a single field or multiple on that row) assuming the query will always return one row.
Then a way to write string or integer variables back in to db fields.
example:
Dim cn As New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|ItemRegisterDB.mdb")
Dim cmd As New OleDb.OleDbCommand With {.Connection = cn, .CommandText = "select * from tblItemregister where ItemID = 1"}
[Code]....
Example = ??? 'What would i need here to copy fields from that row to string?
View 4 Replies
Apr 26, 2011
I added queries to my dataset via the designer. Is there a way to use variables in those queries?
View 1 Replies
Apr 2, 2011
I have declared a variable for all the controls of my form (Dim result As String) and when i close the form (me.close()) and open it again, the value of the result var don't go to nothing (""). Why is that happening? Close is actually the unload of the form. Shouldn't it delete all the information of the variables?
View 2 Replies
Feb 26, 2011
I have a script where I make separate routines with identical code
Example:
sub AddToA {
ATotal += 1
}
sub AddToB {
BTotal += 1
[Code]...
View 10 Replies
Mar 30, 2011
I have a MDI application and a very complicated class there which populates its properties from a dataset derived from an external database. Each form, including child forms have to be able to access that class and use its properties thorughout the whole session.I don't know where to 'preserve' these property values within the application. I kmow many books etc. suggest not to use public variables but I really can't find a way to solve this other than to use a public variable (which is a list(of my custom class) in this case.
I have a separate class called PublicItems.vb and declared there my public variable as
Public Shared secuniverse As List(Of myCustomClass)Is there something wrong with the syntax because if I try to use the variable secuniverse in my main application class, I get the following exception:'sectoruniverse' is not declared. It may be inaccessible due to its protection level.
View 7 Replies
Mar 12, 2012
So I am currently attempting to wrap my head around create multi-threaded programs and I am currently running into an issue when using a Shared variable across multiple threads.The program is structured as follows: Public Shared IsActive as Boolean
Main Thread = GUISets the Value of IsActive through a Button ControlTwo Worker ThreadsBoth threads are while loops that read the IsActive Boolean Ex:While IsActive = True Do Work End WhileHowever when I change the value of IsActive from the Main Thread it causes the worker threads to stop (ThreadState = 16).
I have been reading that I have to synchronize/lock shared resources and have tried SyncLock and Monitor methods without success (it is entirely possible I am not using the above correctly, so If someone could provide proper examples for the above situation using the mentioned methods please share them).
View 4 Replies
Sep 19, 2011
I have created a structure with some variables that I'm trying to update during the course of a sub routine but they are not updating, when I cycle though them at the end all the variables are still set to 0.
Imports System.Data
Imports System.Collections
Structure Team
[code]....
View 4 Replies
Dec 22, 2011
I am trying to populate some fields in Word document using DocVariable:[code]The proplem that I am facing is when I open the document after running the program the fields won't be updated, so I have to go each field and highlight it then > right click > update field to get the new value!I need a way to update them or my work will be meaningless.I forgot to say that the DocVariables are inside textboxes.
View 1 Replies
Jun 16, 2011
I am working with a multi form project. The long and short of it is that when i originally load form 1 ... all bool variables are false. Once i load form 2 and perform my operations some of my bool variables will be set to true.
I need to have some sort of object to listen for those changes. What i have come up with so far is the following. Private Sub patient_frm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
[Code]...
The if statement will work but i need a way to make it keep looking for changes in the boolean variables.
View 1 Replies
Jul 7, 2011
how to share and edit variables between forms? I want the user to be able to enter a value into a textbox and the program store it and then load another form and do calculations and display answers but I can't get it to work.
View 2 Replies