Post your Vb 6.0 Questions Here

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 08, 2009, 03:50 AM
423497 members and 291072 Topics
Latest Member: o.b
Nairaland [Nigerian Forum] Home Help Search Who is currently online? Login Register
Nairaland Forum  |  Technology  |  Programming  |  Post your Vb 6.0 Questions Here
Pages: (1) (2) (3) (4) (5) (6) (7) (8) ... (12) Go Down Send this topic Notify of replies
Author Topic: Post your Vb 6.0 Questions Here  (Read 12832 views)
luckyCO
Re: Post your Vb 6.0 Questions Here
« #32 on: July 18, 2007, 08:21 PM »

Dynast your question maybe a very long program but I will try give you some crew that you would need to write the program. Dont expect anybody to spoon feed you, all u need to do google them out with our support u will make it.

Things requested.

To create a new account by Administrator which he wil be able to edit and even delete

To login with that ID to call mainform

New users should be allowed to create their own account and use it to loggin

Say am interested in UserID and password and class.


Create Three string fields namely UserID,Password and class.

To create new User

If using Access, "Select UserID='" & txtID.text & "'"
Pass that as you SQL statement, them to check whether if it exist

If rs.recordcount>0 then Msgbox("The user name is existing plz choose another name": exit sub

rs.addnew
rs!userID=txt.id
rs!password=password.text
rs!class="User"
rs.update
rs.close

To create System administrator

rs.addnew
rs!userID=txt.id
rs!password=password.text
rs!class="Admin"
rs.update
rs.close


To authenticate User and loggin

Pass this as your SQL statement,

Select * from tablename where UserID='" & txtid.text & "' and Password='" & password.text & "'"

if rs.recordcount>0 then
If trim(rs!class) ="Admin" then
mainform.show
' Enable all the tools that will enable one manage the software.
else
mainform.show
'Disable all the tools that will enable one manage the software.
end if

else
Msgbox "User Id and password not exisitng",vbinformation,"Access denied"
end if


The above procedure will take place in command button's click event.

Plz if the above information is not clear you can contact me with you have in mind I will write the whole program give you then you can use it for what u want to.

But you have to pay for my biz time.

Take care.

uchokoro (m)
Re: Post your Vb 6.0 Questions Here
« #33 on: July 20, 2007, 07:29 PM »

pls i need to write a VB application to read data from a parallel port and also to write data to one. apart from using dlls how can i do this. is their any option native to VB 6.0? pls i need the info urgently for my project work. i can be contacted on uchokoro@yahoo.com or 08037944535
uchokoro (m)
Re: Post your Vb 6.0 Questions Here
« #34 on: July 20, 2007, 07:36 PM »

what i really want to know is if there is any VB 6.0 Custom control for communicating via the parallel port
IG
Re: Post your Vb 6.0 Questions Here
« #35 on: July 21, 2007, 08:13 PM »

Quote from: uchokoro on July 20, 2007, 07:36 PM
what i really want to know is if there is any VB 6.0 Custom control for communicating via the parallel port

I think somebody answered a similar question earlier in this thread. He made refference to microsoft communication control.
You can find it in the project->components
Dynast (m)
Re: Post your Vb 6.0 Questions Here
« #36 on: July 26, 2007, 12:16 PM »

Still need help to make the following codes written by LuckyCO to  run for me any one can assist pls :
I need comments as well

This is a program to animate a splash screen

Option Explicit
Public ControlTblname As String
Private Declare Function CreateEllipticRgn Lib "gdi32" _
   (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, _
    ByVal Y2 As Long) As Long
   
    Private Declare Function SetWindowRgn Lib "User32" _
  (ByVal hwnd As Long, ByVal hRgn As Long, _
   ByVal bRedraw As Boolean) As Long
   

Private Declare Function CreateRectRgn Lib "gdi32" (ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long

Public Sub Bubble(frm As Form)

Dim iret
   Dim a As Integer
   Dim b As Integer
   Dim C As Integer
   Dim D As Integer
   Dim e As Integer
   Dim f As Integer
   Dim w As Integer
   Dim X As Integer
   Dim Y As Integer
   Dim z As Integer
   Dim current As Double
Dim pp As Integer
   'frm.Move(0, 0) = 0
   w = frm.Height: X = frm.Width: Y = frm.Top: z = frm.Left
   a = 0: b = 0: C = w: D = X: e = Y: f = z: pp = 0
   Do While a < frm.Height / 17 Or b < frm.Width / 17
      a = a + 25
      b = b + 25
      e = e + 70
      f = f + 70
      If a > frm.Height / 15 Then a = a - 24
      If b > frm.Width / 15 Then b = b - 24
      Call frm.Move(f, e, D, C)
       
      current = Timer
            Do While Timer - current < 0.01
         DoEvents
         
      Loop
     
     iret = SetWindowRgn(frm.hwnd, CreateEllipticRgn(0, 0, b, a), True)
  If pp = 0 Then frm.Show: pp = 1
    Loop
   current = Timer
   Do While Timer - current < 1
      DoEvents
   Loop

   'This will make the bubble "pop" and minimize the form.
   'Comment out if you want it to remain displayed

'iret = SetWindowRgn(frm.Hwnd, CreateEllipticRgn(0, 0, 0, 0), _
   True)
iret = SetWindowRgn(frm.hwnd, CreateRectRgn(0, 0, 1000, 1000), True)


End Sub
Dynast (m)
Re: Post your Vb 6.0 Questions Here
« #37 on: July 26, 2007, 12:48 PM »

@ LuckyCO Thanks  very kindly

The above is enough guide

I am just leaning Vb on my own but I know that guides from experienced or better programmers like you I will go places

Merci beaucoup mon ami

I will give you a call
luckyCO
Re: Post your Vb 6.0 Questions Here
« #38 on: July 26, 2007, 05:26 PM »

Thank God
Dynast (m)
Re: Post your Vb 6.0 Questions Here
« #39 on: July 27, 2007, 05:08 PM »

Still need help on the above program to animate splash screen
adewaleafolabi (m)
Re: Post your Vb 6.0 Questions Here
« #40 on: July 28, 2007, 07:51 PM »

hmm i haven't programmed in vb or any language for a while now and i can't even remember how to pass variables collected from a form to another.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #41 on: July 30, 2007, 10:56 AM »

In form2 where you want to send the variable type this under delaration

Public VarInForm2 As String

Then in form1 type

Private Sub Command1_Click()
' This is a command button
form2.VarInForm2="The value you want to send to form 2"
form2.Show
End Sub

I hope it solves your problem. Let me know if it doesnt

neeyee (m)
Re: Post your Vb 6.0 Questions Here
« #42 on: July 30, 2007, 11:13 AM »

thank you so much "LuckyCo" for responding to my questions. I like you and I will let you know as soon as I am through with the program.

Once again, thanks.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #43 on: July 30, 2007, 04:55 PM »

Quote from: Dynast on July 27, 2007, 05:08 PM
Still need help on the above program to animate splash screen

Dynast what type of help do you need where you have every code. You should start thinking about been independent with materials you have. You have the code and u are looking for help again. Anybody can learn programming, it is all about syntax and sequence.

What I suggest you do is to comment each like of code and see what it does. Cut some line of code and paste them in another form and run it and see again. Change style of the form and test till you know what the entire code are all for.

I hope this solves your question. If i didnt let me know.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #44 on: August 02, 2007, 12:33 PM »

I hope we have no question on vb6.0?
uchokoro (m)
Re: Post your Vb 6.0 Questions Here
« #45 on: August 09, 2007, 02:12 PM »

IG    
   Re: Post your Vb 6.0 Questions Here
« #35 on: July 21, 2007, 08:13 PM »
Quote from: uchokoro on July 20, 2007, 07:36 PM
what i really want to know is if there is any VB 6.0 Custom control for communicating via the parallel port


I think somebody answered a similar question earlier in this thread. He made refference to microsoft communication control.
You can find it in the project->components

IG,
The control the person mentioned was for serial port communication. pls i need to know if it can also be used for a parallel port or if there is another control for the parallel port. from all the in formation i have so far, vb does not have the inherent ability to communicate via parallel port except using dll's.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #46 on: August 22, 2007, 12:25 PM »

Yes VB 6.0 may  not have some hardware powers except you have somebody who can desing in in C++, C# or vb.net then you comsume it in VB 6.0.

VB 6.0 is made for rapid development and simplicity not for hardcode programming. If u look for it u dont see that I advise you go for higher language like .net.

I ve not written any such a program, what I do is to comsume the ones already written in C++ or C language.

So prepare to leave Vb 6.0 to vb.net or supposedly C# if it cant solve your problems.

Take care.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #47 on: August 22, 2007, 12:26 PM »

In case if you have any other questions plz do feel free to ask.
uchokoro (m)
Re: Post your Vb 6.0 Questions Here
« #48 on: August 29, 2007, 03:34 PM »

pLS,
How can i get ebooks on v b.net?
luckyCO
Re: Post your Vb 6.0 Questions Here
« #49 on: September 03, 2007, 05:35 PM »

ogbon
Re: Post your Vb 6.0 Questions Here
« #50 on: September 10, 2007, 03:34 PM »

hello
how do i link ms excel with vb6.0, as in if i dont need to create a new excel doc
thanks
Smart K. (m)
Re: Post your Vb 6.0 Questions Here
« #51 on: September 10, 2007, 04:51 PM »

 :oHi guys,

while i really commend the guys that have been responding on topics presented here i'll appreciate if we can be more truthful and exact. My advise to new beginners on VB6 is : Pack your bags and leave VB6 and dont come back, its outdated. Start with .NET please.

But in case you dont want to take the advice above, google most of your questions and bring only ones that u could not find in google ( Grin Grin Grin).

I did VB6 and I ave offered what I consider as sincere advice. In case u are in doubt, try my app on (http://www.byaxiom.com/staffmanager.htm) I developed it fully with VB6.0

Good luck.
Dynast (m)
CODES TO FILTER RECORDS
« #52 on: September 14, 2007, 03:35 PM »

Need help on codes to effect the followings:
--------VB6.0 Codes that will be able to filter records from a database  based on more than 5 criteria
--------Codes that will be able to  randomise the filtered record that meet the reqiured criteria and bring out a single record as if a toss for possible outcome.
---------Several reshuffling can be made and a single record which will never be repeated at any other tosses will emerge


hoping to getting quick assistance
squeezy (m)
Re: Post your Vb 6.0 Questions Here
« #53 on: September 18, 2007, 11:03 AM »

hey,
can u help me out , i created a software in vb 6.0 but need to convert it to .net to be able to put it on the net, but dont know how to go about this, could you pls help out wit solution to my problem, maybe a converter or something, urgent help
thanx a lot
luckyCO
Re: Post your Vb 6.0 Questions Here
« #54 on: September 18, 2007, 08:03 PM »

Quote from: ogbon on September 10, 2007, 03:34 PM
hello
how do i link ms excel with vb6.0, as in if i don't need to create a new excel doc
thanks

I will copy both creating new one and geting loading the existing excel file into MShflexgrid. I don't have the code now. But if you are in a hurry, type in your MSDN CreateObject and on it press F1, you will see how it goes.

Thanks



Quote from: Smart K. on September 10, 2007, 04:51 PM
:oHi guys,

while i really commend the guys that have been responding on topics presented here i'll appreciate if we can be more truthful and exact. My advise to new beginners on VB6 is : Pack your bags and leave VB6 and don't come back, its outdated. Start with .NET please.

But in case you don't want to take the advice above, google most of your questions and bring only ones that u could not find in google ( Grin Grin Grin).

I did VB6 and I ave offered what I consider as sincere advice. In case u are in doubt, try my app on (http://www.byaxiom.com/staffmanager.htm) I developed it fully with VB6.0

Good luck.

Smart you have a very good confession. I really appreciate your advice  because you are telling your sincere truth. But at the same you consider many things. Microsoft considered millions of Vb6.0 users and created vb.net not totally diffrent.
On your posting what I want you to do is, List out all these VB6.0 arkward things and profer solutions to them in VB.net, C#,C++ or Java.

Am using VB6.0,VB.Net,C# and Java(Intermeidate) and I still ve reason for using Vb6.0 why because of its simple and available file structures and again its portability across any  computer (Speed and Storage capacity)  during development. If am developing  small packages I use vb6.0 but on a complex application and web I use .net.

Consider yourself spending 3.5GB or more of .Net development environment to 450MB or less of Vb6.0. 
So like I said  list those errors and offer solutions to them, the likes of me who likes vb6.0 to a fault will continue to use it even if MS put a saction to it.

Quote from: Dynast on September 14, 2007, 03:35 PM
Need help on codes to effect the followings:
--------VB6.0 Codes that will be able to filter records from a database based on more than 5 criteria
--------Codes that will be able to randomise the filtered record that meet the reqiured criteria and bring out a single record as if a toss for possible outcome.
---------Several reshuffling can be made and a single record which will never be repeated at any other tosses will emerge


hoping to getting quick assistance

Please tell us briefly what you are  building that required this program, them I wil make suggestions and finally offer solutions. It may that you don't need database to that.
Quote from: squeezy on September 18, 2007, 11:03 AM
hey,
can u help me out , i created a software in vb 6.0 but need to convert it to .net to be able to put it on the net, but don't know how to go about this, could you please help out wit solution to my problem, maybe a converter or something, urgent help
thanx a lot


To put on the  Net your vb6.0 codes you need to convert it manually and change your concept about vb6.0 programming thing. In this case you use Asp.Net on vb.net coding style. Even the conveter provided by MS to convert vb6.0 to vb.net dosnt work well, so you need to manually convert it. Stop waiting for wizard that will do it for you, start now the ealier the beter. Make search on asp.net books ans start reading them. Use www.4shared.com to look 4 books

thanks
Dynast (m)
Re: Post your Vb 6.0 Questions Here
« #55 on: September 19, 2007, 05:30 PM »

I nave a database of applicants, I want my software to filter and bring out qualified individuals based on the scores of at least 3 criteria I have specified. After the filtering, I would want to click on a control say command button to randomise those records that meet the criteria and then bring out one person only. If I click againg it should be able to pick another person on the qualified list at randon. It should pick only one person at a time and any body picked once should leave the list so that he will not be picked again or may still remain there but will not be picked more than once
lola 004
Re: Post your Vb 6.0 Questions Here
« #56 on: September 20, 2007, 07:54 PM »

CAN ANY ONE HELP ME WITH THE USES OF DATA WINDOW IN VB6?
AND ALSO HOW TO CONNECT TO DATA  BASE (ACCESS) WITH OUT USING ADO FORMAT
lewisebint
Re: Post your Vb 6.0 Questions Here
« #57 on: September 23, 2007, 12:41 PM »

Quote from: lola 004 on September 20, 2007, 07:54 PM
CAN ANY ONE HELP ME WITH THE USES OF DATA WINDOW IN VB6?
AND ALSO HOW TO CONNECT TO DATA BASE (ACCESS) WITH OUT USING ADO FORMAT

Data windows is used to create MS Access 97 abd below only. We have beter way of creating and connecting to database instead of data windows. Data window I mean the one under Addin Menu. Instead of using that to create, use MS Access to create if it is a must u want to use Access.

How to connect using Ado.

Dim db as new ADOD.Connection
Dim rs as new ADOD.Recordset

db.connectionstring=""
set rs=db.execute("Select * from tblname")

' then do your manipulation
Quote from: Dynast on September 19, 2007, 05:30 PM
I nave a database of applicants, I want my software to filter and bring out qualified individuals based on the scores of at least 3 criteria I have specified. After the filtering, I would want to click on a control say command button to randomise those records that meet the criteria and then bring out one person only. If I click againg it should be able to pick another person on the qualified list at randon. It should pick only one person at a time and any body picked once should leave the list so that he will not be picked again or may still remain there but will not be picked more than once

Make connecttion to database which I know you know how to make do.
you SQL statement would be "Select fname from tblname where fname=''"

Create two arrays of equall size

Store all the values in one array

say
k=0
Do while not rs.eof
a(k)=rs.field(0).value
k=k+1
rs.movenext
loop
rs.close

Private Sub Comman1_Click
dim L as integer
L=int(rnd*K)
msgbox a(L)

'Remove value in A(L) and put in B(L) such dat you dont see it again

End sub

I hope this algorithm will help you out.
If it dosnt.
I will write the reall program for you. But it is going to be good u do it urself.
Smart K. (m)
Re: Post your Vb 6.0 Questions Here
« #58 on: September 25, 2007, 03:42 PM »

luckyCO
Sorry, I have been away 4 long,

Quote
Consider yourself spending 3.5GB or more of .Net development environment to 450MB or less of Vb6.0.
That argument would have been too good some years back. Consider these:
i. i just bought 120G HD (laptop) for N14,000 last week, so, how much is 3.5GB
ii. .NET framework (all that is needed to run .NET app) does not require up 3.5GB (just 200MB is enough).
iii. Its good for some of us who invested on VB long time ago to continue. But if you are just starting up, how relevant will it be in the next 3 years (when you are supposed to start enjoying the dividend of knowledge)
iv. How many employers now look for VB6.0 programmer/ developer.
v. ,

Yours trully,
Smart K.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #59 on: September 26, 2007, 04:16 PM »

Am talking about development environment not deployment stage. What u said no doubt is true. I use vb.net,c# as well but just cant leave vb6.0. They have come up with service park6. They may soon make it have functionality like gupta and dynamically a full OPP that is what left.

But the language is ok. Facing out vb is over statment. Do u know we have open source vb? All these about language are personal feelings and interest. Automation and competition has made every language trying to look alike.
wimpy_A
can i get sonme help pls
« #60 on: September 28, 2007, 10:05 AM »

hi my name is frankcould you pls do me a favor i write program  in v.b6.0 but i am having problems  in  the data base section.i know how to connecta data base to  vb6.0 using adodb.but i would be really greatfull if you can send me or help me out with the  codes using  adodb and ms acess  to      delete records,add records and laso edit the records  i would be really great full thnaks.just incase  my number is +2348076226978 and also my email is oforeh2000@yahoo.com

also pls can i get the e.book for the tutorials of vb.net  thans a lot i appreaciate
wimpy_A
Re: Post your Vb 6.0 Questions Here
« #61 on: September 28, 2007, 10:09 AM »

pls  can you post  me a place i can easily get  vb.net tutorials here or pls show me sites i can get that pls thanks
luckyCO
Re: Post your Vb 6.0 Questions Here
« #62 on: October 02, 2007, 12:55 PM »

Quote from: wimpy_A on September 28, 2007, 10:05 AM
hi my name is frankcould you please do me a favor i write program in v.b6.0 but i am having problems in the data base section.i know how to connecta data base to vb6.0 using adodb.but i would be really greatfull if you can send me or help me out with the codes using adodb and ms acess to delete records,add records and laso edit the records i would be really great full thnaks.just incase my number is +2348076226978 and also my email is oforeh2000@yahoo.com

also please can i get the e.book for the tutorials of vb.net thans a lot i appreaciate
Using AdoDB after setting connection string do the following;

For Inserting Record;

rs.Addnew
rs.Fields!Name="Frank"
rs.Fields!age=23
rs.update
rs.close

To Update
rs.update "Name","frankline"
rs.update "age",23
rs.close

To Delete
rs.delete

Believing that all connections and query are made and u are using rs as your recordset.

Take care

Use www.4shared.com or www.freebooks.com and others to look for vb.net .




luckyCO
Re: Post your Vb 6.0 Questions Here
« #63 on: October 08, 2007, 12:31 PM »

wimpy_A  I hope that solves your problem?
 Oracle DBA Corner  Tutorials On Game Programming  Java Programming For Dummies  Page 2
Pages: (1) (2) (3) (4) (5) (6) (7) (8) ... (12) Go Up Send Topic to Friend by E-mail Reply 


Sections: Autos/Cars (2) Jobs/Vacancies (2) (3) Career Talk Education General(2) Politics Romance Computers Phones Travel
Sports Fashion Health Religion Celebrities TV/Movies (2) Music/Radio (2) Books Webmasters Programming

Links: Page1 Page2 Page3 Page4 Page5 Page6 Page7 Page8 Page9 Page10

Nairaland is owned by Oluwaseun Osewa. See also: Nairalist Classified Ads
Nairaland Forum | Powered by SMF 1.0.12.
© 2001-2005, Lewis Media. All Rights Reserved.