|
I don't get why people still use VB6.....
In that case, this[^] is an article on rubber banding in C++, using different ROP codes. Basically, you select a code that is not destructive, then you draw your rectangle, and you draw it again to restore the old values before drawing a new rectangle elsewhere.
Or you could do the other thing I suggested, which is to Invalidate the desktop window, and force it to redraw.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hi,
I think I want to use a DataGrid on a form! What I want to do is have all data in grid "Readonly" and have a link button to open a separate form with all of the data from the selected row for editing: the form will open with the ID of the row from the DataGrid and the edit etc. is done here.
THis is much the same way as I use the asp.net DataGrid. Should I be using a different control or can the DataGrid be changed to do this?
Thanks in advance.
Declan.
|
|
|
|
|
a datagrid allow you to get the selected row (CurrentRowIndex() ) and to get each cell on that row (i don't remember the function name, but it might be something like CurrentCell() ).
then, you recover each cell you like, and pass them to the form that is supposed to treat'em
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
How would i get a list of all Active Computers on a network? All I need are
the computer names. Method that i am currently using lists all
computers even if they're not currently connected to the network.
Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://CORP")
Dim mySearcher As DirectorySearcher = New DirectorySearcher(enTry)
Dim resEnt As SearchResult
mySearcher.Filter = ("(objectClass=computer)")
TotalNodesLabel.Text = "Total computers: " + mySearcher.FindAll.Count.ToString
For Each resEnt In mySearcher.FindAll()
If IsNothing(resEnt) = False Then
ListOfNodesListBox.Items.Add(resEnt.GetDirectoryEntry().Name.ToString())
End If
Next
I was hoping to get a list of active computers, this method lists all
computers even if they're not currently connected to the network.
Thanks
Sumit Domyan
|
|
|
|
|
You'll probably have to go down the list your getting and ping them all to determine which ones are live and which are not.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi All,
I want to restrict the user to type only 4 characters in the combo box
i have specified in the property max length=4
But its not working
How to do so
Thanks in Advance
|
|
|
|
|
If (myComboBox.Text.Length() >= 4) Then
myComboBox.Text = myComboBox.Text.Left(4);
End If
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Plz send the details about m_myComboBox
Is it some user defined function
|
|
|
|
|
sorry, i just made a copy/paste from a sample of a code of mine...
<br />
m_myComboBox is the same as myComboBox ...
just remove its leading m_
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Sorry,but i am not getting any such property as combobox1.text.left(4)
Left property after text is not coming
|
|
|
|
|
it was in the idea...
do this :
If (myComboBox.Text.Length() >= 4) Then
myComboBox.Text = Left(myComboBox.Text, 4);
End If
is that ok now ?
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
No,Left() is not taking any parameter
|
|
|
|
|
No,But Left() is not taking any parameter
|
|
|
|
|
Anonymous wrote:
No,But Left() is not taking any parameter
sure it does. but it is into the Microsoft.VisualBasic Namespace (assuming you're working on VB.NET).
MSDN tells
Public Shared Function Left( _
ByVal Str As String, _
ByVal Length As Integer _
) As String
is this[^] satisfy you better now ??
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Private Sub Combo1_KeyPress(KeyAscii As Integer)
'check for backspace
If KeyAscii = 8 Then
Exit Sub
End If
If Len(Combo1.Text) > 3 Then
KeyAscii = 0
End If
End Sub
<italic>Work hard, Work effectively.
|
|
|
|
|
hai in vb.net it is working check once again
i check now
by
bodanampalli@yahoo.com
|
|
|
|
|
in Property of ComboBox - MaxLength set value 4
then write code which the user try to write more then 4 letter
example:
If ComboBox1.Text > 4 Then
MessageBox("enter only 4 letters")
End If
|
|
|
|
|
seferi wrote:
If ComboBox1.Text > 4 Then
MessageBox("enter only 4 letters")
End If
you shouldn't "spam" the user screen with such a message...
or i didn't like to use your softs...
(hey, i'm joking )
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
That is just my opinon to explain ur probem.....
|
|
|
|
|
hi friends i am doing a project which needs ms word to be opened within the form and custum pics to be displayed on the right side according to the locstion of the cursor inside the word window.I managed to add ms word to the form using dsoframer.ocx but it does not include any mouse events.so is there a way to get the cursor position...?
|
|
|
|
|
Hi,
We are developing a Windows Explorer type application in VB.Net. We are using a TreeView Control and C1FlexGrid (Component One Flex Grid for VB.Net).
We want to provide the Drag and Drop functionallity from C1FlexGrid to TreeView.
The problem is that we are not able to drag multiple non-continuous rows from C1FlexGrid to TreeView. User can use CTRL key to select multiple non-continuous rows.
regards,
Deepak Kamboj
|
|
|
|
|
Your best bet would be to ask Component One about this. Since there are thousands of libraries and components around, we can't possibly support them.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I wonder if anyone can help me.
In VB6, when you ran a project and put a break point in, you could pause (break) the code and do some tests, even input new values. In .Net I cannot get this working. I have to end the project.
Also when you put a bookmark on the code, I cannot get this working. What I mean is if I put a bookmark in one module and another one in a say a form, it does not go to the next bookmark. I have to open the form or module then do the process.
Any ideas what I am doing wrong.
|
|
|
|
|
Well for changing values you can select the variable which you need to change the value during testing and press Ctrl + ALT + Q
now here nto only you can see the current value but also you can change the value in the grid and value is changed for testing purpose.
and be sure that you are in debug mode not in release mode while testing the application.
|
|
|
|
|
in my windows form there is one textbox and one button and i attach same method with button for click event
and mouse eneter event for textbox. now i want to know when the method will be clicked then how could i
detect reason of firing the method of what type of event.means i want to detect the event type in method
tbhattacharjee
|
|
|
|