how to show student name in another form
hello everyone i got a little problem i have a form with all students and now i build another form for the students to take a course now when i add the details of the new student in the course form i...
View ArticleCan't figure out the logic to avoid a crash
A function performs a loop that simulates some animation on a picturebox and goes on for about 15 seconds. The associated code uses an instance of a class. If I click on a "Exit button" while the...
View ArticleRestart Program
Hi, I've made a game using visual basic 6. When the last form is displayed the user will be given two options - to play the game again or to leave the game. Is there one piece of code which will reset...
View Articlemy openpar not working
Hi Ev1~ i need to do this ( )for my calculation ..somehow when i want to make a coding for the openpar & closepar it highlight at AddTextAndFocus ""...it tell variable not define Code: Private Sub...
View Articlemaybe a stupid question at this point of my programming life!.
I have an no modal form. I calls it from the main form in a button's code with: formname.show 0 then in the form placed a Cancel button with private sub Button_Click unload me end sub there is no...
View Article[RESOLVED] how do I create a command Line app and GUI based app?
So I found a couple of places that shows how to convert your application to a command line application. It works fine when you are in cmd... but how can I make both a cmd line app as well as a gui...
View Article[RESOLVED] maybe a stupid question at this point of my programming life!.
I have an no modal form. I calls it from the main form in a button's code with: formname.show 0 then in the form placed a Cancel button with private sub Button_Click unload me end sub there is no...
View ArticleIs There Any Control That Can Center Text in Box?
I am wondering if there is a special control to allow centering text without having to use vbCrLf?
View Article[RESOLVED] Shell Instruction and Paths
I have a problem In one application executable I have a SHELL instruction that does something like this shell "unzip -quo "+chr$(34)+relativepath\zipfilename+chr$(34)+ -d...
View ArticleHide Colors in a Picturebox - Please assist
I have an xray image in a picturebox - see attachment. I need to display either Green Only/Orange only or Blue and Black. I have tried to use getpixel() to determine the color of each pixel. I cannot...
View ArticleProgrammatically set dimensions of MSFlexGrid based on columns/rows
I've found a few answers to this on the net but nothing is very accurate. Some leave scrollbars and others leave gray background area. I'm using VB6 and an MSFLexGrid control. This is the basic code...
View ArticleError 3704, VB / ADO acces 2003
ADO I opened project then, properties on connection, i connected datebase then when i started form and click on any of button there is error. http://www.zaslike.com/files/e29y5ql6xkyyhbmoa4.png Debug:...
View Articlequestion: retrieve image to picturebox
Is there a way to retrieve image from database(mysql) and show it directly to picturebox. this means without saving the image to file and loadpicture to picturebox. my current approach is saving the...
View ArticleProblems with IF statement in Reflections for UNIX
Hi All I am trying to write a VBA macro for use in Reflections for UNIX. Here is the code: Code: Dim COO As String COO = InputBox("Origin that is duty free") Dim COM As String Dim...
View ArticleMake line longer
I've drawn a line from x1,y1 to x2,y2 and i want to make it a longer in the same direction (x2,y2). It's there a solution for this ? Thank you
View Article[RESOLVED] Random Number
Hi, Could anyone advise me on the code for generating a random number between 1 and 100. I'm looking for something on the lines of; random number = Int(Rnd * 100) + 1 The code above works, but always...
View Articlemsflexgid subtract or add quantity column from database if transaction was...
hi!can anyone please help me how to code the addition of msflexgrid quantity value if transaction was cancelled..my system was called point of sale system...
View ArticleAttach SQL Database
Hi I have SQL Database (.mdf) files . Is it possible to attach it to SQL using Visual Basic as front-end , or we can do it only through SQL Management Studio Thanks
View Articlestring diff algorithm ?
Hello, does anyone of you know VB6/VBA code that can compare 2 strings and visualize the changes? The result should be a HTML or RTF string, in which changed / added / removed characters or words are...
View Articlecheck if workstation is being used
Hello is there a way or API to check if the workstation is in use? meaning if the user moves the mouse, type on the keyboard, etc. to know for sure that the user is still using the workstation?
View Article