|
yea in key press event...
so it will be like:
Private Sub TextBox1_TextChange 'this event<br />
<br />
If textbox1.text.startswith("<") then<br />
combobox1.visible=true<br />
else<br />
combobox1.visible=false<br />
End if<br />
End Sub
buth i dont need that becose i need that it always check if the "<" is typed annywhere...
Should i try like this?
Private Sub TextBox1_KeyDown<br />
<br />
if e.keys="<" then<br />
combobox1.visible=true<br />
else<br />
combobox1.visible=false<br />
End Sub
The other question is:
I have Form1 and Form2
on form1 i have textbox1
and now i type text in textbox something like this:
_____________________________
| shdkashlčj ljsl jlj aćdsk |
| jsahkldhsačklh aslč jda l |
| sjdaskd <-"Here is Ibeam" |
| jsd d ashkld ahs dkas s |
| sdjahdla čsdčk ashčfač f |
-----------------------------
^-this is TextBox
and now i click in menu insert new...
the form2 shows like dialog
you select text to insert in textbox
and click on btn_insert
and now i want that the text that was selected in list box on form2, that that text goes to form1/textbox1 thats easy buth i need that text goes to the place of Ibeam not on the end of text box. Thanks again
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
1)yes u should try the keydown()
2)to replaceonly a part of a textbox
u should use replace func. :-
TextBox1.Text = TextBox1.Text.Replace("IBeam", "new text")
|
|
|
|
|
FeRtoll wrote: and now i want that the text that was selected in list box on form2, that that text goes to form1/textbox1 thats easy buth i need that text goes to the place of Ibeam not on the end of text box.
By Ibeam, do you mean cursor? If so, try using SelectedText, like this:
textbox1.SelectedText = listbox.text
This will insert the text from form2 listbox into the text in form1 textbox, at the location of the cursor.
Roy.
|
|
|
|
|
Roy Heil wrote: By Ibeam, do you mean cursor? If so, try using SelectedText, like this:
textbox1.SelectedText = listbox.text
This will insert the text from form2 listbox into the text in form1 textbox, at the location of the cursor.
lol Roy. you think that the question is that easy... you think i didnt tried that?
I tried everithing its not that easy... I need to save focus but how...
You didnt helped me buth, Thx man for traying annyway...
FeRtoll Software.net
--------------------
I fertoll@net.hr I
--------------------
|
|
|
|
|
Good day, I want to change the font color of my datagrid.
I have a project that retrieve data to sql database, when the data is retrieve, the font color is blue and when adding data, the font color is red. Thanks in advance.
|
|
|
|
|
I think your looking for this[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks
|
|
|
|
|
i load datatable into a grid, the grid is added, edited. Now i put into the grid a new row with the same key as another row. I have used Rowchanged and Columnchanged Events. But after it messaged the error as i gave, it message a error message from System.
I want to turn of it. How can i do that? Please help me!
superdragon
|
|
|
|
|
superdragon wrote: I want to turn of it. How can i do that?
You can't! You're violating the unique value constraint on the Primary Key column of your table. You simply cannot do that and cannot turn off the error.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: You can't! You're violating the unique value constraint on the Primary Key column of your table. You simply cannot do that and cannot turn off the error.
Dave is right. The whole idea of the Primary key having the unique value is to prevent duplication
PJC
|
|
|
|
|
No, i dont wan to add duplicated ID Key, but i only want to message the Error as i want, after that i will edit it. But after my message is messaged, i receive system Error, i dont like that.
superdragon
|
|
|
|
|
Then what does this mean:
Now i put into the grid a new row with the same key as another row.
??????
Now we're really confused. How are you adding this new record? Why are you trying to add a new record with a duplicate key? If you don't want the message to come up, don't put the duplicate key in! It's that simple...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I only want to catch error, because maybe someone can insert a new record into grid with the same key, and they dont know about english, they can not understand what the system error message means.
superdragon
|
|
|
|
|
Your users should not be generating their own Primary Key's. They should not even be able to enter a Primary Key at all! These should be generated by the database itself.
Like I said, handle the error by not letting it happen in the first place. Don't give the user the opportunity to make the error come up.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
-- modified at 22:45 Sunday 5th March, 2006
|
|
|
|
|
I thank you very much, now i have solved it, i used ExtraGrid Event(invalidrow), and i could catch it easy.
superdragon
|
|
|
|
|
[shakes head back and forth slowly and ]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello all,
i do have file contain defrag.bat.
how can i write the code in vb.net to trigger the event of
that file??in other words,i am trying to call the system tools from my
.Net application..
please somebody help me...
besah
|
|
|
|
|
The System.Diagnostics namespace has a Process class you can launch external programs with. You pass in the name of an executable file or a filename with an extension associated with an executable application.
System.Diagnostics.Process.Start("c:\...\defrag.bat")
This code returns a Process object:
An overloaded Process.Start method takes a ProcessStartInfo parameter that let's you set process initialization values such as the WindowStyle.
You can also do all of this through the IDE by dragging a Process component unto your form from the Components area of the Toolbar.
Here is a good search start piont for more info http://www.google.com/search?complete=1&hl=en&q=system.diagnostics.process.start[^]
If you have knowledge, let others light their candles at it.
Margaret Fuller (1810 - 1850)
|
|
|
|
|
Dear sir/madam
I would like to write terminate stay resident program using visual basic 6.0 is that possible. If that is posible, could you pls guide on this. Is there any URL on "tutorial for writing TSR program using visual basic 6.0".
or any thing that helps me better.
Thank You
Have A Nice Day
Dev Prasad
|
|
|
|
|
Dev Prasad wrote: terminate stay resident
There's no such thing anymore. That was a term used for certain types of DOS applications.
What exactly are you trying to do? You might be looking at a windows service application, but VB6 can't create one of these without using other software and/or hacks to get it to work.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
hi there
I get a query engine error :\\pcname\...\temp....rpt
when i try to view my report does anyone know why and the schema is correct
thanks
-- modified at 9:21 Saturday 4th March, 2006
|
|
|
|
|
Hi ,
I am using VB.net.I earlier asked the question about selecting the concerned treenode when the combobox item is selected.I was replied to apply the recursion.
Now for selecting any node , we use
Treeview1.selectednode = Treeview1.node(0)
But how I will select the jhdb nodes programically and the following path is placed in combobox.
c:\abc\def\ghi\jhdb
Thank You
|
|
|
|
|
TreeView can only have a single Node selected at any one time. So, the code you posted is how you do it.
Are you asking how to get data from each child node and populate a combobox with that?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am using vb.net . I want to know programically whether the particular node is already expanded or not .
The e.node.expand() does not return any value.
|
|
|
|
|
It's IsExpanded that will return the status of the node. Expand will actually expand the node, not return its status.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|