User To Insert A Comment In The Shape Of A String?
May 14, 2012
i want to create a listbox in which a user introduces a name (Ex Item1) I also want to user to insert a comment in the shape of a string ( Ex. Item1 was added yesterday) and link it somehow to his Item1.
Once the program starts the user should be able to insert an item in the listbox with a comment; and once he selects the item i want a MsgBox appearing with the comment of the specific Item, that he also inserted.
Think something like a book library using a listbox.You go and browse books in a listbox and once you click on them they display on the right the cover of the book, the authors, date, ratings etc.I just need to know how to link a ListBoxItem to do something, and i want the Library administrator to do it in runtime.The MsgBox example should do it for me.
I am looking for some simple help, excel has this command built in but I am trying to recreate it within a Windows form application. One of the shapes available in excel is a process flowchart square......I would like to create an interface for users to be able to insert a flow chart by drawing some basic shapes. what is the VB code to activate the insert shape command but not actually draw the shape, just allow the user to draw it. I know this may not make sense but if I need to try and describe it again let me know.
I need some help to create a regular expression. It is a little like a search and replace, I want to replace any string that contains parentheses with a fixed editorial comment in brackets."The Prime Minister (that idiot from Scotland) made a speech today" with "The Prime Minister [edited for abuse] made a speech today".
I have a custom cursor for the user to allow them to position text in PDF files. For the most part there never seems to be a problem, but a choice few people are seeing massive problems with this.
One particular client loads the program, and then loads a PDF document into it. Once the program has loaded when the user clicks he either doesn't get a custom cursor or the signiture blank that is to show up is above the frame that is to surround the blank.
The user is using Windows XP on a laptop and the software re-renders the cursor and box every time. There is a signiture tablet that the user buys to connect to this software, and the user also has expressed problems with the Tablet not staying connected.
I can provide pictures of the changes and code if anyone would like to tackle this?
I'm making an application where a user draws a shape on a picture box( this will be saved on a bitmap image), then another user has to draw on that shape (=follow it ) . if the 2nd user goes too far from the line then an error message will appear.
for example( in case i couldn't clarify this well!)the 1st user draws a a vertical line, the 2nd user has to follow it, if-while drawing on it- he gets too far horizontally, there would be the error.
I'm currently thinking of comparing every point by the 2nd user to its equivalent in an array containing the points by the first user.
I'm using e.graphics in the Me.Paint event to draw a string in the form. There is a rectangle shape with gradient in the form, and the string is supposed to be drawn on top of the rectangle shape. However, when I run the program, the string is drawn under the rectangle shape, and is therefore invisible... How do I fix this?
Problem: Your task is to take input from the user in string and give the following options to the user in a menu.
1- Find a String 2- Create sub-string 3- Erase a portion of a sting 4- Replace a word in the string 5- Count number of words and characters in the string without spaces. 6- Capitalize first character of each new sentence and convert the rest of the characters to lower case. 7- Sort all the words in alphabetical order. (Use Bubble sort algorithm to perform sorting).
To perform all the above mentioned tasks you can only use pointers. Create a function to perform every task.
I have a datagridview and, I know I am a bit weird, but when believe it or not, when a user enters a new row I want to insert that row in the database. And even weirder, when a user changes a row in my datagridview I want to update (imagine that) the database.
I found something weird in VB2010 a few minutes ago. The problem is making a variable called "rem". I searched on Google and found that "REM" is a comment, similar to single apostrophe '. Why is this the current behavior? Why not stick to ' only? Sincerely yours,
I'm making a program similar to a wordpad or whatever, but i'm having issues making the user inputs insert at the cursor position instead of at the end.. I'm running DevStudio 5 btw.
Is there a way to include a person's logged in user name in an insert statement? Like, how could I detect which user is signed in, and then insert that username into my table in my database?
there are two computer connect to one shared database one of the user (user1) will insert new record then the records in (datagridview) of the user (user1) who insert the record will be 11 record but the(datagridview) of other user (user2) will still have 10 record.what the possible way that may allow me to refresh the records..Also how I can make a new record in datagridview of the user2 can be colored by yellow or red back color.
I created a sql stored procedure that will insert data for me depending on user input. Now I would like to know usually I would do something of this nature
Dim con As New SqlConnection(connectionString) Dim cmd As New SqlCommand("usp_userinput", con) 'references connectionstring and calls store procedure cmd.CommandType = Data.CommandType.StoredProcedure 'sets default to be storeprocedure lblMessage.Text = String.Empty With cmd.Parameters If (Session("UserInitials")) IsNot Nothing Then .AddWithValue("@UserInitials", Session("UserInitials").ToString()) End If End With
That is just an example how i usually approach calling the stored procedure in vb. However for this particular form I am going to have 50 or 60 textboxes which each one would require a session state variable.Seems a little tedious to have to create a session state variable for each textbox on the form.
If we need to comment more than one line we'll use the following syntax in C#.NET.
/* this.comboBox1 = new System.Windows.Forms.ComboBox(); this.button1 = new System.Windows.Forms.Button(); this.dataGridView1 = new System.Windows.Forms.DataGridView(); this.textBox1 = new System.Windows.Forms.TextBox();
I'm having trouble inserting a string into another string. I need it to find the character "{" then place a set of strings on the next line. I have this (No error, just doesn't work)
vb.net Dim L As Integer L = AppM.ToString.IndexOf("{") Debug.Print(L) AppM.Insert(L, _..") FrmCode.RTB3.Text = AppM