Post your Vb 6.0 Questions Here

Welcome. Please Login, Register, Or Activate! 
type your username and password to login
Date: November 22, 2009, 12:12 AM
430622 members and 297778 Topics
Latest Member: seomov
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) (9) (10) (11) (12) (13) Go Down Send this topic Notify of replies
Author Topic: Post your Vb 6.0 Questions Here  (Read 13157 views)
luckyCO
Re: Post your Vb 6.0 Questions Here
« #224 on: March 02, 2009, 11:20 AM »

Quote from: kossy on February 28, 2009, 03:00 PM
Pls i need to know if i can use vb6.0 to write program that can help me sign in into yahoomail for example. If not what programming language is best for that.

I have not thought of it,maybe i will research for it and get back to u.
Arijeseku
How Can I move DataGrid to Excel in vb
« #225 on: March 03, 2009, 07:21 AM »

How can i move data in DataGrid to Excel for Editing in Visual Basic
luckyCO
Re: Post your Vb 6.0 Questions Here
« #226 on: March 03, 2009, 11:50 AM »

If u are using MSHFrexgrid, put data in it and call this function

Public Sub PrintMsh(Mhs As Control, Optional KIM As Integer)
If Global_Can_Change_Setting = False Then
MsgBox "You don't have right to export your report to excel", vbCritical, "Right violated"

Exit Sub
End If

If MsgBox("Are you sure you want to export the data to excel", vbQuestion + vbYesNo, "Choose either yes or no") = vbNo Then Exit Sub

On Error GoTo errh
Dim D As Object, K As Long, j As Long
Set D = CreateObject("Excel.Application")
D.Visible = True
D.Workbooks.Add
Dim II As Long
Dim i9 As Long

Dim i8 As Integer
i8 = CInt(Mhs.Rows / 65536) - 3
For K = 1 To i8
D.Worksheets.Add
Next K

i8 = 1
i9 = 65536
II = 1
Dim M As Long
M = 1
Dim DF0 As Integer
If KIM <> 0 Then DF0 = KIM + 1

If KIM = 0 Then DF0 = KIM + 1

For K = 0 To Mhs.Rows - 1
If K = i9 Then
II = II + 1: i9 = i9 + 65536: M = 1
If II = i8 Then i8 = i8 + 1:

D.Worksheets(II).Columns.Font.Size = 8
D.Worksheets(II).Rows(1).Font.Bold = True
D.Worksheets(II).Rows.AutoFit
D.Worksheets(II).Columns.AutoFit
End If



For j = 1 To Mhs.Cols - DF0

D.Worksheets(II).Cells(M, j + 1) = Trim(Mhs.TextMatrix(K, j))

Next j

D.Worksheets(II).Cells(M, 1) = M - 1
M = M + 1
Next K

D.Worksheets(II).Cells(1, 1) = "S/N"

D.Worksheets(II).Columns.Font.Size = 8
D.Worksheets(II).Rows(1).Font.Bold = True
D.Worksheets(II).Rows.AutoFit
D.Worksheets(II).Columns.AutoFit
Exit Sub
errh:
End Sub
RuuDie (m)
Re: Post your Vb 6.0 Questions Here
« #227 on: March 05, 2009, 05:20 PM »

Hi folks, Any tips on how to use Datareports in VB Huh

I've got this problem with mine, i cannot bind the fields at design, i have to write SQLs to display my results at run-time. Not that i have much qualms with this but does it mean something is wrong with the setup Huh


But basically, what i want to know is how to code the "print" and "import" buttons - primarily, where to place the codes in the whole program


I'd also love to know how to use advance SQL statememts to generate much complex reports - reports with calculated fields, nested table values etc
luckyCO
Re: Post your Vb 6.0 Questions Here
« #228 on: March 06, 2009, 12:36 PM »

Quote from: RuuDie on March 05, 2009, 05:20 PM
Hi folks, Any tips on how to use Datareports in VB Huh

I've got this problem with mine, i cannot bind the fields at design, i have to write SQLs to display my results at run-time. Not that i have much qualms with this but does it mean something is wrong with the setup Huh


But basically, what i want to know is how to code the "print" and "import" buttons - primarily, where to place the codes in the whole program


I'd also love to know how to use advance SQL statememts to generate much complex reports - reports with calculated fields, nested table values etc


Before you use datareport you have to make connection to a database by clicking at project menu and from ActiveX submenu and click at more Activex desinger fro then you click at "Data Environment"

1. make connections and add command
2. Select the table or text and set your SQL to enable you lay your structure
3. After that you go back to the project and click at add datareport
4. From your Command which contains + sign containing fields carry it into the datareport and modify it the way you want it to be.
5. To pass SQl from run-time
Dataenvironment1.rsCommand1.Open SQL ,Connectionstring
Dataenvironment1.Commands.Item(1).CommandText = SQL
Dataenvironment1.Commands.Item(1).Execute

to show the report and print from there
Datareport1.show
 to print directlty

Datareport1.PrintReport

It will display the recordset for you.


If you want to learn more of complex sql you need to buy book and read.
Thanks

zmovement
JPEG Icon Format Problem
« #229 on: March 06, 2009, 03:36 PM »

One of the greatest problems I had in my last developmental efforts was the development of my software's icon or (the one that reflects on the window's top right hand corner of the software) and in the logo. I created it using CorelDraw (.JPEG Format) However, VB 6.0 requested a default .ICO format for this icon. I was not able to surmount this challenge.

Secondly, How can you incorporate a rich graphics (.JPEG) picture into your splash screen without running into similar problems?

Assume that the JPEG picture for the icon is stored in drive :c
luckyCO
Re: Post your Vb 6.0 Questions Here
« #230 on: March 07, 2009, 10:48 AM »

U need third party software that will enable you with already made Icons from there you design your own.

Icons are normally 16X16 or 24X24 or there about.

Design a rich image and save in say your c:\ drive then open your splash screen and goto splash screen property window.
You scroll and see Picture ,  click at ,  and navigate to your c and select the image and click open and it will replace the color of your splash screen.

Thanks
RuuDie (m)
Re: Post your Vb 6.0 Questions Here
« #231 on: March 07, 2009, 05:40 PM »

Quote from: luckyCO on March 06, 2009, 12:36 PM

Before you use datareport you have to make connection to a database by clicking at project menu and from ActiveX submenu and click at more Activex desinger fro then you click at "Data Environment"

1. make connections and add command
2. Select the table or text and set your SQL to enable you lay your structure
3. After that you go back to the project and click at add datareport
4. From your Command which contains + sign containing fields carry it into the datareport and modify it the way you want it to be.
5. To pass SQl from run-time
Dataenvironment1.rsCommand1.Open SQL ,Connectionstring
Dataenvironment1.Commands.Item(1).CommandText = SQL
Dataenvironment1.Commands.Item(1).Execute

to show the report and print from there
Datareport1.show
 to print directlty

Datareport1.PrintReport

It will display the recordset for you.


If you want to learn more of complex sql you need to buy book and read.
Thanks





Thanks luckyCO,

but where do i place the codes for "print" and "import" - what actions will trigger them - is going to be  under a command button Huh
luckyCO
Re: Post your Vb 6.0 Questions Here
« #232 on: March 09, 2009, 09:55 AM »

Yes put it in command button click procedure event.
say
private sub Command1_Click()
'your code goes here
end sub
defender_4
Re: Post your Vb 6.0 Questions Here
« #233 on: March 12, 2009, 09:35 PM »

Please i need help on vb 6 packaging installation.

When ever i compiled my Vb6.0 programs to be executed and install in another computer. it posses an error with the system files, that they are out of date.(the sys in which i want to install the program).
this files need to be updated else setup can't continue. It requires the sys to be restarted. Even after restarting the computer for the files to be updated, it does not work. platform = winxp sp2.

What am i to do? please
luckyCO
Re: Post your Vb 6.0 Questions Here
« #234 on: March 13, 2009, 03:04 PM »

What you are facing is simply OS version problem.
This was common during the time of windows 98-XP until service park 1 XP.
But any solution written in Service park 2 and installing on service park 1 will still give same problem.

If you cant upgrade the system to service park 2, the u have to install VB in the system before you can installing  your program, maybe after you uninstall vb.

Please let me know if u still have problem.

Take care and remain blessed.
defender_4
Re: Post your Vb 6.0 Questions Here
« #235 on: March 14, 2009, 07:52 AM »

THANK U LUCKYCO. yeah u r right, i installed d vb on d machine and later i proceeded wit my package program installation
defender_4
Re: Post your Vb 6.0 Questions Here
« #236 on: March 14, 2009, 07:58 AM »

it was ok. my questn is? can this b cause by runtime virtual component 4 vb?
Arijeseku
Appreciation
« #237 on: March 14, 2009, 11:31 AM »

I am very grateful for your help LuckyCO.

God will increase your knowledge.

How can i use MSHFrexgrid? because I am familiar with DataGrid

How can I see you? or Call you on Mobile phone. I need to see you physically and discus some important issue with you. This is my Number: 2348058569049, Nicholas Arijeseku

Thanks.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #238 on: March 14, 2009, 02:04 PM »

Datagrid is different to MSHFLexgrid.
MSHFrexgrid  gives you flexibility to used it.
Datagrid allows u to bind and things like dat.

MSHFrexgrid is like Excel worksheet where u reference row and column with an index number
Eg. 1
If you want to enter data in the first cell you code

MSHFlexGrid1.TextMatrix(RowsNo,ColNo)="Am a good programmer"
OR

MSHFrexgrid.row=1
MSHFrexgrid.col=1
MSHFrexgrid.text="Am a good programmer"

eg 2
If you want to create 10 rows and 5 Columns and put numbers in them see below
MSHFrexgrid.rows=10
MSHFrexgrid.cols=5

Dim J as Integer,I as integer

FOR J=1 to MSHFrexgrid.rows-1
      for I=1 to MSHFrexgrid.cols-1
        MSHFlexGrid1.TextMatrix(J,I)= J & " * " & I & "=" &   J * I
      Next I
Next J


Eg 3. If you want to display the value of the cell clicked

Private Sub MSHFlexGrid1_Click()
MsgBox MSHFlexGrid1.TextMatrix(MSHFlexGrid1.Row, MSHFlexGrid1.Col)

End Sub


Hope you can know it now.

If you need to discuss with me and probably see me in Abuja call 08036025235 take care and remain blessed.

luckyCO
Re: Post your Vb 6.0 Questions Here
« #239 on: March 14, 2009, 02:10 PM »

Quote from: defender_4 on March 14, 2009, 07:58 AM
it was ok. my questn is? can this b cause by runtime virtual component 4 vb?

I may not really say what is causing it. But I narrowed the problem down to OS versions different. It could be but it dont know. Am sorry abt it.
talk2hb1 (m)
Re: Post your Vb 6.0 Questions Here
« #240 on: March 15, 2009, 04:37 AM »

plz  Help me, i am working on a project that involve securing  the system, what i intend to achieve now is how do i create a logon screen that come immediately after window XP/vistas login, it must prompt the user for user name and password and authenticating it. the help i really need is what function or code do i use to bring up my own login screen after window login screen.
dami9ja (m)
Re: Post your Vb 6.0 Questions Here
« #241 on: March 15, 2009, 07:44 AM »

Hello bro, longest time,  Please how to i declare the size of an Integer variable? Also want to know how i can define the size of characters in a text box, so that it rounds up to the size defined? E.g if the result is 23.4378 it displays 23.44.
Thanks.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #242 on: March 16, 2009, 05:28 PM »

Quote from: dami9ja on March 15, 2009, 07:44 AM
Hello bro, longest time, Please how to i declare the size of an Integer variable? Also want to know how i can define the size of characters in a text box, so that it rounds up to the size defined? E.g if the result is 23.4378 it displays 23.44.
Thanks.

U cannt for now delare the size of an integr variable ince it fixed to 32(6)@@@. @ ign means three other number I dont know while (6) means am not sure whether 32 or 36 so find out.
If what u are looking for is how to delare a variable an integer then
Dim K as Integer

 TO make  23.4378 it displays 23.44 in a textbox then
Text1.text=format("23.4378","0,0.00")


Quote from: talk2hb1 on March 15, 2009, 04:37 AM
plz Help me, i am working on a project that involve securing the system, what i intend to achieve now is how do i create a logon screen that come immediately after window XP/vistas login, it must prompt the user for user name and password and authenticating it. the help i really need is what function or code do i use to bring up my own login screen after window login screen.
Please will reply you soonest.
soolari (m)
Re: Post your Vb 6.0 Questions Here
« #243 on: March 17, 2009, 01:37 AM »

Am new 2 vb but love 2 no it plz anybdy with d tutorial
luckyCO
Re: Post your Vb 6.0 Questions Here
« #244 on: March 17, 2009, 04:22 PM »

www.4shared.com
type vb turtorial then you download a you like.
If you are looking for codes then type www.pscode.com,www.vbourcecode.com etc
Just help yourself you are with your solution with your hands overthere.
dami9ja (m)
Re: Post your Vb 6.0 Questions Here
« #245 on: March 20, 2009, 05:39 AM »

@luckyC0, Thank u so much.
luckyCO
Re: Post your Vb 6.0 Questions Here
« #246 on: March 21, 2009, 12:27 PM »

Thank God.
zmovement
Database table/Datafield filetype question
« #247 on: March 21, 2009, 07:25 PM »

Is it possible to embed an MS Access 2003 database table (read/write) into a program group at design time without making it look "back-endish"(two part-application)? (Bearing in mind that you will have to update the database every now and then)

Secondly, is it possible to incorporate a separate data field, bearing photographs (.JPEG format) on an access database table to be displayed on a application Form's picturebox control on accessing a recordset? Please help me with the code snippet assuming that these passport photographs are stored on drive c:
luckyCO
Re: Post your Vb 6.0 Questions Here
« #248 on: March 23, 2009, 04:44 PM »

Quote from: zmovement on March 21, 2009, 07:25 PM
Is it possible to embed an MS Access 2003 database table (read/write) into a program group at design time without making it look "back-endish"(two part-application)? (Bearing in mind that you will have to update the database every now and then)

Secondly, is it possible to incorporate a separate data field, bearing photographs (.JPEG format) on an access database table to be displayed on a application Form's picturebox control on accessing a recordset? Please help me with the code snippet assuming that these passport photographs are stored on drive c:

Well, I dont think it is easy but anything is possible to those who believe. I hv thought abou it, tried it but got another Idea and abandone it there.
When U embed Access Database, Read & write would be blocked except you take it out to its real world (Drive or folder) then you can connect to it and do whatever you want.
Anyway you may try it out.

Your second question is possible but u mixed the question up. U maynot need to hv the picture store again in the database since it already in the drive C:

This is the best way so far to handle the picture thing except where the security is neccesary.

Create a folder where you will store the you pictures and then Create a field in the data that will be bearing the unique picture name with its extension name.
Then on accessing the field it will give you the name of the picture in your folder the u now add the folder path and complete the programn like below
picture1.picture=loadpicture(App.path & "\" & <Picture name>)

Then this will display the picture.
Incase you dont understand this, I will write the program for u.
nobahari11 (m)
Re: Post your Vb 6.0 Questions Here
« #249 on: March 24, 2009, 03:06 AM »

hi,,I am iranian,,ineed a freegate    .in these country all site are filtering                                                                                                                                                                                                                                                                          nobahari112 Grin Grin Cry         
Yusphle
Re: Post your Vb 6.0 Questions Here
« #250 on: March 24, 2009, 03:25 PM »

Hello, Please can anybody give me clues about DELPHI programming language?
luckyCO
Re: Post your Vb 6.0 Questions Here
« #252 on: March 27, 2009, 02:23 PM »

Quote from: adewaleafolabi on March 25, 2009, 07:05 PM
Its been a while since i programmed. I need a program that would accept in images and show them sequentially, changing after a specified period of time or if the user clicks next. The program would record how long each person spent on a picture and the total time spent. Thereafter it passes the output to a text file. Thanks

I dont know DelPhi Programming Sir, you may google it out.
Thanks
soolari (m)
Re: Post your Vb 6.0 Questions Here
« #254 on: March 28, 2009, 04:43 PM »

I need 2 no more about vb plz anybdy can hlp me out i gat an assignment on it
luckyCO
Re: Post your Vb 6.0 Questions Here
« #255 on: March 28, 2009, 06:27 PM »

Please post your questions here I will answer it.
 Oracle DBA Corner  Tutorials On Game Programming  Java Programming For Dummies  Page 2
Pages: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) 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.