|
Hi all,
How can I use c# to manipulate the favourites in Internet Explorer, e.g.
import and export favourites from the IE ?
Thanks
Patrick
|
|
|
|
|
Favourites are just stored as text files in your profile
e.g. C:\Documents and Settings\[your profile]\Favourites\
Open one of the files in notepad and you'll see the format is fairly straightforward, so it should be pretty simple to write code that'd read each file in, parse it, and store it in some kind of tree structure
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
You should never hard code paths when there's better alternatives. In this case, you can use Environment.SpecialFolder.Favorites . See my previous post for details.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
Ahh, even better - yeah, I knew favorites are stored in all sorts of places - I was just giving the guy a starting point
(I assume that'll give the right path on Win95 systems that stored favorites in the c:\windows\favorites\folder\ ?)
--
Help me! I'm turning into a grapefruit!
Phoenix Paint - back from DPaint's ashes!
|
|
|
|
|
The .NET Framework isn't supported on Windows 95, and Windows 95 hasn't even been supported in general by Microsoft for a couple years now.
On supported platforms (at least on Windows), however, the correct path is returned.
This posting is provided "AS IS" with no warranties, and confers no rights.
Software Design Engineer
Developer Division Sustained Engineering
Microsoft
[My Articles]
|
|
|
|
|
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?
|
|
|
|