|
d'oh - of course not!
Will .NET 2 support the same platforms that .NET 1.x did? (The stuff I've read has been pretty ambiguous)
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
|
The easiest way - since Internet Explorer favorites are nothing more than .url link files - is to move, copy, or delete files from the Favorites directory, which you can easily get using:
string favorites = Environment.GetFolderPath(
Environment.SpecialFolder.Favorites); From there you can use various classes in the System.IO namespace - such as the File and Directory classes - to manipulate the file system.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
I am trying to understand the following probem I am having with C# code trying to access a COM object which is generic.
Actually it can be recreated as follows:
Create a VB6 COM dll with a method as follows:
Public Function TestCSharp(ByVal sObjectName As String) As Object
If sObjectName <> "" Then
Set TestCSharp = CreateObject(sObjectName)
End If
End Function
Now write a C# class to access it and write the following code
CSharpTest.InterOpObjClass oObject = new CSharpTest.InterOpObjClass();
ADODB.Recordset oRS;
oRS = (ADODB.RecordsetClass) oObject.TestCSharp("ADODB.Recordset");
It gives an error saying specified cast is not valid, basically an invalid cast exception
Now try the same in VB.net
Dim oObject As CSharpTest.InterOpObjClass = New CSharpTest.InterOpObjClass
Dim oRS As ADODB.Recordset
oRS = oObject.TestCSharp("ADODB.Recordset")
This works fine.
Why is C# unable to unbox the value? I have noticed this for all interop objects that return type Object.
C# seems to treat them as System.__ComObject and I guess it does not like a conversion between System.__ComObject and ADODB.RecordSet or infact any other.
Is there a way around this in C#?
|
|
|
|
|
|
I already have seached google hehehe and find many search results, experts please help.
I want to test my knowledge on the C# language, is there a free site where I can take a practice test. I already tried cert21, but the free test questions are very few.
Sorry for my bad english.
Thanks in advance
|
|
|
|
|
Well, the obvious approach would be to read this forum, and answer as many questions as you can. I'm sure there are other, similar forums, probably a whole hive of them in the microsoft newsgroups.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
I highly recommend the testing package: SelfTest. Very nice preperation for certification.
|
|
|
|
|
Hi,
I am looking for a component in C# for using a TIMELINE for a SCHEDULER.
I neeed a resoluton of second.
Can you help me for finding some link ?
Best Regards
youssef
|
|
|
|
|
youssef wrote:
Can you help me for finding some link?
Have you tried Google? I did and I got your answer and it probably took less time than writing your post took.
Here is what I did:
From your post I took the words: C# timeline schedule and put it in Google.
The first link it returned took me to a directory of "Scheduling and Diary Components".
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
LOL. People these days. They don't even bother to use search engines.
|
|
|
|
|
AK wrote:
They don't even bother to use search engines
You know I sometimes imagine people reading posts that tell them to use a search engine or Google and this little Ralph Wigham voice says "What's a search engine?"
Do you want to know more?
Vogon Building and Loan advise that your planet is at risk if you do not keep up repayments on any mortgage secured upon it. Please remember that the force of gravity can go up as well as down.
|
|
|
|
|
Colin Angus Mackay wrote:
You know I sometimes imagine people reading posts that tell them to use a search engine or Google and this little Ralph Wigham voice says "What's a search engine?"
I don't like googles. Googles make my tummy hurt.
Charlie
if(!curlies){ return; }
|
|
|
|
|
|
search engine has many result, good and bad link, i guess he's just consulting you experts, maybe you answer is prefered than search engines
|
|
|
|
|
You must be new here.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
try to look at Janus Controls
www.janusys.com
let me know if this help
|
|
|
|
|
When I've created my own class derived from a Form or UserControl or the like, is there some way to filter (at least temporarily) the drop down list of methods/properties/events to just those I defined in my class, rather than the several billion that are inherited? More generally, this would be filtering to the child-most class.
Matt Gerrans
|
|
|
|
|
I'm afraid that there are no built in options for that. There's probably a tool with intellisense the way you want to have it. But, most of the tools that I've tried are not too professional and make the VS.net more complex and probably more annoying than helpful.
Anyone out there actually have a tool with better intellisense than VS.net?
|
|
|
|
|
Has anyone run into a problem where you would register a C# project for com interop, look at the .tlb file that gets generated, and have all the interfaces in your project be missing? This is exactly the problem I'm having and it's driving me nuts. All other projects I've ever done the interfaces showed up like they should. I even have all their ComVisible attributes set to true. Any ideas?
|
|
|
|
|
i have a listview set up as detail view, and would like the text to wrap to next line for each column. i have LabelWrap set to true, but it still appends the "..." after the text.
|
|
|
|
|
According to MSDN:
When the LabelWrap property is set to true, the item text is wrapped to the next line of text if needed. If the text is longer than two lines of text, the text is shortened.
Seems like you're limited to two lines. You can rewrite the painting code.
|
|
|
|
|
Hello,
I have a Form of a Smart Device Application with a constructor and a defined Form_Load event. When i the form is created which method is first executed - the constructor or the Form_Load??
regards
pat
|
|
|
|
|
You can quickly check this by putting breakpoint in both Constructor and Form_Load method and run it. See which one gets called first...
Sandeep Naik
|
|
|
|
|
Or with logic: does it make sense for any method to be called before a constructor?
By the way, if you have multiple constructors and you're using the debugger method suggested, may want to put breakpoints in all of them.
Matt Gerrans
|
|
|
|