Click here to Skip to main content
15,878,809 members
Home / Discussions / C#
   

C#

 
AnswerRe: Cannot Access the form _ Cross-thread operation Pin
Jibesh19-Jan-13 21:29
professionalJibesh19-Jan-13 21:29 
AnswerRe: Cannot Access the form _ Cross-thread operation Pin
pt140120-Jan-13 22:13
pt140120-Jan-13 22:13 
GeneralRe: Cannot Access the form _ Cross-thread operation Pin
mohammadkaab21-Jan-13 20:26
mohammadkaab21-Jan-13 20:26 
Questionwcf p2p file transfering over internet Pin
vab26108519-Jan-13 2:03
vab26108519-Jan-13 2:03 
QuestionWorking with tab escape charecter Pin
Mc_Topaz19-Jan-13 1:49
Mc_Topaz19-Jan-13 1:49 
AnswerRe: Working with tab escape charecter Pin
Abhinav S19-Jan-13 2:38
Abhinav S19-Jan-13 2:38 
GeneralRe: Working with tab escape charecter Pin
Mc_Topaz19-Jan-13 3:22
Mc_Topaz19-Jan-13 3:22 
QuestionDesign-Time Error in the Windows Forms Designer Pin
_Q12_18-Jan-13 4:25
_Q12_18-Jan-13 4:25 
I have 1 Usercontrol. In it I load an image from code. But when I go to Form1 and put this control into form, I get an error that he can not find the image, but the image is there, and the root is correct from code. When I run the application, is working fine, loading the correct image. What setting I miss?
Thanks and here is the code:
C#
public partial class Equipment : UserControl
{
    public Equipment(){InitializeComponent();}
    string path = Application.StartupPath;
    PictureBox pictureBox3429= new PictureBox();

    public void Equipment_Load(object sender, EventArgs e)
    {
        panel1.BackgroundImage = Image.FromFile(path + "\\unit.jpg");
        try
        {
            //second variant, same problem:
            //pictureBox3429.Load(path + "\\mechhero.com\\unit.jpg");
            //panel1.BackgroundImage = pictureBox3429.Image;
        }
        catch (Exception) { throw; }
    }
}


modified 18-Jan-13 10:34am.

AnswerRe: Design-Time Error in the Windows Forms Designer Pin
Eddy Vluggen18-Jan-13 5:02
professionalEddy Vluggen18-Jan-13 5:02 
AnswerRe: Design-Time Error in the Windows Forms Designer Pin
Alan N18-Jan-13 5:42
Alan N18-Jan-13 5:42 
QuestionParalel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 0:51
George Nistor18-Jan-13 0:51 
AnswerRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 4:20
mveDave Kreskowiak18-Jan-13 4:20 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 4:41
George Nistor18-Jan-13 4:41 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 6:25
mveDave Kreskowiak18-Jan-13 6:25 
AnswerRe: Paralel QuickSort with 2 threads running at the same spped Pin
Alan Balkany18-Jan-13 5:12
Alan Balkany18-Jan-13 5:12 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 5:31
George Nistor18-Jan-13 5:31 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 6:26
mveDave Kreskowiak18-Jan-13 6:26 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 6:53
George Nistor18-Jan-13 6:53 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 7:31
mveDave Kreskowiak18-Jan-13 7:31 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 7:38
George Nistor18-Jan-13 7:38 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 22:49
George Nistor18-Jan-13 22:49 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak19-Jan-13 3:27
mveDave Kreskowiak19-Jan-13 3:27 
QuestionDataSet to Dictionary Join? Pin
RickSharp17-Jan-13 12:25
RickSharp17-Jan-13 12:25 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 12:34
mvePIEBALDconsult17-Jan-13 12:34 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 12:51
RickSharp17-Jan-13 12:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.