Search Results - CodeGuru Forums
 CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

# Search:

Type: Posts; User: Ash Katchup

## Search: Search took 0.01 seconds.

by Ash Katchup
Replies
1
Views
473

### Re: Add-In + Hotkeys: How?

Subclassing saved me

by Ash Katchup
Replies
1
Views
473

### [RESOLVED] Add-In + Hotkeys: How?

Hello there. I'm kinda new in the add-in programming, but i'm learning some stuff with other's code and guides.

This week, i have been trying to create an add-in that support hotkeys. Which means...
3. ## Thread: Help needed for newbie regarding PROJECT

by Ash Katchup
Replies
12
Views
1,030

### Re: Help needed for newbie regarding PROJECT

You don't know NOTHING about VB?
4. ## Thread: Help needed for newbie regarding PROJECT

by Ash Katchup
Replies
12
Views
1,030

5. ## Thread: INT Function Rounding Problems

by Ash Katchup
Replies
40
Views
9,853

### Re: INT Function Rounding Problems

Hehehe, i missed that. Learning about VB bugs :)
6. ## Thread: Help needed for newbie regarding PROJECT

by Ash Katchup
Replies
12
Views
1,030

### Re: Help needed for newbie regarding PROJECT

Using ADO, you can connect your VB software to Oracle using the following code:

'
7. ## Thread: INT Function Rounding Problems

by Ash Katchup
Replies
40
Views
9,853

### Re: INT Function Rounding Problems

But int(csng(19.99*100)) = 1999
and int(cdbl(19.99*100)) = 1998
8. ## Thread: INT Function Rounding Problems

by Ash Katchup
Replies
40
Views
9,853

### Re: INT Function Rounding Problems

I can't tell you why, but i know that you can workaround using Single.
9. ## Thread: INT Function Rounding Problems

by Ash Katchup
Replies
40
Views
9,853

### Re: INT Function Rounding Problems

Check this.

Dim x As Integer
subtotal = 19.99
subtotal = subtotal * 100
x = subtotal
subtotal = Int(x)

by Ash Katchup
Replies
12
Views
1,613

Well, i took a look at your OCX code and i think that your project crashed someday and this cleared the labels. It happened with me once. I suggest create a separate project for your "button" and use...
11. ## Thread: [RESOLVED] Sql Statement issue

by Ash Katchup
Replies
4
Views
896

### Re: Sql Statement issue

When you use some variable inside one SQL statement, you should close quotes and concat with it.

"SELECT * FROM " & sTESTE & " WHERE X = 1"

by Ash Katchup
Replies
12
Views
1,613

Can you post the entire project of your ocx?
13. ## Thread: Removing the last two lines of a RichTextBox

by Ash Katchup
Replies
14
Views
4,003

### Re: Removing the last two lines of a RichTextBox

Thanks, but i know about Do Loop. I just use While because everyone does where i work (i really can't understand, but this is the template....).

by Ash Katchup
Replies
5
Views
828

Why don't you use DBTextBOX?
15. ## Thread: Removing the last two lines of a RichTextBox

by Ash Katchup
Replies
14
Views
4,003

### Re: Removing the last two lines of a RichTextBox

Thanks for the tip :)
And i forgot to use "Exit For" because my first idea was with While/Wend.
16. ## Thread: Runtime Error 6 Overflow

by Ash Katchup
Replies
4
Views
4,801

### Re: Runtime Error 6 Overflow

http://support.microsoft.com/kb/171837/en-us/

Edit: make sure that the language of this PC that raise error is the same that the others.
17. ## Thread: Removing the last two lines of a RichTextBox

by Ash Katchup
Replies
14
Views
4,003

### Re: Removing the last two lines of a RichTextBox

Using normal textbox:

Private Sub Command1_Click()
i = UBound(Split(Text1.Text, vbCr))
'
If i >= 1 Then
texto = Text1.Text
18. ## Thread: [REQUEST] What does #IF Means

by Ash Katchup
Replies
5
Views
692

### Re: [REQUEST] What does #IF Means

But still one question:
How do i declare two or more arguments?
I tried ",.|;" but no one worked.

EDIT:
Forget it. It's ":".
For those who wanna know more about:...
19. ## Thread: [REQUEST] What does #IF Means

by Ash Katchup
Replies
5
Views
692

### Re: [REQUEST] What does #IF Means

Now i understood it. Thanks!
20. ## Thread: [REQUEST] What does #IF Means

by Ash Katchup
Replies
5
Views
692

### [REQUEST] What does #IF Means

Hello there.
I saw some codes that have the sharp characters in front of an IF, like:

x = true
#If x then
msgbox "omg, its true"
#End If

But i saw too that the msgbox never was...
21. ## Thread: List the fields in combo box from SQL Server

by Ash Katchup
Replies
4
Views
1,900

### Re: List the fields in combo box from SQL Server

My bad. I've fixed it now.
22. ## Thread: List the fields in combo box from SQL Server

by Ash Katchup
Replies
4
Views
1,900

### Re: List the fields in combo box from SQL Server

This code will get every field from one table:

Option Explicit

23. ## Thread: [REQUEST] Window With Focus

by Ash Katchup
Replies
4
Views
745

### Re: [REQUEST] Window With Focus

Thanks, again . I was working on that issue for 3 hours, without getting through. Now i use GetActiveWindow and GetWindowText to prevent that my code execute on both VB Instances. I didn't found a...
24. ## Thread: [REQUEST] Window With Focus

by Ash Katchup
Replies
4
Views
745

### Re: [REQUEST] Window With Focus

Omg, that was really fast... i wasn't expecting answers today ...
Thanks, man, the GetForegroundWindow works like a charm.
25. ## Thread: [REQUEST] Window With Focus

by Ash Katchup
Replies
4
Views
745

### [REQUEST] Window With Focus

Hello there.
I'm creating an add-in for Visual Basic 6 with some hotkeys, through GetAsyncKeyState function, but i got one issue: when i open two or more instances of VB and press one hotkey, the...
Results 1 to 25 of 25