|
If I use reflector to decompile TabPageCollection, this is the definition of Insert:
void IList.Insert(int index, object value)<br />
{<br />
throw new NotSupportedException();<br />
}
Firstly it is hidden, so you cant have been using the exact code you posted, you must have been casting tc.TabPages to IList, second its unsupported.
---
How to get answers to your questions[^]
|
|
|
|
|
Thanks for the reply. Also thanks for the reference to Reflector. What a great program!
If I load the .NET Compact Framework, then disassembling the method returns
public void Insert(int index, TabPage tabPage)
{
}
which makes sense given the output I'm getting. (Interestingly, I don't get NotSupportedException when disassembling the regular .NET 2.0 framework - it makes a reference to this.owner.Insert, followed by some try{}catch{} stuff. Maybe something got changed when I tried installing Avalon/WF/.NET 3.0 beta)
So I guess my question now is this. Why is Visual Studio using the compact framework, and how can I change it?
|
|
|
|
|
I am using visual studio.net 2003 and my college work with 2005 one we are cooperated in one project so the project is usually switched between us and when he send me the project after update i want to open it ,of course u know the result
i wander if any one know a solution to open the 2005 project in 2003 environment without
1-open the class code and know the updates (because their are many windows apps)
2-change the version of us
Sorry for elongation but I bothered of this problem
haitham
|
|
|
|
|
|
For circumstances we should put our project on mobile computer (which has 2003 version) and we can’t upgrade it to 2005
this is the problem
Thanks for ur concern
haitham
|
|
|
|
|
I am currently working on a smartphone project that needs to
communicate with some COM component. Since the .NET compact framework
does not support the DCOM, I decided to create a web service to expose
the COM component's methods and events.
As the some of the COM methods return int** or byte** data back to the
caller, I manually changed the generated interop assembly ( from
IntPtr to IntPtr& for the out going parameter int*** or byte**) after
generating the intermedate language file using ildasm.exe and
regenerate the interop assembly using ilasm.exe utility in order to
get the arrays of bytes or integers for the web service methods.
Here is the problem I am facing:
The web service methods caller can only get the first elements back
from the COM component while windows caller can get all the data back.
I wonder if I need set some binding attribute to make it work for web service.
I would be very grateful if you could help me out.
Thank you.
Mike Zhang.
|
|
|
|
|
Hi All,
I would like to develop an application in c# using WebServices.
Main functionality of my application is as below.
1. Ability to retrieve services running on the remote System
2. Ability to retrieve processes running on the remote System
3. Ability to Retrieve logical Drive info ,Space avalable of remote System.
Can anybody help me about out what should be done regarding this.
Thanks in advance.
-- modified at 16:20 Tuesday 11th July, 2006
|
|
|
|
|
System.IO.Directory.GetLogicalDrives For logical drives
http://www.codeproject.com/csharp/service_controller.asp ofr list of services
http://www.codeproject.com/csharp/popupkiller.asp for running processes
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Ok i saw that ,
But I need to know about getting the Disk Space,services and process running in a remote system using web services in .Net and C#.
-- modified at 8:39 Wednesday 12th July, 2006
|
|
|
|
|
nt
A man said to the universe:
"Sir I exist!"
"However," replied the Universe, "The fact has not created in me A sense of obligation."
-- Stephen Crane
|
|
|
|
|
Hi All.
I learning in this week how to use regular Expression in c# ( .Net 2.0 - IDE 2005 ).
I don't understand if use regular Expression "cost" more then use some scan string to know validation of some sentence ( that build from string ).
1. Some one can solve my understanding problem ?
2. How can i know if using regular Expression is more effective ? where can i find some article about effective use ( or more effective use ) in C# trait ?
Thanks for any help ...
|
|
|
|
|
RegEx costs more, plainly. A ferrari also costs more than a push bike. RegEx can do things that are hideously complex to try and do with string mashing.
If you search the site for Expresso, that's a tool for playing with regex. Basically, if string mashing can solve the problem simply, use it. But, having said that, outside tight loops, it's not likely to matter which you use.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
OK , i see that.
Bug but lets take some example of some dummy application that need to analyze some document with 100000 line in this document.
To know if some expression X is in line i can do it in 2 ways
1. Scan and look for Y string.
2. Use regular Expression to find matching.
But if i need to look for 100000 line and look for match with 10 strings - what you recommend to use ? regular Expression or string look for ?
|
|
|
|
|
Write both instances and time them to find out which one is faster. Then if you want to know which is faster for case(n) and case(
|
|
|
|
|
Hi
I am not able to connect to remote oracle database with out installing oracle client client software on my machine.
The application code is in C# and database is Oracle.
Is it possible to connect to Oracle database with out Oracle CLient. I am using ODP.Net provider.
Thanks in Advance
Venkat
|
|
|
|
|
VenkatChundi wrote: Is it possible to connect to Oracle database with out Oracle CLient.
No.
To access the server services you must have client software.
Regards.
_____________________________
Success is not something to wait for, its something to work for.
|
|
|
|
|
Okay i want to do this: Use the child's MDIParent property to get the parent form. Cast it to the
MDI parent type. Then set/use the properties of the parent.
What is the correct syntax because i keep getting Errors?
|
|
|
|
|
MyParent form = (MyParent)this.MDIParent;
However, if you need to pass data from the child to the parent based on a user action, it is better to do it with events. This way you avoid casting and you do not risk changes to the parent form or its' children.
Search MSDN and you will get a good tutorial on establishing events. The altered data can be in your custom event arguments.
|
|
|
|
|
There are different approaches, but I think this will assist
Code for the Closing event of the Child form i.e. on closing the form; here is the code: In this code the frmMain is the MDIParent of the frmItem, but casting is important in retrieving the properties of the parent form:
private void frmItem_FormClosing(object sender, FormClosingEventArgs e)
{
Form f = sender as Form;
((frmMain)f).statusStrip = frmItem.statusStrip;
}
|
|
|
|
|
i want a project on designing a website on virtual stock exchange using asp.net, c#, sql server and flash
|
|
|
|
|
Now you have it.
Best,
Jun
|
|
|
|
|
Rentacoder is a good place to get your homework done, if yuo want to pass without actually becoming employable.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Christian Graus wrote: Rentacoder is a good place
You're just jealous of those guys
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
I want fame, fortune a ham sandwich and a big-screen TV.
/ravi
|
|
|
|
|
My mate in Texas bought a headset for $500 that apparently gives you a view like being in front of a 42 inch TV. Perhaps if you're 100 metres away from it, but he's still happy with it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|