Click here to Skip to main content
15,903,012 members
Home / Discussions / C#
   

C#

 
GeneralHTTP Requests and Posts Pin
Richard Beacroft14-Jun-04 20:40
Richard Beacroft14-Jun-04 20:40 
GeneralRe: HTTP Requests and Posts Pin
Heath Stewart15-Jun-04 3:04
protectorHeath Stewart15-Jun-04 3:04 
GeneralCompile my C# Class Pin
dabuskol14-Jun-04 20:33
dabuskol14-Jun-04 20:33 
GeneralRe: Compile my C# Class Pin
Tarakeshwar Reddy14-Jun-04 23:04
professionalTarakeshwar Reddy14-Jun-04 23:04 
GeneralRe: Compile my C# Class Pin
dabuskol14-Jun-04 23:44
dabuskol14-Jun-04 23:44 
GeneralRe: Compile my C# Class Pin
Heath Stewart15-Jun-04 2:57
protectorHeath Stewart15-Jun-04 2:57 
GeneralRe: Compile my C# Class Pin
dabuskol15-Jun-04 19:00
dabuskol15-Jun-04 19:00 
Generalabout UITypeEditor Operation in RunTime Pin
pig123414-Jun-04 17:47
pig123414-Jun-04 17:47 
Smile | :) 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!

GeneralRe: about UITypeEditor Operation in RunTime Pin
Heath Stewart15-Jun-04 2:54
protectorHeath Stewart15-Jun-04 2:54 
GeneralRe: 0 result with double data type Pin
myNameIsRon14-Jun-04 17:25
myNameIsRon14-Jun-04 17:25 
GeneralRe: 0 result with double data type Pin
Colin Angus Mackay14-Jun-04 23:36
Colin Angus Mackay14-Jun-04 23:36 
GeneralRe: 0 result with double data type Pin
myNameIsRon15-Jun-04 20:05
myNameIsRon15-Jun-04 20:05 
GeneralRe: 0 result with double data type Pin
Colin Angus Mackay15-Jun-04 20:30
Colin Angus Mackay15-Jun-04 20:30 
GeneralRe: 0 result with double data type Pin
Serge Lobko-Lobanovsky15-Jun-04 1:34
Serge Lobko-Lobanovsky15-Jun-04 1:34 
GeneralRe: 0 result with double data type Pin
myNameIsRon15-Jun-04 20:08
myNameIsRon15-Jun-04 20:08 
GeneralRe: 0 result with double data type Pin
Serge Lobko-Lobanovsky15-Jun-04 21:20
Serge Lobko-Lobanovsky15-Jun-04 21:20 
GeneralC# Application is Error Pin
GuruVN14-Jun-04 17:15
GuruVN14-Jun-04 17:15 
Generalusing winuser.h Pin
eggie514-Jun-04 16:09
eggie514-Jun-04 16:09 
GeneralRe: using winuser.h Pin
Mazdak14-Jun-04 19:49
Mazdak14-Jun-04 19:49 
GeneralRe: using winuser.h Pin
eggie514-Jun-04 19:59
eggie514-Jun-04 19:59 
GeneralRe: using winuser.h Pin
Heath Stewart15-Jun-04 2:45
protectorHeath Stewart15-Jun-04 2:45 
GeneralRe: using winuser.h Pin
eggie515-Jun-04 5:55
eggie515-Jun-04 5:55 
GeneralRe: using winuser.h Pin
Dave Kreskowiak15-Jun-04 2:52
mveDave Kreskowiak15-Jun-04 2:52 
GeneralRe: using winuser.h Pin
eggie515-Jun-04 5:53
eggie515-Jun-04 5:53 
GeneralRe: using winuser.h Pin
Dave Kreskowiak15-Jun-04 14:49
mveDave Kreskowiak15-Jun-04 14:49 

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.