|
I'm sorry, this isn't what i was looking for... this converts images to icons... i'm trying to convert an icon to an image.... however it did solve a problem i was having with fixed length strings... so your effort was not completely in vain... thanks
|
|
|
|
|
Hi everybody ,
please i want to build a class
this class will be inherited from windows.system.forms.form
i hope this is the good root
whatever i need a form
well now i have a class1 form
now i want to inherit an other class2 but this once from my class1
class2 inherit class1
please if you know how tell me cuz i really need it even if it is hard to explain just try to
thank you very much
try to be good if you can't be the best
|
|
|
|
|
|
I am working on a program for tic tac toe. The program is using text boxes with click event so when the box is clicked it will populate with a X or O unless it is already populated. I have everything working except my subrotine which is called from the checkfor win to check for a tie. Here is the code I am trying to use to check for a tie. Can someone please help me with why this causes the program to crash and also how to fix this code.
Sub checkfortie()
If txtPosition1.Text <> "" And txtPosition2.Text <> "" & txtPosition3.Text <> "" And _
txtPosition4.Text <> "" And txtPosition5.Text <> "" And txtPosition6.Text <> "" _
And txtPosition7.Text <> "" And txtPosition8.Text <> "" And txtPosition9.Text <> "" Then
Catwins += 1
End If
End Sub
|
|
|
|
|
If txtPosition1.Text <> "" And txtPosition2.Text <> "" & txtPosition3.Text <> "" And _
The problem is with one of your and s. You mistakenly used an &, which tries to do a bitwise and instead of a logical and . (Mixing up your C/C#/C++ with your VB?)
This type of thing is hard to catch. Your brain sees what it wants to see.
Roy.
|
|
|
|
|
Thanks for catching my mistake. It was an oversight on my part and me not paying atttention. The program works like a charm now.
|
|
|
|
|
Please post your error message on the forum.
|
|
|
|
|
Thanks the problem is already solved. I made a mistake and had a & instead of And.
|
|
|
|
|
assuming i have http://wwww.mysite.com/index.htm
how to read line by line the index.html and search a value "TEST" in all line of documet html, and when is found store in MY_VAR....
-- modified at 13:55 Saturday 20th May, 2006
|
|
|
|
|
Hello Developers.
I've searched in MSDN help and Google for a while but still haven't found out if VB.NET has a way to add a user to the local administrators group.
I can use the System.Diagnostics.Process.Start method to fire up a "net localgroup administrators user /add" command which works but I wonder if VB.NET has a built-in eqvivalent for this...
The problem with the "net.exe localgroup..." way is when I'd like to use it with a non-English XP where the local administrators group name is "Rendszergazdák" - the "net localgroup Rendszergazdák user /add" command doesn't work from my VB.NET code because of the "á" char in the arguments (it's a known codepage bug - net.exe expects ibm852 "á" instead of the windows-1250 "á") - however it works manually from a cmd.exe window.
|
|
|
|
|
|
Hi, I am trying to set up a button in a program that when selected it removes all ticks from check boxes and removes any text from the text box and I am looking to make a text box not visible until a button has been clicked has anyone got any suggestions as a starting point?
|
|
|
|
|
NickiG wrote: it removes all ticks from check boxes
check1.check = false
NickiG wrote: removes any text from the text box
text1.text = ""
NickiG wrote: make a text box not visible until a button has been clicked
text1.visible = false
|
|
|
|
|
when i call remoting services from diffrent machine then i got the exception
like "Server encountered an internal error For more information, turn on customErrors in the server's .config file."
even i add this tag in to App.config file
<customError mode=off />
but still i am getting same Exception ....
|
|
|
|
|
u just have to create a new user on server and then add this user as a member of administrator and then right click on your services then click on properties after that click on logOn tab chek the radio button for this a/c
and put a same user name and password which u created and apply.
i think this will solve your problem.
|
|
|
|
|
Hello freiends,
I have to create a MS ACCESS database .
Plz Guide me!!
Rahul here
|
|
|
|
|
Hi Rahul,
What do you want actually. No one will get your question if you wont elaborate properly. Please elaborate whether you want only the connection to access database or you want to create an access database.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
Anant Y. Kulkarni
|
|
|
|
|
|
I write a code as follow to detect the timer event(System.timers.timer).
timer1.interval=100
timer1.AutoReset=Ture
timer1.enable=false
'My test code
Imports vb = Microsoft.VisualBasic 'above all codes
Dim startime As Single
Dim sresult() As Single = New Single(10000) {} 'record each start time
Dim i As Integer
Dim j As Integer
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs) Handles Timer1.Elapsed
sresult(i) = vb.Timer
i += 1
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Timer1.Enabled = False
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
j += 1
TextBox3.Text = sresult(j) - sresult(j - 1)
End Sub
OK! What do u think it will be in textbox3?(After the second click)
Wait for a minute to go on pls.Just say what do you think the answer now.
OK! Come on,Everybody.Have you done it in your project?
What is the result?
And What i can see is:
The number 0.09375 and 0.109375 displays alternatly.
Why isn't it always 0.1 ?
What is the number 0.09375 or 0.109375?
And when i set timer1.interval=10
the alternate number is :"0" and 0.015625
Thank you for all
ICQ:258-235-734
MSN:msnadair@hotmail.com
-- modified at 5:03 Saturday 20th May, 2006
|
|
|
|
|
Timer control (and Timer API) are not exact when are set to operate in small fractions of second... This just gives a relatively period near the interval you set. It is also affected by cpu usage... If you exactly want a sharp timer (for example if you are writing a media player program, to match audio and video you need it), search internet for High Resolution Timer.
If you run a media player while you are testing your timer program, you get more accurate results (this is not an experience of mine, but one of my friends once had tested...)
|
|
|
|
|
Don't you think it is very interesting?
It displays the two numbers alternantly every time when you run the program.
MohammadAmiry wrote: Timer control (and Timer API) are not exact when are set to operate in small fractions of second... This just gives a relatively period near the interval you set
As you say,It may be 0.1 more or less Instead of regular alternate number 0.09375 and 0.109375.
ICQ:258-235-734
MSN:msnadair@hotmail.com
|
|
|
|
|
codeadair wrote: OK! What do u think it will be in textbox3?(After the second click)
Wait for a minute to go on pls.Just say what do you think the answer now.
Based on a timer interval of 100 ms I would expect the answer to be around about 0.1 If it is exactly 0.1 then you got lucky.
codeadair wrote: OK! Come on,Everybody.Have you done it in your project?
What is the result?
I've used timers in projects before. I also read the documentation on them first which said that they are not exact.
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hi!
Could you help me how to adjust forecolor of an entire row (or just a cell) in a datagrid?
Thank you!
|
|
|
|
|
hi,
Try the property builder for applying some color templates to a data grid.
Anant Y. Kulkarni
|
|
|
|
|