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

C#

 
Questionwhat is the difference? Pin
Sonia Gupta12-Oct-07 2:33
Sonia Gupta12-Oct-07 2:33 
AnswerRe: what is the difference? Pin
Pete O'Hanlon12-Oct-07 2:40
mvePete O'Hanlon12-Oct-07 2:40 
QuestionHow To Control Forward and Back Buttons for internet explorer. Pin
Rinki Mukheraji12-Oct-07 2:12
Rinki Mukheraji12-Oct-07 2:12 
AnswerRe: How To Control Forward and Back Buttons for internet explorer. Pin
Pete O'Hanlon12-Oct-07 2:27
mvePete O'Hanlon12-Oct-07 2:27 
AnswerRe: How To Control Forward and Back Buttons for internet explorer. Pin
TJoe12-Oct-07 2:42
TJoe12-Oct-07 2:42 
QuestionTemporary data to sqlserver database Pin
Rinki Mukheraji12-Oct-07 1:43
Rinki Mukheraji12-Oct-07 1:43 
AnswerRe: Temporary data to sqlserver database Pin
Aavesh Agarwal12-Oct-07 1:51
Aavesh Agarwal12-Oct-07 1:51 
QuestionAsync Callback in Web Service Pin
Adam Jasper12-Oct-07 0:36
Adam Jasper12-Oct-07 0:36 
When I use the wsdl tool to create a web service proxy, it always makes the call back delegate a module level object variable, it then puts the code in as follows:

private SendOrPostCallback _cb;<br />
<br />
public void GetProductsAsync(ProductsRequestEntity request, object userState)<br />
{<br />
if (_cb == null)<br />
   _cb = new SendOrPostCallback(OnGetProductsCompleted);<br />
<br />
this.Invoke("GetProducts", new object[] { request}, _cb, userState);<br />
}<br />


Does the callback delegate need to be a module level variable, will coding it the following way cause me any problems:

<br />
public void GetProductsAsync(ProductsRequestEntity request, object userState)<br />
{<br />
this.Invoke("GetProducts", new object[] { request}, new SendOrPostCallback(OnGetProductsCompleted), userState);<br />
}<br />


I have a lot of proxies to create and tidy up, taking a few shortcuts will save me a lot of time.

Thanks in advance,

Adam
QuestionDining Philosophers Pin
pdoy070812-Oct-07 0:03
pdoy070812-Oct-07 0:03 
AnswerRe: Dining Philosophers Pin
Bekjong12-Oct-07 0:11
Bekjong12-Oct-07 0:11 
AnswerRe: Dining Philosophers Pin
Christian Graus12-Oct-07 0:11
protectorChristian Graus12-Oct-07 0:11 
GeneralRe: Dining Philosophers Pin
Colin Angus Mackay12-Oct-07 1:00
Colin Angus Mackay12-Oct-07 1:00 
GeneralRe: Dining Philosophers Pin
martin_hughes12-Oct-07 1:38
martin_hughes12-Oct-07 1:38 
GeneralRe: Dining Philosophers Pin
Colin Angus Mackay12-Oct-07 5:18
Colin Angus Mackay12-Oct-07 5:18 
GeneralRe: Dining Philosophers Pin
martin_hughes12-Oct-07 5:27
martin_hughes12-Oct-07 5:27 
GeneralRe: Dining Philosophers Pin
Scott Dorman12-Oct-07 3:11
professionalScott Dorman12-Oct-07 3:11 
QuestionWPF Viewport3D antialiasing Pin
Bartosz Bien12-Oct-07 0:03
Bartosz Bien12-Oct-07 0:03 
AnswerRe: WPF Viewport3D antialiasing Pin
lmoelleb13-Oct-07 0:27
lmoelleb13-Oct-07 0:27 
GeneralRe: WPF Viewport3D antialiasing Pin
Bartosz Bien13-Oct-07 0:59
Bartosz Bien13-Oct-07 0:59 
GeneralControl Break Algorithm Pin
Brady Kelly11-Oct-07 23:32
Brady Kelly11-Oct-07 23:32 
QuestionReminder Message Pin
Shashidharreddy11-Oct-07 22:41
Shashidharreddy11-Oct-07 22:41 
AnswerRe: Reminder Message Pin
Charith Jayasundara12-Oct-07 0:19
Charith Jayasundara12-Oct-07 0:19 
GeneralRe: Reminder Message Pin
Pete O'Hanlon12-Oct-07 2:29
mvePete O'Hanlon12-Oct-07 2:29 
Questioncalling forms from treeview nodes Pin
Mamphekgo Bahula11-Oct-07 22:34
Mamphekgo Bahula11-Oct-07 22:34 
AnswerRe: calling forms from treeview nodes Pin
Martin#11-Oct-07 23:34
Martin#11-Oct-07 23:34 

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.