Forum: VB.NET Oct 10th, 2008 |
| Replies: 17 Views: 2,317 Hi,
You can Use Array of Three Number for Computer Guess and User Guess, instead of having a single number.
Ex
Dim UserGuess(2) As Integer
Dim ComGuess(2) As Integer
Sub... |
Forum: VB.NET Sep 30th, 2008 |
| Replies: 3 Views: 1,023 Hi, Object.ToString() to format the string |
Forum: VB.NET Sep 23rd, 2008 |
| Replies: 2 Views: 1,204 Here you made mistake.
change
If "Average grade: " >= 90 Then
letterGrade = "A"
ElseIf "Average grade: " >= 80 Then
letterGrade = "B"
ElseIf... |
Forum: VB.NET Sep 12th, 2008 |
| Replies: 1 Views: 853 Hi, I think you are trying to display Multiple columns. Why dont you consider about the other controls that capable of display multiple columns (Like Grid control or ListView).
In listbox all the... |
Forum: VB.NET Sep 4th, 2008 |
| Replies: 3 Views: 4,553 Hi Luke,
Instead of converting Label to Integer (Label1 to Minutes), Use DateTime Class for Date or Time operations.
It has methods and Properties to manipulate it. |
Forum: VB.NET Aug 29th, 2008 |
| Replies: 3 Views: 1,113 Is Timer1 the member of Current Form? Have you check it?
Also Where you declared Timer1? |
Forum: VB.NET Aug 19th, 2008 |
| Replies: 11 Views: 1,620 Hi harry,
> Use Form level array(say A) to hold all the words in a file
> Use form level integer to hold the current index(say ci)
> When Form loads read the words in the file and store it in... |
Forum: VB.NET Aug 17th, 2008 |
| Replies: 11 Views: 1,620 You need to know GDI+ or some other technique
Other Technique:
> Draw a Label in Form,
> Set Autosize Property to False
> Set Dock Property To Fill
> Set TextAlign Property to Middle Center... |
Forum: VB.NET Aug 9th, 2008 |
| Replies: 6 Views: 5,530 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: VB.NET Aug 9th, 2008 |
| Replies: 6 Views: 5,530 Hi,
> Use a boolean variable (bBtnClicked)
> Initially Keep it false (bBtnClicked = false)
> Whenever user click the button Make it True (bBtnClicked = True in Click Event)
> Now the boolean... |
Forum: VB.NET Jul 27th, 2008 |
| Replies: 2 Views: 1,733 Hi, You have to override Window Procedure for the particular form. I give example that shows Context menu when user right click on the Title bar
Public Const WM_NCRBUTTONDOWN = &HA4
... |
Forum: VB.NET Jul 27th, 2008 |
| Replies: 2 Views: 1,035 Hi,
We cannot find the square root for negative number. Thus System.Math.Sqrt() raises OverFlowException
You are trying to FInd the Roots of an Quadratic Equation. Am I right?
To find... |
Forum: VB.NET Jul 17th, 2008 |
| Replies: 2 Views: 539 Hi, this mean you want to raise error, while delete this record?.
One idea
You are loading the records from File to Listview. For deleting do the reverse, that is clear the file (or open file in... |
Forum: VB.NET Jul 12th, 2008 |
| Replies: 8 Views: 1,659 Sorry Not understandable. Please specify from where you have to extract the Icons. From Dll or Exe ? |
Forum: VB.NET Jul 12th, 2008 |
| Replies: 6 Views: 2,331 |
Forum: VB.NET Jul 12th, 2008 |
| Replies: 6 Views: 2,331 I give example using Win32 API. You have to refer it. I am not sure it is error free. But just try
Draw a form and Try this code. Run the Project. Press Ctrl + Alt + Up Arrow
Public Enum... |
Forum: VB.NET Jul 11th, 2008 |
| Replies: 6 Views: 2,331 One way to do this, Register you hot key in Registry. Or Hook the Keyboard Procedure. The second one is hard. |
Forum: VB.NET Jul 11th, 2008 |
| Replies: 8 Views: 1,659 Hi, Do you mean Extract Icon from an Exe file? |
Forum: VB.NET Jul 6th, 2008 |
| Replies: 5 Views: 2,321 I think You want your program should not be display in TaskBar?
I Hope, Form.ShowInTaskbar Property may Help you.
Set This property to false, your application will not show in the TaskBar |
Forum: VB.NET Jun 26th, 2008 |
| Replies: 7 Views: 2,073 I understand the problem, Try this
Private Sub ListView1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.Click
If ListView1.SelectedItems.Count > 0 Then
... |
Forum: VB.NET Jun 26th, 2008 |
| Replies: 7 Views: 2,073 Hi
This may help u.
Draw a ListView Control (ListView1)
Try the Following code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
... |
Forum: VB.NET Jun 25th, 2008 |
| Replies: 7 Views: 2,073 To select ListItems you can use ListView1.SelectedItems. This is a collection of Selected List Items. You can refer first selected item as ListView1.SelectedItems(0)
if... |
Forum: VB.NET Jun 17th, 2008 |
| Replies: 7 Views: 688 Can you tell specifically, when selecting an item which item(control) is not visible. |
Forum: VB.NET Jun 7th, 2008 |
| Replies: 4 Views: 5,209 Hi
In this coding just Ctrl is Control reference not a PictureBox. so You Need to Cast it to PictureBox reference
Your Coding is
If TypeOf ctrl Is PictureBox And ctrl.Name = PictureBoxName... |
Forum: VB.NET Jun 6th, 2008 |
| Replies: 4 Views: 5,209 Hi,
I give example for iterate currently selected tab controls
The code is
For Each ctrl As Control In TabControl1.SelectedTab.Controls
If TypeOf ctrl Is TextBox Then
... |
Forum: VB.NET May 25th, 2008 |
| Replies: 1 Views: 912 Hi
I think Show the form modally will help u.
Refer
Form.ShowDialog() method
or
Form.ShowDialog(Owner) method |