Click here to Skip to main content
15,886,422 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to block shortcuts Pin
alexey N21-Apr-06 1:21
alexey N21-Apr-06 1:21 
QuestionRead data from Outlook .msg items Pin
allenmpcx20-Apr-06 22:28
allenmpcx20-Apr-06 22:28 
AnswerRe: Read data from Outlook .msg items Pin
alexey N21-Apr-06 1:07
alexey N21-Apr-06 1:07 
QuestionRemoting Pin
mehrdadc4820-Apr-06 21:00
mehrdadc4820-Apr-06 21:00 
AnswerRe: Remoting Pin
g00fyman20-Apr-06 21:07
g00fyman20-Apr-06 21:07 
AnswerRe: Remoting Pin
Vasudevan Deepak Kumar20-Apr-06 22:01
Vasudevan Deepak Kumar20-Apr-06 22:01 
AnswerRe: Browser Checking Pin
J4amieC20-Apr-06 21:38
J4amieC20-Apr-06 21:38 
Questionfunction browsing in propertygrid Pin
g00fyman20-Apr-06 20:59
g00fyman20-Apr-06 20: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 21:20
g00fyman20-Apr-06 21:20 
GeneralRe: function browsing in propertygrid Pin
Robert Rohde20-Apr-06 22:22
Robert Rohde20-Apr-06 22:22 
GeneralRe: function browsing in propertygrid Pin
leppie20-Apr-06 22:55
leppie20-Apr-06 22:55 
Questionget Toolbox Pin
AnhTin20-Apr-06 20:47
AnhTin20-Apr-06 20:47 
AnswerRe: get Toolbox Pin
g00fyman20-Apr-06 21:10
g00fyman20-Apr-06 21:10 
QuestionUsing .rar/.zip documents Pin
QzRz20-Apr-06 20:37
QzRz20-Apr-06 20:37 
AnswerRe: Using .rar/.zip documents Pin
Robin Panther20-Apr-06 23:57
Robin Panther20-Apr-06 23:57 
QuestionMicrosoft controls Tree View control problem Pin
smadan20-Apr-06 20:11
smadan20-Apr-06 20:11 
QuestionHow to send the e-mail? Pin
Vasya - dragon20-Apr-06 20:09
Vasya - dragon20-Apr-06 20:09 
Questionthreading and progressbar in windows form Pin
karande2320-Apr-06 19:59
karande2320-Apr-06 19:59 
AnswerRe: threading and progressbar in windows form Pin
g00fyman20-Apr-06 21:05
g00fyman20-Apr-06 21:05 
GeneralRe: threading and progressbar in windows form Pin
karande2320-Apr-06 21:46
karande2320-Apr-06 21:46 
AnswerRe: threading and progressbar in windows form Pin
Robert Rohde20-Apr-06 22:28
Robert Rohde20-Apr-06 22:28 
GeneralThanks Pin
karande2320-Apr-06 23:02
karande2320-Apr-06 23:02 
Questionreading a remote file Pin
DeepsG20-Apr-06 19:26
DeepsG20-Apr-06 19:26 
AnswerRe: reading a remote file Pin
alexey N20-Apr-06 19:37
alexey N20-Apr-06 19:37 
GeneralRe: reading a remote file Pin
DeepsG20-Apr-06 20:27
DeepsG20-Apr-06 20: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.