C pictureBox cannot be added to Form1

Updated on Car 2024-02-08
16 answers
  1. Anonymous users2024-02-05

    string sqlstring = insert into table value;

    sqlcommand slqcom = new sqlcommand(sqlstring, database connection object);

    int i = ;

    sqlcon_;

    return i;

  2. Anonymous users2024-02-04

    The form doesn't seem to have a self-refreshing method, you can only overload the form

  3. Anonymous users2024-02-03

    Declare a static variable in form2 that holds the file path.

    Write in the click event of each picturebox.

    Assign a value to the static variable in form2, initialize the instance of the form2 object, and set the path to the picturebox in form2.

  4. Anonymous users2024-02-02

    private static form2 instance = null;

    public static form2 getinstance()return instance;

    form2 constructor Bi Bo Li Hand Yu Xiang initialization instance = this;

    public void setpicture(image image)

    image;

    The above generation of dismantling and punching codes are all in form2.

    form1 when you click on the picturebox;

  5. Anonymous users2024-02-01

    form2 defines the whole trace infiltration picturebox variable form1 picbox point pose naridge eggplant cherry strike event in form2The name of the global picbox variable. image=((picturebox)sender).

    image

  6. Anonymous users2024-01-31

    1.Set the modifiers property of picturebox1 in form2 to public

    2.Write ** in the form1 button event.

    form2 f2 = new form2();

    = true;

  7. Anonymous users2024-01-30

    There are many ways to implement this:

    Here's a kind for you:

    1.Define a class (e.g. backcolors) with a static variable (e.g. bcolor).

    2.After pressing the button in form1, let = backcolor of the picturebox widget in form1

    3.Add a timer to form2 to regularly refresh the backcolor=

  8. Anonymous users2024-01-29

    Select grades from Class Schedule COU, Student Information Form STU

    where and 'Someone's name' and 'Course name'

  9. Anonymous users2024-01-28

    Is this hard? Isn't it okay to set the relevant properties directly? Why do you find it so hard to do so?

  10. Anonymous users2024-01-27

    The tag property of the object created with form2 stores the information (path) of the selected **, and form1 obtains the ** information by calling the type, and then assigns the value to the **box

  11. Anonymous users2024-01-26

    Instancepicturebox1 got the ** in 2.

  12. Anonymous users2024-01-25

    In form1, button1 clicks

    form2 f2 = new form2();

    In form2, you add a field.

    private image img;

    public image img

    Button1 click;;

    That's it.

  13. Anonymous users2024-01-24

    It's easy to do with GDI+.

    graphics* g;

    graphicspath mygraphicspath(fillmodealternate);

    int offsetrx=m_ ;

    int offsetry=m_ .y ;

    rectf myrectangle(offsetrx,offsetry ,m_,m_ .y );

    myrectangle);

    matrix* mypathmatrix=new matrix();

    g-> above are partial **.

    Considering that you need to understand Wang and the internal process, so give you ideas.

    First, set up a coordinate system, get the value of each pixel, and then replace it according to your rotation method. Usually this is very slow and wastes memory. It depends on the algorithm skills.

    I've written a VB to get the RGB value of each pixel in the past, you can refer to it. Then replace the pixel values according to a certain pattern according to your coordinate system.

  14. Anonymous users2024-01-23

    First define a button in form1, the function of the button is to get the ** path of the picturebox in form1, and pass the obtained path to form2, and set the ** path of the picturebox of form2 in the onload event of form2! Here's the idea.

  15. Anonymous users2024-01-22

    Is there a function that is a private or protected modifier?

  16. Anonymous users2024-01-21

    Then you can launch a new instance separately, and you're good to go.

Related questions
15 answers2024-02-08

Did you install any program or did you restore the system? >>>More

11 answers2024-02-08

Set up the computer to be used in the local area network, and the relevant services can be restored. (Friendly reminder: Friends who have inadvertently turned off printer-related services can also use this method to restore the use of the printer);

3 answers2024-02-08

1. Dual memory is incompatible, memory quality problems replace memory modules. The memory and motherboard are not plugged in properly or other hardware is not compatible Reinsert the memory or change the socket . >>>More

2 answers2024-02-08

Legal analysis: The so-called inability to enforce refers to the situation where the person subject to enforcement really has no property to be enforced, or the property of the person subject to enforcement is objectively impossible to dispose of, and the case cannot be enforced even if the enforcing court exhausts all means. The failure to enforce such cases is not due to the failure of the people's courts to enforce the law, but to the loss of solvency of the person subject to enforcement. >>>More

6 answers2024-02-08

Whether the mobile phone has a signal (of course, you can't send text messages without a signal, check whether the SMS storage is full if there is a signal, and delete it when it is full). >>>More