Click here to Skip to main content
15,905,874 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSetting Session id ??????????? Pin
Nithin Krishna7-Feb-07 20:26
Nithin Krishna7-Feb-07 20:26 
AnswerRe: Setting Session id ??????????? Pin
Pete O'Hanlon7-Feb-07 22:34
mvePete O'Hanlon7-Feb-07 22:34 
AnswerRe: Setting Session id ??????????? Pin
Sandeep Akhare7-Feb-07 22:41
Sandeep Akhare7-Feb-07 22:41 
GeneralRe: Setting Session id ??????????? Pin
Nithin Krishna7-Feb-07 23:29
Nithin Krishna7-Feb-07 23:29 
GeneralRe: Setting Session id ??????????? Pin
Sandeep Akhare8-Feb-07 2:51
Sandeep Akhare8-Feb-07 2:51 
QuestionReference from command class to user form Pin
Member 38068457-Feb-07 15:04
Member 38068457-Feb-07 15:04 
AnswerRe: Reference from command class to user form Pin
Christian Graus7-Feb-07 16:47
protectorChristian Graus7-Feb-07 16:47 
QuestionHelp Translating Code Snippet from C# to MC++ Pin
ricecake7-Feb-07 10:57
ricecake7-Feb-07 10:57 
Since nobody responded to my previous question[^], I did some more research and thought I'd try a different approach, but the solution I found was only given in C# and VB, and I do not know how to translate this to MC++ since MC++ doesn't have the foreach keyword.

I want to try to implement the code given at http://www.syncfusion.com/FAQ/WindowsForms/FAQ_c44c.aspx#q1008q[^]... the link won't take you directly to the question in Firefox, so it is question 5.87 (the same snippet is given on MSDN[^] but the navigation on that page is broken).

Basically, I am using a DataGrid as a display-only control, so I don't want to be able to do any editing using the DataGrid. The above-cited question has the suggestion of removing all controls from the DataGrid (except for the scrollbars):
ArrayList al = new ArrayList();
foreach (Control c in this.dataGrid1.Controls) {
    if (c.GetType() == typeof(VScrollBar) || c.GetType() == typeof(HScrollBar)) {
        al.Add(c);
    }
}
this.dataGrid1.Controls.Clear();
this.dataGrid1.Controls.AddRange((Control[]) al.ToArray(typeof(Control)));
How do I translate this into Managed C++? Specifically, the foreach is tripping me up. I think I can implement the GetType/typeof stuff with __try_casts.

--
Marcus Kwok

AnswerRe: Help Translating Code Snippet from C# to MC++ [modified] Pin
Luc Pattyn8-Feb-07 2:39
sitebuilderLuc Pattyn8-Feb-07 2:39 
GeneralRe: Help Translating Code Snippet from C# to MC++ Pin
ricecake8-Feb-07 4:16
ricecake8-Feb-07 4:16 
GeneralRe: Help Translating Code Snippet from C# to MC++ Pin
Luc Pattyn8-Feb-07 4:23
sitebuilderLuc Pattyn8-Feb-07 4:23 
GeneralRe: Help Translating Code Snippet from C# to MC++ Pin
ricecake8-Feb-07 4:24
ricecake8-Feb-07 4:24 
QuestionExtract visual studio project information from a .??proj file Pin
nadzzz7-Feb-07 8:48
nadzzz7-Feb-07 8:48 
AnswerRe: Extract visual studio project information from a .??proj file Pin
Colin Angus Mackay7-Feb-07 22:25
Colin Angus Mackay7-Feb-07 22:25 
Questionhow can i use usb to serial on Visual C#? Pin
Mir_As7-Feb-07 7:43
Mir_As7-Feb-07 7:43 
AnswerRe: how can i use usb to serial on Visual C#? Pin
Dan Neely7-Feb-07 8:19
Dan Neely7-Feb-07 8:19 
GeneralRe: how can i use usb to serial on Visual C#? Pin
Mir_As7-Feb-07 22:39
Mir_As7-Feb-07 22:39 
GeneralRe: how can i use usb to serial on Visual C#? Pin
Dan Neely8-Feb-07 2:28
Dan Neely8-Feb-07 2:28 
GeneralRe: how can i use usb to serial on Visual C#? Pin
Mir_As8-Feb-07 3:23
Mir_As8-Feb-07 3:23 
QuestionException trace is not available when program crashes Pin
56789012347-Feb-07 4:28
56789012347-Feb-07 4:28 
AnswerRe: Exception trace is not available when program crashes Pin
Colin Angus Mackay7-Feb-07 4:50
Colin Angus Mackay7-Feb-07 4:50 
GeneralRe: Exception trace is not available when program crashes Pin
56789012347-Feb-07 4:54
56789012347-Feb-07 4:54 
GeneralRe: Exception trace is not available when program crashes Pin
Colin Angus Mackay7-Feb-07 7:04
Colin Angus Mackay7-Feb-07 7:04 
QuestionDataSet to SQL Pin
Soundman32.27-Feb-07 4:24
Soundman32.27-Feb-07 4:24 
Questionhow to execute vb.net project?? Pin
swathiiiiiiiiii7-Feb-07 1:52
swathiiiiiiiiii7-Feb-07 1:52 

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.