-
Write in the mouseover event and mouseout event, and clear the word in the text box when there is focus.
-
Move into the input box to disappear the text, and leave the input box to display the text again.
-
Directly set the text attribute of the label, and put the text to be displayed in the text attribute, for example.
Please enter the text you want to display";label is your widget ID
-
string word1="(The word you want to show)."
int i = 0 ;
private void button1_click(object sender, eventargs e)
else if ( == "Get started")
private void timer1_tick(object sender, eventargs e)
private void form1_load(object sender, eventargs e)
-
This kind of effect, flash is the best, why not use the convenient method!
-
Write ** in the paint event of the window, you need to maintain the coordinates yourself (output here in the upper left corner), the parameter brush randomly selects, you can choose according to your needs.
private void form1_paint(object sender, painteventargs e)
-
Drag a label control onto the form, then.
-
Dynamically create a label assignment.
label lbl=new label();
new point(x,y);x is the abscissa and y ordinate, and the value is assigned by itself"Assignment";;
-
"Han";It is to convert the property text content of textbox1 to"Han"
-
Not sure what effect you want. If in the program, there is no indication of the text to be displayed, then you want to make something out of nothing, and there is definitely no way.
-
What text prompt are you going to display, is it a pop-up prompt? Or a form of lable text prompts
-
Combined with the second floor.
Add a timer control.
private void timer1_tick(object sender, eventargs e)
Add a start scrolling button.
private void button1_click(object sender, eventargs e)
Stop scrolling button.
private void button2_click(object sender, eventargs e)
You can also directly modify the properties of the timer, instead of facing the two buttons
-
Use the timer to add white space in front of or after the string, and repeat the loop.
-
Add a timer, and then set the state you want to play in the timer event.
-
Isn't it possible to read the format with file streaming, as for richtextbox, isn't it possible to set a scrollbar, if you just want to pull richtextbox high, you can judge the number of lines or words of the text read, and then dynamically set the height of richtextbox.
-
Follow-up: It's not to be read, just read the RTF attribute of the richtextbox control and it will come out, string. Because the user is entering text in the richtextbox control, of course he can also set the font, color, size, etc.
Now the point is not knowing how to show it. With RichTextBox, it's hard to calculate the height because the fonts aren't all the same, and the scrollbar height can only be obtained using the API, which doesn't have such a property and can be used directly. It's best not to use richtextbox, no matter what method you use, as long as you can display the formatted text entered by the user Answer:
Looks like you're going to make a rich text generator like that? I'll send you an example for you to see. There is a simpler example that cannot be found.
Please leave an email to follow-up: No, the rich text maker is easy to do, I've done it all. This is an examination system, we allow the teacher to change the font, color, and size of the question when the question is made, and now the key is how to show the format to the students as it is, provided that the content of the question must be displayed, and the format should be the same as the teacher set at the time, of course, we can not appear scroll bars when displaying, and we must not answer:
What is the model of your system? cs?bs?。
Programming is also a technical job, especially when writing efficient programs, how can you learn it in three or five days. >>>More
If you just make a separate app (instead of engaging in the secondary development of the framework), qt can barely make up the number. Although it is not pure C++ (relying on MOC QML), the overall tools (build tools, designers, IDE integration including VS) are relatively high, and they also support multiple mainstream platforms (Windows, Linux, OS X, etc.), with relaxed license requirements (LGPL), optional commercial support, and relatively low risk for individual APP projects. Although the binary size that needs to be released is still on the large side, it is easier to do than the mainstream web and. >>>More
1 First of all, click [File] and select [New] to select [C++ Source File] in the file, enter the [File Name] to be created, and select the location of the file to be saved] is [browsing] Knowledge: The shortcut key for [New Deslag Removal File] is [Ctrl+N] 2 Next, you can [write a program] in the newly created file After the writing is completed, click [Compile [File Name]] in [Component (B)] Tips: The file name is as shown in the following figure [Nazhen quietly has a small asterisk, indicating that there is an unsaved part in the file, so at this time, you can press the shortcut key [Ctrl+S] to save the file.
The double buffer on the Internet refers to the program of the graphic mode,You are in character mode,If you want to brush fast,Not with double buffer,But to write the screen directly。
Method steps.
Open VS2012 - File - New - Project. >>>More