Good suggestion.
I've got this working in another part of the program. I just noticed that THAT text is even wider, but doesn't have the issue. There's got to be a difference.
Once I discover the difference, I'll post back so others can learn from my stupidity! :)
Thanks, JohnH.
I'm having an issue with the size of the drag and drop 'text cursor' on my application.
The code is very similar to this reference
Microsoft Visual C#: Listboxes - drag drop & reorder ,Microsoft Visual C#. - msdn.itags.org
Looking at the drawcursor sub,
Sub drawcursor(ByVal text As String...
Ok...found the answer.
Thanks for the feedback. It led me in the right direction.
The code I modified was from here.
Public Class ToolStripTextBoxWithLabel
Inherits ToolStripControlHost
Public Sub New(Optional ByVal lblText As String = "label")
MyBase.New(New...
Sorry...wrong terminology on my part.
Is there a way to do this within a MenuStrip?
I don't see the option of adding a label. I'd like to have a menu item with a label followed by a textbox (on the same line).
Thanks.
Ok...I didn't explain myself very well (...and I couldn't find the MsgHook reference that I was looking for before)
JohnH - the code you're proposing conditionally allows the user to edit the node text based on the text's content ("sBK01" in this case). This isn't what I'm after.
If the text...
I have an application where I'm allowing a user to edit the text of a treeview.
If the text of node is 'sBK01 (1732DS-IB8 (8 In))'
I'd like the text in the "editable" state to start as 'sBK01'.
I've found a couple of references on how to do this with MsgHook, but I can't seem to find...
Since this post has had several looks and no solution....
One thought that comes to mind is the following:
Instead of allowing the user to edit the actual tree view node's text, display two textboxes on top of the treeview node's text.
The first would have the "protected" text in it ("BK" from...
I have an application where I'm allowing the user to edit the text of a treeview node. Is it possible to "lock" portions of the node's text to keep it from being edited?
For instance, if the text is "BK01" originally, can I keep the user from editing the "BK" prefix?
I currently validate the...
Thanks for the help, JohnH.
Not sure why it was having issues before, but your code worked fine.
I did change the .KeyUp to .KeyDown to make it operate the same way that Excel does.
Again, thanks!
I'm sure this is simple, but I can't seem to find a reference for this specific situation.
I'm using a datagridview that I'd like to have the user be able to select multiple cells within a row and then allow them to press <Delete> to delete the values within the cells.
I can't seem to capture...
I could if there isn't another way.
I was kind of hoping for a "you just do X, Y, and Z" and that would solve the problem. Sounds like it isn't possible for that datatype.
The reason for using XCData (and XElement and XAttribute [not shown]) is that the data is originally populated with XML...
Some background:
I'm creating an application that uses several "multi-leveled" structures (structures within structures within structures....) to store reference data.
<Serializable()> Public Structure ControllerType
Public Attributes As ControllerAttributeType
Public...
Thanks for the quick reply, JohnH.
As soon as I saw your reply, it all was obvious!
Another alternative for the Structure objects to at least make the code look a little cleaner would have been the With / End With.
Thanks, again.
It is possible to alias variables in VB.NET?
Let me give you an example.
s = std_GCCS.Modules(NodeNum).Communications.ConfigTag.Data
s.Format = "test data"
s.xStructure.DataType = "test data"
s.xStructure.ArrayMember.Name = "test data"
Now to get the data back into...
I am truly an idiot.
I guess the reason that I couldn't find a reference to the problem anywhere is because no one else forgot that little gem of information.
Thanks!
Hopefully a dumb question, but I can't find a reference to it (or even acknowledgment anywhere online that it is an issue)...
I'm trapping the MouseUp event on a DataGridView. It works great as long as I click on an "unused" portion of the DGV. If I click on a cell, the event does not...
As a continuation to this post...
http://www.vbdotnetforums.com/winforms-grids/33755-datagridview-cell-location-problem.html
[...and thank you for your assistance!]
I'm trying to use implement an ellipse button within a DataGridView to trigger a more detailed popup menu. This would be similar...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.