Click here to Skip to main content
11,428,281 members (60,982 online)
   

C#

 
Questioncollections generic with wcf Pin
yonim12319-Jan-13 13:33
memberyonim12319-Jan-13 13:33 
AnswerRe: collections generic with wcf Pin
SledgeHammer0119-Jan-13 14:03
memberSledgeHammer0119-Jan-13 14:03 
GeneralRe: collections generic with wcf Pin
yonim12319-Jan-13 14:20
memberyonim12319-Jan-13 14:20 
QuestionCannot Access the form _ Cross-thread operation Pin
mohammadkaab19-Jan-13 10:50
membermohammadkaab19-Jan-13 10:50 
AnswerRe: Cannot Access the form _ Cross-thread operation Pin
jibesh19-Jan-13 22:29
memberjibesh19-Jan-13 22:29 
AnswerRe: Cannot Access the form _ Cross-thread operation Pin
pt140120-Jan-13 23:13
memberpt140120-Jan-13 23:13 
GeneralRe: Cannot Access the form _ Cross-thread operation Pin
mohammadkaab21-Jan-13 21:26
membermohammadkaab21-Jan-13 21:26 
Questionwcf p2p file transfering over internet Pin
vab26108519-Jan-13 3:03
membervab26108519-Jan-13 3:03 
QuestionWorking with tab escape charecter Pin
Mc_Topaz19-Jan-13 2:49
memberMc_Topaz19-Jan-13 2:49 
AnswerRe: Working with tab escape charecter Pin
Abhinav S19-Jan-13 3:38
mvpAbhinav S19-Jan-13 3:38 
GeneralRe: Working with tab escape charecter Pin
Mc_Topaz19-Jan-13 4:22
memberMc_Topaz19-Jan-13 4:22 
QuestionDesign-Time Error in the Windows Forms Designer [modified] Pin
_q12_18-Jan-13 5:25
member_q12_18-Jan-13 5:25 
AnswerRe: Design-Time Error in the Windows Forms Designer Pin
Eddy Vluggen18-Jan-13 6:02
mvpEddy Vluggen18-Jan-13 6:02 
AnswerRe: Design-Time Error in the Windows Forms Designer Pin
Alan N18-Jan-13 6:42
memberAlan N18-Jan-13 6:42 
It's because the StartupPath is not what you think it is. Testing this on my system causes the designer view of the form to show an error message in HTML, helpfully rendered as one very long line. Carefully scrolling through it reveals that it looking for the image
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\pic.jpg

In a simplified test I place the image directly onto an otherwise empty user control. I thought that the correct thing to do would be to stop the designer attempting to load the image like this:
public partial class ImageControl : UserControl {
  String path;
  public ImageControl() {
    InitializeComponent();
    path = Application.StartupPath;
  }
 
  private void ImageControl_Load(object sender, EventArgs e) {
    if (!DesignMode) {
      BackgroundImage = Bitmap.FromFile(Path.Combine(path, "pic.jpg"));
    }
  }
}

Job done you might think, but no, as this allows the form to render properly with the image displayed. So what is going on? Actually I don't know, but the only reasonable explanation is that the designer loads the form more than once, in DesignMode where the path is incorrect and at least once more, not in DesignMode, where the path is correct.
QuestionParalel QuickSort with 2 threads running at the same spped [modified] Pin
George Nistor18-Jan-13 1:51
memberGeorge Nistor18-Jan-13 1:51 
AnswerRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 5:20
mvpDave Kreskowiak18-Jan-13 5:20 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped [modified] Pin
George Nistor18-Jan-13 5:41
memberGeorge Nistor18-Jan-13 5:41 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 7:25
mvpDave Kreskowiak18-Jan-13 7:25 
AnswerRe: Paralel QuickSort with 2 threads running at the same spped Pin
Alan Balkany18-Jan-13 6:12
memberAlan Balkany18-Jan-13 6:12 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 6:31
memberGeorge Nistor18-Jan-13 6:31 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 7:26
mvpDave Kreskowiak18-Jan-13 7:26 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 7:53
memberGeorge Nistor18-Jan-13 7:53 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak18-Jan-13 8:31
mvpDave Kreskowiak18-Jan-13 8:31 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped [modified] Pin
George Nistor18-Jan-13 8:38
memberGeorge Nistor18-Jan-13 8:38 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 23:49
memberGeorge Nistor18-Jan-13 23:49 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak19-Jan-13 4:27
mvpDave Kreskowiak19-Jan-13 4:27 
QuestionDataSet to Dictionary Join? Pin
RickSharp17-Jan-13 13:25
memberRickSharp17-Jan-13 13:25 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 13:34
memberPIEBALDconsult17-Jan-13 13:34 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 13:51
memberRickSharp17-Jan-13 13:51 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 14:03
memberPIEBALDconsult17-Jan-13 14:03 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 14:13
memberRickSharp17-Jan-13 14:13 
AnswerRe: DataSet to Dictionary Join? Pin
HuorSwords17-Jan-13 22:18
memberHuorSwords17-Jan-13 22:18 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp18-Jan-13 8:02
memberRickSharp18-Jan-13 8:02 
QuestionLinking files to a project Pin
TheGermoz17-Jan-13 9:43
memberTheGermoz17-Jan-13 9:43 
GeneralRe: Linking files to a project Pin
PIEBALDconsult17-Jan-13 10:12
memberPIEBALDconsult17-Jan-13 10:12 
GeneralRe: Linking files to a project Pin
TheGermoz17-Jan-13 10:44
memberTheGermoz17-Jan-13 10:44 
QuestionError : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 7:37
membermohammadkaab17-Jan-13 7:37 
AnswerRe: Error : System.DllNotFoundExpection Pin
jibesh17-Jan-13 8:14
memberjibesh17-Jan-13 8:14 
GeneralRe: Error : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 8:48
membermohammadkaab17-Jan-13 8:48 
GeneralRe: Error : System.DllNotFoundExpection Pin
jibesh17-Jan-13 8:53
memberjibesh17-Jan-13 8:53 
Questioncalling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 5:14
memberHector Ubiera17-Jan-13 5:14 
AnswerRe: calling a C# function with jquery ajax Pin
Pete O'Hanlon17-Jan-13 7:30
protectorPete O'Hanlon17-Jan-13 7:30 
GeneralRe: calling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 9:05
memberHector Ubiera17-Jan-13 9:05 
QuestionStatic & Dynamic Polymorphism : distinguished in C# Pin
Member 883921917-Jan-13 4:29
memberMember 883921917-Jan-13 4:29 
AnswerRe: Static & Dynamic Polymorphism : distinguished in C# Pin
Pete O'Hanlon17-Jan-13 4:46
protectorPete O'Hanlon17-Jan-13 4:46 
QuestionComposition implementation in C# Pin
Member 883921917-Jan-13 4:23
memberMember 883921917-Jan-13 4:23 
QuestionRe: Composition implementation in C# Pin
Eddy Vluggen17-Jan-13 4:30
mvpEddy Vluggen17-Jan-13 4:30 
QuestionImplementation of Encapsulation & inheritance in c# Pin
Member 883921917-Jan-13 3:55
memberMember 883921917-Jan-13 3:55 
AnswerRe: Implementation of Encapsulation & inheritance in c# Pin
Pete O'Hanlon17-Jan-13 4:02
protectorPete O'Hanlon17-Jan-13 4:02 
Questionhow to send sms in windows application? Pin
kiran murkal17-Jan-13 0:57
memberkiran murkal17-Jan-13 0:57 

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

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


Advertise | Privacy | Mobile
Web04 | 2.8.150428.2 | Last Updated 3 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid