How i connect textbox and line so it line expand when dragging textbox?
by JohnSmith » Sun, 29 Apr 2007 12:49:43 GMT
I remember doing this in the past, but forgot, how can i group/connect two
textboxes or other objects with line so when i dragging one of text boxes,
line is still connected to it and it dinamically expands?
Or at least how i do it with one text box and line.
How i connect textbox and line so it line expand when dragging textbox?
by JohnSmith56542 » Sun, 29 Apr 2007 12:54:41 GMT
I remember doing this in the past, but forgot, how can i group/connect two
textboxes or other objects with line so when i dragging one of text boxes,
line is still connected to it and it dinamically expands?
Or at least how i do it with one text box and line.
Re: How i connect textbox and line so it line expand when dragging textbox?
by JohnSmith56542 » Sun, 29 Apr 2007 12:56:51 GMT
Sry for doubleposts, i wasnt using newsgroups for while, could not make it
work at first...
Similar Threads:
1.How group textboxes and line and make line expand when dragging?
Hi John,
You can use the connectors in Word when the drawings/textboxes/shapes are within a MS Office Drawing canvas frame.
In Word 2002 and 2003 you can create a Drawing Canvas from
Insert=>Picture=>New Drawing
In Word 2007
Insert=>Shapes=>New Drawing Canvas
The drawing canvas size is limited to a single page in Word.
==============
<<"JohnSmith" < XXXX@XXXXX.COM > wrote in message news: XXXX@XXXXX.COM ...
I remember doing this in the past, but forgot, how can i group/connect two
textboxes or other objects with line so when i dragging one of text boxes,
line is still connected to it and it dinamically expands?
Now i <<
--
Bob Buckland ?:-)
MS Office System Products MVP
*Courtesy is not expensive and can pay big dividends*
2.Print all lines of a scrollable multi-line textbox
3.TextBox WordWrap and Lines Property
Hi All,
I mistakenly just posted this to the VB group. Sorry for the
cross-post.
I am working with a textbox in C# which pulls a set of lines (stored in
the database as text_type, text_line_seq, text_desc). I am using three
text boxes to display previously entered text for selected users
(surgeons) to edit. Each type of line has a specific maximum length
(55,56, and 74 characters). The textbox must allow the users to format
their text (see EXAMPLE TEXT below) pretty much with just spacing.
I have the textbox properties set to multiline edit and I am appending
"\r\n" to each line as I pull it from the database and put it in the
textbox.
My problem is when a user typically adds a substantial amount of text
wordwrap will push "\r\n" down to the next line. When saving back to
the database I am using a foreach(string Line in Lines) to save the
data and the result is that the line runs over the maximum length
allowed for the line.
Ideally, I simply would like to insert Environment.Newline wherever
there is a wordwrap. I have been trying to use EM_FMTLINES (see
EM_FORMATLINES EXAMPLE) , but it has not worked so far. I am not
sure where I should call the method (SendMessage) and exactly whether
this will result in what I require.
I keep telling myself I must be making this more difficult than it
needs to be, but the solution has not appeared obvious so far.
Thanks for any suggestions.
Mike
EM_FORMATLINES EXAMPLE:
public static extern int SendMessage(IntPtr hWnd,int Msg,int
wParam,int lParam);
public const int EM_FMTLINES = 200;
SendMessage(tbxDiagnosis.Handle, EM_FMTLINES, 0, new IntPtr(0));
EXAMPLE TEXT:
NOTE: This procedure was done at the Hospital, in conjunction
with the Otolaryngology Service and Plastic Surgery. This patient is
having a free jejunal graft for replacement of his cervical esophagus,
and
the other parts of the procedure were performed by Dr. X and Dr.
Y.
ANESTHESIA: General endotracheal
ESTIMATED BLOOD LOSS: Less than 20 cc
DESCRIPTION OF PROCEDURE: Under satisfactory general anesthesia, after