Showing results 1 to 25 of 500
Search took 0.15 seconds.
Search: Posts Made By: YuanHao
Forum: General 07-14-2004, 07:50 PM
Replies: 4
Views: 399
Posted By YuanHao
Hmm... A) Use vb Tags :P B) Dim DOBQ...

Hmm...

A) Use vb Tags :P

B)
Dim DOBQ as Date
DOBQ = CDate(Text4.Text)

No need for that variable :)
Forum: General 07-14-2004, 06:46 PM
Replies: 16
Views: 600
Posted By YuanHao
A "harsh" way is forcing it, useful for small...

A "harsh" way is forcing it, useful for small apps:
Private Sub Form_Unload(Cancel As Integer)
End
End Sub
Forum: General 02-16-2004, 03:25 PM
Replies: 5
Views: 418
Posted By YuanHao
Ok sorry :P hehe, just remember that when you...

Ok sorry :P hehe, just remember that when you wrote: "fourth bit of an integer", integer is the primitive type that stands for numbers in base 10, that made it a little confusing :P
Forum: General 02-16-2004, 03:20 PM
Replies: 7
Views: 472
Posted By YuanHao
Yes indeed, it is a convention that all arrays...

Yes indeed, it is a convention that all arrays start in 0, actually it is very good practice to get used to having 0 as the first value, not 1.
Forum: General 02-16-2004, 03:10 PM
Replies: 5
Views: 418
Posted By YuanHao
Hmm... not sure if you mean DIGIT or BIT anyway...

Hmm... not sure if you mean DIGIT or BIT anyway just in case: if you mean digit, I'd use Mid$ as a String, instead of having to play with Mod and integer division. Anyway:number2 = (number \ 10 ^ i)...
Forum: General 02-16-2004, 03:00 PM
Replies: 6
Views: 1,839
Posted By YuanHao
CDate recieves only one parameter, did you...

CDate recieves only one parameter, did you try:TheDate1 = CDate(txtTextbox1)? You can then format it with the Format$ method.
Forum: General 02-16-2004, 02:54 PM
Replies: 7
Views: 372
Posted By YuanHao
SendInput, see if that example in there works for...

SendInput, see if that example in there works for you.
Forum: General 02-16-2004, 02:47 PM
Replies: 3
Views: 305
Posted By YuanHao
You are using VB6, right? Are you using any VB...

You are using VB6, right? Are you using any VB SP? If you are, you can install the vb runtime DLL's by using VB's program setup feature.
Forum: General 02-16-2004, 02:34 PM
Replies: 3
Views: 305
Posted By YuanHao
As you get it, comdlg32.dll is too old, you have...

As you get it, comdlg32.dll is too old, you have to install a new one. Not sure, but if you put comdlg32.dll in the same folder as your app, I think you get that one before the one on the System...
Forum: General 02-16-2004, 01:45 PM
Replies: 3
Views: 299
Posted By YuanHao
Hmm, not sure, but did you try: ...

Hmm, not sure, but did you try:
format$(textbox(i).text, #.##)
?
Forum: General 01-28-2004, 10:58 PM
Replies: 4
Views: 351
Posted By YuanHao
If the file doesn't exist, VB will give an...

If the file doesn't exist, VB will give an error... remember to use On Error goto [error] or the easiest, On Error Resume Next
Forum: General 01-28-2004, 10:39 PM
Replies: 8
Views: 1,358
Posted By YuanHao
Do you want to read a text file? I'm not familiar...

Do you want to read a text file? I'm not familiar with FileSystem object at all, if you wanna read a text file into a string, I have a little method that can do it, and for splitting if you need, you...
Forum: General 01-28-2004, 10:36 PM
Replies: 3
Views: 389
Posted By YuanHao
Set the form's scalemode to 3 (pixels)...

Set the form's scalemode to 3 (pixels) (me.ScaleMode = 3) then do something like MyPic.height * MyPic.width

Remember default scale mode is twips (font size).
Forum: General 01-28-2004, 10:29 PM
Replies: 8
Views: 1,358
Posted By YuanHao
For Windows OS, it's the same, actually both...

For Windows OS, it's the same, actually both definitions go back to typewriters, where CR is the returning of the carriage, and linefeed the actual moving of the paper to a new line; some other OS...
Forum: General 01-28-2004, 10:22 PM
Replies: 5
Views: 364
Posted By YuanHao
shouldn't it be: Private Sub Checkbox1_Click() ...

shouldn't it be:
Private Sub Checkbox1_Click()
Open "C:\trial\trial.txt" For Input As #1
strCheckbox = CStr(Checkbox1.Value)
Line Input #1, strCheckbox
Close #1
End Sub

btw use...
Forum: General 01-28-2004, 09:59 PM
Replies: 8
Views: 1,358
Posted By YuanHao
Did you set the Textbox to Multiline? those boxes...

Did you set the Textbox to Multiline? those boxes are actually the vbCrLf characters.
Forum: General 01-26-2004, 09:18 AM
Replies: 4
Views: 423
Posted By YuanHao
Set the Form ScaleMode to 3 (pixels) and then use...

Set the Form ScaleMode to 3 (pixels) and then use pixels to set the exact position of text boxes with their left and top.
Forum: General 01-26-2004, 09:08 AM
Replies: 3
Views: 454
Posted By YuanHao
You can't use variables (such as app.path) in...

You can't use variables (such as app.path) in constants, instead create a Global variable like:
Global MyPath as String
and then set it.
Forum: General 01-24-2004, 04:27 PM
Replies: 3
Views: 546
Posted By YuanHao
I understand what you mean by double buffering,...

I understand what you mean by double buffering, but doing a single buffer takes a long time if I stretch the image.

As for now, the best solution I thought was adjusting the interval in the timer...
Forum: General 01-23-2004, 09:24 PM
Replies: 3
Views: 546
Posted By YuanHao
Scaling of animation slow

Hey everyone.

Since long time ago, I've been dealing with a terrible problem; I am doing an animation using BitBlt which works perfectly well; however, I need to double the final BitBlt'ed image,...
Forum: General 01-18-2004, 03:25 PM
Replies: 36
Views: 785
Posted By YuanHao
pid = Shell("C:\Program Files\Internet...

pid = Shell("C:\Program Files\Internet Explorer\iexplore.exe " & Text2.Text)
watch the space carefully next to "explorer.exe "
Forum: General 01-18-2004, 03:05 PM
Replies: 36
Views: 785
Posted By YuanHao
gaves yellow debug error I don't understand,...

gaves yellow debug error
I don't understand, can you copy the error that it is giving you? Are you sure there is Text2 textbox? most probable error is that a typo or you don't have that textbox.
...
Forum: General 01-18-2004, 02:55 PM
Replies: 36
Views: 785
Posted By YuanHao
pid = Shell("C:\Program Files\Internet...

pid = Shell("C:\Program Files\Internet Explorer\iexplore.exe text.Text2")
change to:
pid = Shell("C:\Program Files\Internet Explorer\iexplore.exe " & text.Text2)
See, one takes "text.text2" as...
Forum: Excel 01-18-2004, 02:45 PM
Replies: 3
Views: 528
Posted By YuanHao
Dim DateCells As Integer DateCells =...

Dim DateCells As Integer
DateCells = myworksheet.UsedRange.Columns("A").Rows.Value

This means that (...).Rows.Value is not an Integer Type, though I'm not sure which type it is. You could try...
Forum: General 01-17-2004, 11:39 PM
Replies: 5
Views: 305
Posted By YuanHao
Load_Txt() doesn't exist then, where are you...

Load_Txt() doesn't exist then, where are you getting with that line btw? If you got that from a source code, probably you missed the module or something like that.
Showing results 1 to 25 of 500

 
Forum Jump
Advertisement:



Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe