C What is the control that needs to be saved as a file, and how to use it?

Updated on technology 2024-08-06
11 answers
  1. Anonymous users2024-02-15

    openfiledialog open = new openfiledialog();Create an open dialog box.

    true;Set whether to automatically add extensions to files.

    true;Check the files.

    File (****)|****|All files (*.)";Set the type to open to *** and any file.

    string a="";

    if ( == If the user clicks OK

  2. Anonymous users2024-02-14

    openfiledialog。

    To use it: create an object of the OpenFileDialog class. In **, the showdialog method can be used to open the selection file dialog, and the full path of the selection can be obtained by returning whether it is worth pressing the "Open" button or the "Cancel" button, and the filename property.

    If you want to filter the selected file types, just set the filter property.

    For example, get the contents of the selected txt file:

    openfiledialog dlgopenfile = new openfiledialog ;

    if( ok means "open" is pressed;

  3. Anonymous users2024-02-13

    Pull a button from the left, double-click the button to increase the click event, and write :

    openfiledialog ofd = new openfiledialog();

  4. Anonymous users2024-02-12

    openfiledialog open = new openfiledialog();Create an open dialog box.

    true;Set whether to automatically add extension = true in files; Check the files.

    File (****)|****|All files (*.)";Set the type to open to *** and any file.

    string a="";

    if ( == If the user clicks OK

  5. Anonymous users2024-02-11

    Create an image object. Give it the image of the picturebox. Save it again.

  6. Anonymous users2024-02-10

    Here's an example for you.

    Front desk Two textboxes, three buttons

    **int c = 0;

    private void button1_click_1(object sender, eventargs e)

    elseprivate void button2_click(object sender, eventargs e)

    private void button3_click(object sender, eventargs e)

    You try it, after button1 clicks, add the values of textbox1 and textbox2, and after getting it, click the corresponding button

    The pop-up box is displayed.

    I don't quite understand what the operator means by judging for himself. If he judges it himself, then the two buttons directly yes, on just click it himself.

    Tell us what you're trying to achieve.

    Find something similar.

  7. Anonymous users2024-02-09

    It is better to judge the values of and above, otherwise an error will be reported.

  8. Anonymous users2024-02-08

    Just put the dll in the same folder as your exe. Nothing else needs to be changed. Including ** aspects.

    Explanation: For example, if you use this external dll in d: and then change the computer. The new computer's D: It's definitely gone.

    The program will continue to look for d: below. Definitely can't find it. The program will then look for the default path. The default path is the path where the exe is located. Refer to it as soon as you find it. If you can't find it here, it's an error.

  9. Anonymous users2024-02-07

    Put the dll directly into the program directory to facilitate compilation and running on other computers.

  10. Anonymous users2024-02-06

    Just put the corresponding dll in the past.

  11. Anonymous users2024-02-05

    1.New Item - User Control.

    2.Drag the desired C control onto the user control and lay out 3Write the user control backend (for the C control dragged up before the operation)4Compile.

    5.This user control can then be dragged where you want to use it, just like a C control.

Related questions
7 answers2024-08-06

Women need an attitude.

What a woman wants is attitude, and with all her big emotions, she actually just wants to be cared for. But many times men can't see it, and the resentment is accumulated over time. She said that many times it seems to be very good to her, but what she says, she is not like other women, she wants whatever she wants, but men can't listen to it and don't care at all. >>>More

6 answers2024-08-06

What program do you need? What is the concept of small?

3 answers2024-08-06

ti: One is like summer and one is like autumn] [ar: Fan Weiqi] [al: our anniversary] [by: (Love Lyrics) >>>More

15 answers2024-08-06

When a man said that a woman was depressed and unhappy, he meant that the woman was a little unhappy, and whether it was affected by something that made him think. Let comfort him.

8 answers2024-08-06

Liang Xiaosheng is a very good person.

Liang Xiaosheng, formerly known as Liang Shaosheng. Famous contemporary writer. Born on September 22, 1949 in Harbin City, his ancestral home is in the hot spring village of Boyu Town, Rongcheng City, Shandong. >>>More