12,155 Topics
Dear friends pl help me I want to select data from a data base table Tran with two selection criteria one is number and the other one is text When i use one criteria it works well But i am failed to use the two criteria my code is here …
Hey Everyone, I'm stuck... I've got a 1-dimensional array from a text file that is displaying in a list box. I have buttons to sort ascending and descending but cannot seem to get them to work. My code for the array is Dim name() As String = IO.File.ReadAllLines("Countries.txt") lstCountries.Items.AddRange(name) This …
'Hi all. I'm trying to create an application that computes the average monthly 'rainfall, number of months with above average rainfall, and the number of with 'below average rainfall, given the rainfall amounts for each month in a year. 'is what I have so far. Sub Main() Dim sngRainfall() As …
I have a 2 textbox 1 text box is empty . text2 is multine true second text box have some words. text2 text Example : "12345 is my number and 03451234567ddddsfsa somethingis wrong034512345find 03451234567" .............. i want to find 03451234567 11digit number in text box with first 3 or 4 …
Hi everyone.. Can I ask for any help, we have a project, a mini traffic light using LED lights. I dont have the idea on how we will work on this using VB6.. Help me pleeeaase ^-^
Sorry in advance if this is the wrong place for this, it's the closest I could find. I need to create a macro for an Excel 2010 spreadsheet so that the active cell will cycle through three choices: "Y", "N" or "" - the last being simply an empty string …
Private Sub Command1_Click() Select Case Me.Text1.Text Case 1 MsgBox ("U Entered 1") Case 2 MsgBox ("U entered 2") Case 3 MsgBox ("u entered 3") Case Default MsgBox ("Default") End Select End Sub When i enter 4 in textbox1, Msgbox is not displayed.....Default is a valid case or not in VB
can't show non-modal form when a modal form is displayed
I'm new to this topic..!! Please help me out.. I have learned about Visual Basic during my High school but now there is a new topic which i'm interested & that is VB.net..!! Could you please tell me that is there any difference between them or are these two languages …
I am trying to add the History page in my application which will work like as i shown below: 1st Column: (Date); 2nd column: (Login Time); 3rd Column: (Logout Time) I added the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …
I’ve been looking for the answer to this problem for around 2 hours while working on other code. It seems like my answer should be listed in the MSDN because of its simplicity but I cant find it anywhere. And my problem is thus: I have this VB6 program that …
Apart from a few small programs written for fun several years ago, it is about 15 years since I wrote any software. However, I have had some visual images in my head for many years, so I am going to write software to bring them into reality, so I can …
I have uninstalled and reinstalled Microsoft Visual about 3 times. I am unable to link or locate the folder #include. This is preventing me from utilizing Visual because it keeps giving me errors and doesn't let me execute the program. I have researched online for various solutions and have re-downloaded …
I have a Retail Management System software that write with vb6. I want to join this software with display stand 9600 N 8 1. tell me how to connect plz. what need?
hi good am, i just want to know how to make a simple anti virus using visual basic 6.0, i just want to ask the code for scan delete to detect a virus to automatic play the anti virus program thank you
I'm playing around on how to get last name in the string. Below is my current code and it is working. I want to know if there is another way to do it. strMsg = "John Doe" length = Len(strMsg) For i = 0 To length char = Right(strMsg, i …
I am trying to create an application using VBA that will create a QR Code based off of some text that has both numbers and letters. I believe that I have been succesful in encoding the proposed data using the Alphanumeric mode of 2Q. I am trying to base this …
The company I am working for is trying to rebuild a simple program that views and/or modifies tables using sql. We want this to be a web app. We already have a working desktop app built in Visual Basic 6. Now we are copying the code over to Xojo. The …
Hi every boddy Big problem here. I don't know if from access or vb.net I program in Visual Basic inside Visual Studio 2010 I have Access 2002 dbase with the first field caled ID_no : autonumber and primarykey and it is a "LONG INTEGER" I can not change because it …
I will create a special program to display the report. Here I use the Crytal Report to support it, report issued later it was also through the process of calculation, because the report is a report INCOME / turnover of my company, after I retrieve data from a database, I …
I have a code where if some buttons are selected its showing in a message box which was selected, but if no button was selected I want to show a message in the message box. Here is the code, please make me understand, I tried by my own but its …
I have a text file that I open and attempt to read the individual lines. I have used the same code before on other files with no problem, but for some reason, this particular file is strange. When I do the following command; Line Input #1, read_string the string read_string …
Hi, I'm going to send a byte to the .dll to retrieve machine information. Right now I'm using the string to pass the value to CBMReader and I able to retrieve the value. Dim Devc as String Dim CBMReader as String For i = 0 To 50 If tempDev = …
Hello, i would like to allow the user to press Retry button from msgbox only 3 times. I just don't succedd to do it, here is my code if anybody can help me? Private Sub cmdValid_Click() Dim Response As Integer If txtPassword.Text = txtPassword.Tag Then MsgBox "You've passed security!", vbOKOnly …
I was given a task that I need to print in a letter size paper the letter of promissory for a school, but first there is a form that will ask the user the information needed to be filled in the letter of promissory. After the user filled the textbox …
hi, my professor ask us to create a program that has auto logout feature after 2mins or set my own time to logout, after the user logged in to the machine, if ever he or she left it without pressing the logout after 2 mins of being idle or standby …
perhaps there is some sort of logic error i am missing here but i cannot figure out whats going wrong. I wrote this simple for loop to write the contents of a ComboBox to a txt file. The process works but for some reason it is doing the job twice. …
Friends please help me in FORMATTING DATE I have a Form with three text boxes 1.txtNo- Data type-Number 2.txtName-Data type-Text 3.txtDob-Data type -Date format dd/MM/yyyy two buttons one for adding and the other for viewing Using visual data manager I have created a database-Members with table-List having the following Fields …
I want to try this: I want that the look of my textbox must be like the coding in the visual Basic. I mean When we type the code in the vb then we get the look like: "if", "else", "end if" is in colourful and all other... In Short …
how i can return multiple row in sql data base in one row using crystal report?? , for Example 1 DWG1 1 30-5-2013 1 DWG1 2 16-9-2013 in Crystal Report i need to show 1 DWG1 20-11-2013 30-5-2013 16-9-2013 Any Idea Please ??
can you help me to my fingerprint scanner .. do you have idea how will work to vb6 .. i am doing a time attendance.. its better if its a simple program.
Friends, Please help me I have a form having 3 text boxes of data type number one text box for display- also number type one command button I want to add the figures of the three text boxes my code is as below Private Sub Command1_Click() Dim Total As Long …
hi, how to get the time difference in vb6 exp; dt1 = now() ' dt1=08/Aug/07 12:57 PM dt2=some date n time now i want to find the difference between these two in terms of time... can u plz tell me how to do that
Hi, I am having problems with TCPIP coding on VB6. I have a timer which checks for connection. This timer is set to a minute.Everytime the timer code executes the entire application freezes. It performs normally after the connection checking loop. One last thing to mention is I am connected …
Hello, I need to have communications and data sharing between applications in VB6 running on the same PC with XP sp3. But I have not experience with IPC solutions, so what is more efficient ( and simple) solution? Thanks
For our project where using a Touch Screen as pointer, and when the user tapped the screen the timer or progress bar will reset to 0 then if the screen didn't tapped in 2 minutes the program will back to login form. Please help.
hi.. i'm using visual basic 2008. and ms access 2007. i inserted check boxes in table to get many records at a time. i.e all checked records will be collected. i have two problems. can you please give me solutions.. 1. how to write a query to meet 'check box …
I have been reading about exec() and passthru() and system() and different ways to use these, but so far not one of them is working. The Closest I have gotten is to get a request from CMD printed up on the page and so I researched how to pass a …
Hi everyone, please help me, i don't know how to insert a datepicker in VB4. I am trying to find something in the web, but there is no documentation about it. I will apreciate a lot the help. Thanks in advanced.
i have three buttons and i want to disable a button until the first is pressed. Can anyone give me a clue, i guess is with if statements, but i don't know to do it.
Hi all. I'm designing a Visual Basic 2010 forms app. I would like to create a login for this app so that unauthorized users cant use the app. Only people with a username and password can use it. I would like this login to act as a demo too. Explanation …
Hello friends I use excel 2003 and my friends in my workplace uses excel 2007. Recently I insert a module to use function for conversion of numbers to text. I enable macros and keep security level low and make changes in trusted publishers to allow Visual basic projects.The module works …
MSDN recommends disposing any variable of type System.Drawing.Brush before its last reference is released. Otherwise, the resources it is using will not be freed until the garbage collector calls the Brush object's Finalize method. As we know, local variables are destroyed automatically when the control flow goes out of the …
I create new Vb 6 project and I want to connect to my server database how ? **I wrote in general Declarations** Dim conn As ADODB.Connection Dim rs As ADODB.Recordset Dim username As String Dim passwd As String Dim serverIP As String Dim db As String Dim ssql As String …
I have been using Visual basic 6.0 for one year. 1-I want to know that what is difference between visual studio and vb 6.0? 2- What is difference between vb 6.0 and vb.net? 3- Now i want to use vb.net. So tell me how can i install vb.net? and from …
I just want to create an application where the user click on the "check for Update" button, My application start to check update. Uptill this I hav done so. I use this Code for this: Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("pastebin link") Dim response As System.Net.HttpWebResponse = request.GetResponse() Dim sr …
my project is want to slide horizontal and vertical a picture using kinect in VB 2013, the problem is, i don't know how to define the I/O, here i got some coding from kinect skeleton tracking. i hope that some one can teach me what to do with the code …
I designed a software in visual basic 6.0 and it runs perfectly on my system that has windows Xp operating system but after i deployed and packaged it and tried to install on another system using windows 7 or Vista, its installs but when you click on some of the …
I already build a program-Client and a program-server with vb6. Program-server is on a remote PC. Client and server are connected to internet, and comunicate with socket when they are running. But now I need to add, if it is possible, that program-client verify if program-server is already running before …
1) <s>Hai Dani</s> 2) <s>HAI DANI</s> 3) <s>hai dani</s> This code gives correct output for only first sentence Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find.Replacement .Font.SmallCaps = True End With With Selection.Find .Text = "\<s\>(*)\</s\>" .Replacement.Text = "\1" .Forward = True .Wrap = wdFindContinue .Format = True .MatchCase = False .MatchWholeWord = False …
The End.