|
I have absolutely no idea what you just said there but if it can work thanx.
can you give me some kind of example please?
the only way i know if itterating through the word is :
do until
word.chars( i += 1)
loop
|
|
|
|
|
here this could be ONE way..
Public Sub new_word(byval word as String)
Dim c As Char
Dim tb As TextBox
'remove all controls from form..
me.Controls.Clear()
' iterate through the word
For Each c In word
'create a new textbox
tb = New TextBox
tb.Tag = c ' hold the word to compare with entered char
tb.Text = string.Empty ' set the empty string (user has to enter..)
tb.Dock = DockStyle.Top '..
' add event if user enters a text
AddHandler tb.TextChanged, AddressOf Me.charChanged
' add the control to form
me.Controls.Add(tb)
Next
End Sub
Private sub charChanged(byval sender As Object,byval e As EventArgs)
Dim tb As TextBox
tb = directcast(sender, TextBox)
If not tb Is Nothing Then
If tb.Text = tb.Tag Then
tb.BackColor = System.Drawing.Color.Green
Else
tb.BackColor = System.Drawing.Color.Red
End If
End If
'.....
End Sub
|
|
|
|
|
Thanx for the example it helped a lot.
Hopefully I'll get it working now.
will also post if i get it working.
Thanx all
|
|
|
|
|
hi,expert i want to run css or style_sheet in vb.net
thanks
|
|
|
|
|
|
Weird. You're the second person to ask this, this week. While there is an article on trying to do this, it's absolutely retarded. CSS sucks at the best of times, and it's not applicable to winforms, You should find another way of creating styles to apply to your forms.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hey Christian, just out of curiosity, what's the quarrel with style sheets? You are always on the ball it seems, so I'm curious, what's the reason for;
Christian Graus wrote: CSS sucks at the best of times
|
|
|
|
|
CSS is a series of arcane and unrelated rules. It doesn't seem to have any logic or design to it. Perhaps I was just spoiled in having a CSS guru ( who, incidentally was useless at anything else ), so I've never had to learn it, I've just had to mess with it from time to time. But, I have to say that only 'classic ASP' has ever felt like more of a mess to me than CSS does.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
hi,
Expert i want to change the color of msgbox in vb.net.
Please give me a answer with detail.
thanks.
modified on Tuesday, September 29, 2009 6:09 AM
|
|
|
|
|
paya1pa wrote: Expert i want to change the color of msgbox in vb.net and languuage is C#.
Are you the same clown who keeps claiming to be using VB.NET and C# at the same time ? If you're using C#, then you're using C#, you should ask in the C# forum.
You can't change it, you'd have to create your own control to do that.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
I've just revieved your old posts. They have several things in common
1 - you don't have a clue what you're talking about
2 - if you bother to answer at all, you are incapable of understanding even the clearest of answers
3 - it looks like you're trying to teach yourself by doing things at random
Here are some pointers
1 - C and C# are two different things
2 - C# and VB.NET are two DIFFERENT languages. .NET is the framework both work in. I suspect, although it's hard to tell, that you're programming in C#, which means you're using .NET and you think that VB.NET and .NET are the same thing
3 - all of this means you're utterly clueless and casting around like a drowning man, and getting confused when people answer you. Stop posting here for 6 months. Buy a couple of good books, and work through them. Choose VB.NET or C#, it doesn't matter. Come back when you have half a clue, and are capable of both asking intelligent questions, and understanding basic answers.
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Hello Everybody,
I have Search the entire google, for how to close vb application from taskbar when it is minimize. But found nothing can anybody plz help me.
Thanks in Advance.
|
|
|
|
|
hi, need more information about your problem!
the close (X) is not visible if your application is minimized.. you need to close via SystemMenu right click at the minimized app and close.. the titelbar i think you mean instead of taskbar is not visible at that time.
greetz
|
|
|
|
|
Yep, i do mean the same .I need to Close my Vb app through SystemMenu when the application is minimize.Do u have any soluton for it.
thanks in advance.
|
|
|
|
|
Uhhh...unless you provide more information about what you're looking for, the answer is not going to change. Right-click the icon on the TaskBar and click Close.
|
|
|
|
|
Hi Dave,
I am Call a function in my Vb6 application Where i have used the follow Lib function to get the requried option from SystemMenu .But i m unable to get Hexa Code for Close option .
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br />
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<br />
Const WM_CLOSE = ??????
Can u provide any solution on this prob??????
|
|
|
|
|
goggle is your friend
WM_CLOSE = &H10 in VB
|
|
|
|
|
mdrizwan_1 wrote: I have Search the entire google
Wow. That's a lot of searching.
Why are you using VB6 ?
Christian Graus
Driven to the arms of OSX by Vista.
Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
|
|
|
|
|
Christian Graus wrote: That's a lot of searching
And it always ends in frustration[^].
Luc Pattyn
Local announcement (Antwerp region): Lange Wapper? Neen!
|
|
|
|
|
I am using the viaul basic 2008 express edition. I dragged and dropped reportviewer control on a Form and created dataset.xsd by dragging the table in to .xsd.
Now when i click 'Design a new report' link on the type right corner in the reportviewer control on the form, nothing happens at all.
can someone help on this how to work on this reportviewer control? i have some examples on this, but got stuck at this point of "Design a new report".
|
|
|
|
|
Don't worry about it. Just put the below codes to your button click()
Dim ObjRpt As New CrystalReport1
ObjRpt.SetDataSource(DS62.Tables(0))
CrystalReportViewer1.ReportSource = ObjRpt
CrystalReportViewer1.Refresh()
CrystalReportViewer1.Visible = True
From the above, Ds62 is Dataset and used to fill the datas, and it has send to the report.
|
|
|
|
|
I tried Your code, but showing error that "Type 'CrystalReport1' is not defined".
One more thing, does Visual Studio 2005 professional edition supports Crystal report?
|
|
|
|
|
Hi all,
Is there any way or solutions which allows a program to get/retrieve all the ip addresses currently active which belongs to the same network(same subnet)? For example, I run this program in one of the workstations within a network and i will get all the other workstations' ip addresses.
Regards and many thanks!
|
|
|
|
|
If you know the range of valid IP addresses, have you considered just interating through them and pinging them in turn? The currently active ones will hopefully reply. Limitations with this would include that firewalls can sometimes block pings, and if the subnet is large, it could take a while, but it might be alright for your specific network.
|
|
|
|
|
The only way to do that would be to start pinging every IP address in the subnet. The response you get will tell you in there is TCP/IP stack that responds, but that also depends on firewalls blocking the ICMP packets, so you're results may be skewed.
Bascially, there is now way to reliably find every active IP address on a subnet.
|
|
|
|