Forum: Visual Basic 4 / 5 / 6 Feb 7th, 2009 |
| Replies: 3 Views: 790 Hi,
You can also use PaintPicture () to get the portion of image
Code
Option Explicit
Dim iX As Integer, iY As Integer, iHeight As Integer, iWidth As Integer
Private Sub... |
Forum: Visual Basic 4 / 5 / 6 Jan 18th, 2009 |
| Replies: 2 Views: 555 Hi,
Use DeviceIoControl() API, to eject the removable storage media. Refer http://support.microsoft.com/kb/165721 |
Forum: VB.NET Sep 23rd, 2008 |
| Replies: 2 Views: 1,239 Here you made mistake.
change
If "Average grade: " >= 90 Then
letterGrade = "A"
ElseIf "Average grade: " >= 80 Then
letterGrade = "B"
ElseIf... |
Forum: C# Aug 17th, 2008 |
| Replies: 5 Views: 1,050 Yes, I agree
but you can change the condition like
No & 1 == 1 means Odd
otherwise Even |
Forum: Visual Basic 4 / 5 / 6 Aug 14th, 2008 |
| Replies: 2 Views: 3,063 Hi,
In vb, MOD is an operator to find Remainder
Ex
Dim iRemainder As Integer
iRemainder = 2008 MOD 10 'Here 8 is the Remainder
If you divide one number by another number... |
Forum: VB.NET Aug 9th, 2008 |
| Replies: 6 Views: 5,746 Somewhat correct. But you have to declare the variable at Form level not inside Click Event Handler
Dim bBtnClicked As Boolean = False
Private Sub cmdOne_Click(ByVal sender As... |
Forum: Visual Basic 4 / 5 / 6 Aug 2nd, 2008 |
| Replies: 11 Views: 1,781 I give example for drag and drop
> Place two label (Label1, Label2)
> Change DragMode Property of Label2 to 1 - Automatic
> And try the below code
Private Sub Label1_DragDrop(Source As... |
Forum: C# Jul 27th, 2008 |
| Replies: 4 Views: 1,822 Hi, You can perform the Transformation on your Points(By just adding or subtracting (100, 100) to each points). GDI+ uses (0,0) is the Mid point. But it provides Matrix class to Transform the... |
Forum: C# Jul 20th, 2008 |
| Replies: 12 Views: 4,488 The above code that i posted only works when type the tags
When you want change the color by pressing button. I am not familiar with Regular Expression, still a try.
Try this
private void... |
Forum: VB.NET Jul 12th, 2008 |
| Replies: 4 Views: 1,564 Yes Now I Understand.This Query is working when Exactly the GraphicsCARD is NVIDIA*, because u specified = operator. When you query to the pattern (like NVIDIA*) you should use Like Operator. Also My... |
Forum: Visual Basic 4 / 5 / 6 Jun 26th, 2008 |
| Replies: 5 Views: 3,067 Good, I just given example to use array. Is your problem solved? |
Forum: Visual Basic 4 / 5 / 6 Jun 10th, 2008 |
| Replies: 5 Views: 564 Hi,
You can refer the filename.txt like
App.Path & "\FileName.txt"
Here App refers your application and App.Path refers the directory where your project file located. So App.Path will work... |
Forum: Visual Basic 4 / 5 / 6 Apr 30th, 2008 |
| Replies: 4 Views: 868 I think you mean
The execution of Call function1(var_Name, intValue) should be after closing or hiding Form1
If so, you can show the form Modally
that is
Form1.Show vbModal
The execution... |