Click here to Skip to main content
15,796,102 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to block shortcuts Pin
alexey N21-Apr-06 2:21
alexey N21-Apr-06 2:21 
QuestionRead data from Outlook .msg items Pin
allenmpcx20-Apr-06 23:28
allenmpcx20-Apr-06 23:28 
AnswerRe: Read data from Outlook .msg items Pin
alexey N21-Apr-06 2:07
alexey N21-Apr-06 2:07 
QuestionRemoting Pin
mehrdadc4820-Apr-06 22:00
mehrdadc4820-Apr-06 22:00 
AnswerRe: Remoting Pin
g00fyman20-Apr-06 22:07
g00fyman20-Apr-06 22:07 
AnswerRe: Remoting Pin
Vasudevan Deepak Kumar20-Apr-06 23:01
Vasudevan Deepak Kumar20-Apr-06 23:01 
AnswerRe: Browser Checking Pin
J4amieC20-Apr-06 22:38
J4amieC20-Apr-06 22:38 
Questionfunction browsing in propertygrid Pin
g00fyman20-Apr-06 21:59
g00fyman20-Apr-06 21:59 
hi all,

i have an application that i am trying to 'port' to be more usable by accessing properties via the prop grid in VS IDE.

i have a function in my component that needs two callback functions (which the component provides delegates for) which it calls in the owning application to get/set a string in that application, how can i allow the programmer to select these functions through the property grid?

if i set the type of the property to the delegate, the propertygrid makes it readonly.

i have provided sample bare code to illustrate the calling applications functions
i would like to move the delegate declarations into designer generated code.

public Form1()
    {
      InitializeComponent();

      this.updater1.GetProductVersionFunction = new AutoUpdate.UpdateClient.GetVersionString(GetApplicationVersion);
      this.updater1.SetProductVersionFunction = new AutoUpdate.UpdateClient.GetVersionString(SetApplicationVersion);
    }

    public static string GetApplicationVersion()
    {
      // returns current app version from somewhere
      return "version";
    }


    public static void SetApplicationVersion()
    {
      // set app version string here
    }
}


any help please would be awesome.

kind regards,
g00fy
AnswerRe: function browsing in propertygrid Pin
g00fyman20-Apr-06 22:20
g00fyman20-Apr-06 22:20 
GeneralRe: function browsing in propertygrid Pin
Robert Rohde20-Apr-06 23:22
Robert Rohde20-Apr-06 23:22 
GeneralRe: function browsing in propertygrid Pin
leppie20-Apr-06 23:55
leppie20-Apr-06 23:55 
Questionget Toolbox Pin
AnhTin20-Apr-06 21:47
AnhTin20-Apr-06 21:47 
AnswerRe: get Toolbox Pin
g00fyman20-Apr-06 22:10
g00fyman20-Apr-06 22:10 
QuestionUsing .rar/.zip documents Pin
QzRz20-Apr-06 21:37
QzRz20-Apr-06 21:37 
AnswerRe: Using .rar/.zip documents Pin
Robin Panther21-Apr-06 0:57
Robin Panther21-Apr-06 0:57 
QuestionMicrosoft controls Tree View control problem Pin
smadan20-Apr-06 21:11
smadan20-Apr-06 21:11 
QuestionHow to send the e-mail? Pin
Vasya - dragon20-Apr-06 21:09
Vasya - dragon20-Apr-06 21:09 
Questionthreading and progressbar in windows form Pin
karande2320-Apr-06 20:59
karande2320-Apr-06 20:59 
AnswerRe: threading and progressbar in windows form Pin
g00fyman20-Apr-06 22:05
g00fyman20-Apr-06 22:05 
GeneralRe: threading and progressbar in windows form Pin
karande2320-Apr-06 22:46
karande2320-Apr-06 22:46 
AnswerRe: threading and progressbar in windows form Pin
Robert Rohde20-Apr-06 23:28
Robert Rohde20-Apr-06 23:28 
GeneralThanks Pin
karande2321-Apr-06 0:02
karande2321-Apr-06 0:02 
Questionreading a remote file Pin
DeepsG20-Apr-06 20:26
DeepsG20-Apr-06 20:26 
AnswerRe: reading a remote file Pin
alexey N20-Apr-06 20:37
alexey N20-Apr-06 20:37 
GeneralRe: reading a remote file Pin
DeepsG20-Apr-06 21:27
DeepsG20-Apr-06 21:27 

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.