Click here to Skip to main content
15,899,005 members
Home / Discussions / C#
   

C#

 
GeneralRe: string.remove doesn't work Pin
Ravenet16-Apr-08 15:53
Ravenet16-Apr-08 15:53 
GeneralRe: string.remove doesn't work Pin
Zoltan Balazs17-Apr-08 5:58
Zoltan Balazs17-Apr-08 5:58 
GeneralRe: string.remove doesn't work Pin
Ravenet17-Apr-08 15:30
Ravenet17-Apr-08 15:30 
GeneralRe: string.remove doesn't work Pin
joie717017-Apr-08 18:23
joie717017-Apr-08 18:23 
GeneralRe: string.remove doesn't work Pin
Ravenet17-Apr-08 20:11
Ravenet17-Apr-08 20:11 
GeneralRe: string.remove doesn't work Pin
Zoltan Balazs17-Apr-08 20:05
Zoltan Balazs17-Apr-08 20:05 
QuestionHow to get network computers hostname without importing dll's Pin
Jordanwb16-Apr-08 9:53
Jordanwb16-Apr-08 9:53 
GeneralReflecting form controls in inherited user controls Pin
Thomas Wells16-Apr-08 8:23
Thomas Wells16-Apr-08 8:23 
I want to enumerate all form controls on a user control that inherits from another user control (which also has controls on it). Here's some sample code. UserC in this sample is the user control which inherits from the base class user control.

int BindingFlags = Reflection.BindingFlags.Instance | Reflection.BindingFlags.Public | Reflection.BindingFlags.NonPublic;
foreach (System.Reflection.FieldInfo fi in UserC.GetType.GetFields(BindingFlags)) {
	object obj = fi.GetValue(UserC);
	if (obj != null)
	{
		try {
			obj.Name();
		}
		catch (Exception ex) {
		}
	}
}

This will list all the form controls on the UserC class designer but not the base class it inherits from. You can see them all when debugging. What gives?
QuestionMessageBox with a timer? Pin
Vertekal16-Apr-08 8:15
Vertekal16-Apr-08 8:15 
AnswerRe: MessageBox with a timer? Pin
Judah Gabriel Himango16-Apr-08 8:21
sponsorJudah Gabriel Himango16-Apr-08 8:21 
GeneralRe: MessageBox with a timer? Pin
Vertekal16-Apr-08 8:54
Vertekal16-Apr-08 8:54 
GeneralRe: MessageBox with a timer? Pin
Luc Pattyn16-Apr-08 8:36
sitebuilderLuc Pattyn16-Apr-08 8:36 
GeneralRe: MessageBox with a timer? Pin
Vertekal16-Apr-08 8:53
Vertekal16-Apr-08 8:53 
GeneralRe: MessageBox with a timer? Pin
Luc Pattyn16-Apr-08 9:00
sitebuilderLuc Pattyn16-Apr-08 9:00 
GeneralRe: MessageBox with a timer? Pin
Vertekal16-Apr-08 9:57
Vertekal16-Apr-08 9:57 
QuestionObject of type 'A' cannot be converted to type 'A' with own Control. Pin
Roland Bär16-Apr-08 7:33
Roland Bär16-Apr-08 7:33 
AnswerRe: Object of type 'A' cannot be converted to type 'A' with own Control. Pin
Judah Gabriel Himango16-Apr-08 8:19
sponsorJudah Gabriel Himango16-Apr-08 8:19 
GeneralRe: Object of type 'A' cannot be converted to type 'A' with own Control. Pin
Roland Bär20-Apr-08 23:31
Roland Bär20-Apr-08 23:31 
Generalsave data to application settings Pin
Razvan Dimescu16-Apr-08 5:38
Razvan Dimescu16-Apr-08 5:38 
GeneralRe: save data to application settings Pin
Alan N16-Apr-08 7:40
Alan N16-Apr-08 7:40 
Generalread write lock in C# Pin
George_George16-Apr-08 4:51
George_George16-Apr-08 4:51 
GeneralRe: read write lock in C# Pin
Zoltan Balazs16-Apr-08 9:07
Zoltan Balazs16-Apr-08 9:07 
GeneralRe: read write lock in C# Pin
George_George16-Apr-08 17:29
George_George16-Apr-08 17:29 
GeneralRe: read write lock in C# [modified] Pin
N a v a n e e t h16-Apr-08 18:21
N a v a n e e t h16-Apr-08 18:21 
GeneralRe: read write lock in C# Pin
Zoltan Balazs16-Apr-08 19:38
Zoltan Balazs16-Apr-08 19:38 

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.