Click here to Skip to main content
16,016,477 members
Home / Discussions / C#
   

C#

 
AnswerRe: FTP and Telnet client class in C# Pin
sudreshan_116-Jul-09 1:08
sudreshan_116-Jul-09 1:08 
QuestionUSB port programming?? Pin
EdgarBM9-Jun-04 1:26
EdgarBM9-Jun-04 1:26 
AnswerRe: USB port programming?? Pin
Heath Stewart9-Jun-04 2:44
protectorHeath Stewart9-Jun-04 2:44 
GeneralA ListBox problem Pin
chenshch9-Jun-04 1:26
chenshch9-Jun-04 1:26 
GeneralRe: A ListBox problem Pin
Heath Stewart9-Jun-04 2:40
protectorHeath Stewart9-Jun-04 2:40 
GeneralMaking Automated Ebay Signin and Bidding program... Pin
geopass8-Jun-04 23:53
geopass8-Jun-04 23:53 
GeneralRe: Making Automated Ebay Signin and Bidding program... Pin
Colin Angus Mackay9-Jun-04 1:41
Colin Angus Mackay9-Jun-04 1:41 
Questionwhy MyUITypeEditor doesn't work in runtime at some case ? Pin
pig12348-Jun-04 23:47
pig12348-Jun-04 23:47 
Hi,
1. I Designed MyEditor inherited UITypeEditor
public class MyEditor: System.Drawing.Design.UITypeEditor
{
private IWindowsFormsEditorService edSvc = null;
public override object EditValue(ITypeDescriptorContext context,
IServiceProvider provider, object value)
{
if (context != null&& context.Instance != null
&& provider != null)
{
edSvc = (IWindowsFormsEditorService)provider.GetService(typeof
(IWindowsFormsEditorService));
if (edSvc != null)
{
// Form Create
FormMyEditor dlg = new FormMyEditor((string) value);
if( edSvc.ShowDialog(dlg) == DialogResult.OK)
{
context.OnComponentChanged();
}
}
}
return value;
}
public override UITypeEditorEditStyle GetEditStyle
(ITypeDescriptorContext context)
{
if (context != null && context.Instance != null)
{
return UITypeEditorEditStyle.Modal;
}
return base.GetEditStyle(context);
}
}
2. Mapped MyEditor at Property
public class UserInfo
{
private string userName = string.Empty;
[Category("UserInfo"),DesignOnly(false)]
[Editor(typeof(MyEditor), typeof(UITypeEditor))]
public string UserName
{
get {return userName;}
set { userName = value; }
}
public UserInfo(){}
}

3.At RunTime, generally, MyEditor worked well at form application.
but, MyEditor did not work in other form application.
.NET called default string editor.
why .NET didn't call MyEditor in some case ?

thanks to regards!


QuestionMeta Tags in RTF file? Pin
sachinkalse8-Jun-04 23:05
sachinkalse8-Jun-04 23:05 
AnswerRe: Meta Tags in RTF file? Pin
Heath Stewart9-Jun-04 2:33
protectorHeath Stewart9-Jun-04 2:33 
GeneralRemoting in Windows CE Pin
evilnut8-Jun-04 20:56
evilnut8-Jun-04 20:56 
GeneralRe: Remoting in Windows CE Pin
Heath Stewart9-Jun-04 2:25
protectorHeath Stewart9-Jun-04 2:25 
GeneralPosting records in 2 data grids Pin
orpus8-Jun-04 20:25
orpus8-Jun-04 20:25 
GeneralRe: Posting records in 2 data grids Pin
Vasek8-Jun-04 22:11
Vasek8-Jun-04 22:11 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:17
protectorHeath Stewart9-Jun-04 2:17 
GeneralRe: Posting records in 2 data grids Pin
Heath Stewart9-Jun-04 2:20
protectorHeath Stewart9-Jun-04 2:20 
Questionup,down,right,left keys not working with KeyDown event? Pin
User 9625788-Jun-04 20:20
User 9625788-Jun-04 20:20 
AnswerRe: up,down,right,left keys not working with KeyDown event? Pin
Syed Abdul Khader8-Jun-04 23:08
Syed Abdul Khader8-Jun-04 23:08 
GeneralParameters in C# Web Programming Pin
bdi0078-Jun-04 17:22
bdi0078-Jun-04 17:22 
GeneralRe: Parameters in C# Web Programming Pin
Heath Stewart8-Jun-04 17:23
protectorHeath Stewart8-Jun-04 17:23 
GeneralLoading Dlls through C# Pin
ganeshvijay8-Jun-04 16:43
ganeshvijay8-Jun-04 16:43 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart8-Jun-04 17:22
protectorHeath Stewart8-Jun-04 17:22 
GeneralRe: Loading Dlls through C# Pin
Heath Stewart9-Jun-04 2:16
protectorHeath Stewart9-Jun-04 2:16 
GeneralPrint Picture Pin
The_Soul_Of_Rock8-Jun-04 16:21
The_Soul_Of_Rock8-Jun-04 16:21 
GeneralRe: Print Picture Pin
Heath Stewart8-Jun-04 17:26
protectorHeath Stewart8-Jun-04 17:26 

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.