|
Hello all!
I am having problems on finding out, how to get acces to the certificatestore in PocketPC and WM5 devices.
I want to programmatically add and delete certificates from the personal store using c#.
Hopefully there is someone here that can help me get on my way.
Thanks in advance!
|
|
|
|
|
There must be someone out here that can help me .. ?
|
|
|
|
|
I did:
StreamReader sr = new StreamReader(path);
sr.ReadToEnd();
sr.Close();
StreamWriter sw = new StreamWriter(path);
I got error "The process cannot access the file because it is being used by another process"
Why this happen, I already closed the file
When in debug mode, it sometimes successfully openned the file, sometimes failed
|
|
|
|
|
Try opening the file as a filestream, and then passing the filestream handle to the streamreader and writer.
|
|
|
|
|
I changed it to
FileStream fs = new FileStream(path, FileMode.Open);
StreamReader sr = new StreamReader(fs);
sr.ReadToEnd();
sr.Close();
StreamWriter sw = new StreamWriter(fs);
and still doesn't work
I did wrong somewhere?
|
|
|
|
|
all I can think of is maybe making
sr = null;
after you close it. I can't check right now though so...
|
|
|
|
|
FileStream fs = new FileStream(path, FileMode.Open);<br />
StreamReader sr = new StreamReader(fs);<br />
StreamWriter sw = new StreamWriter(fs);<br />
<br />
sr.ReadToEnd();<br />
<br />
sr.Close();<br />
sw.Close();<br />
fs.Close();
Closing the streamreader before initializing the streamwriter causes a Stream was not writable. error.
Keep the reader and writer open until you close the file.
|
|
|
|
|
And where in the registry or wherever can you find out how much ram the computer has in total?
|
|
|
|
|
check this http://www.neowin.net/forum/lofiversion/index.php/t111332.html
code is given here.
Regards
Shajeel
|
|
|
|
|
|
Luk @ Process class members in msdn
|
|
|
|
|
Hi everyone.
I'm currently working with the framework 1.1
I'm wondering if i can automaticly set all the columns of a datagrid expanded to the size
then gets when i double clicked on to the separator column line.
Any help will be helpfull
Thanks!!.
NOthing by now;)
|
|
|
|
|
Any one can help me please.
I am setting the property of a control by another from at design time. But when i set it set it does not set.Any can tell me how i can set the property of control by another form at dsign time.
|
|
|
|
|
If You Place this two controls on a 3ed Control.
3ed Controls has to have all Properties you whant to set.
In the setter of the 3ed Control Properties you can feed all the Properties you whant.
This will also work during design time.
All the best,
Martin
|
|
|
|
|
1. Determine OS version
2. Determine Office version
3. Determine Visio version
4. Determine IE version
5. Determine Excel versoin
6. Determine if .NET is installed
7. Determine .NET version being utilized
9. Determine if .NET extensions are enabled for Excel
10. Determine if .NET extensions are enabled for Visio
11. Machine Information like CPU type, Memory, Memory being currently utilised
|
|
|
|
|
|
Hi there is a very usefull .dll you have to add it to your asembly it works very well even with no remote computers it reports you System information.
dll name : RemoteSysInformation.dll
if you need the Dll or any code
(i already have and app done with it to finger information about computers on my network)
Feel free to mail me
NOthing by now;)
|
|
|
|
|
I wanna determine which all .net framework versions' are installed on the system. (1.1, 2..etc) And which version is been used my application.
|
|
|
|
|
Hi,
Use System.Environment namesapce to get OS information.
|
|
|
|
|
1. System.Environment.OSVersion
2. FileVersionInfo.GetVersionInfo(@"C:\Program Files\Microsoft Office\OFFICE11\EXCEL.EXE")
3. Same with 2, just change the filename.
4. Same with 2, just change the filename.
5. Same with 2, just change the filename.
6. You cannot even run your application. You get only an error "mscorlib.dll is missing".
7. FileVersionInfo.GetVersionInfo(@"C:\WINNT\system32\URTTemp\fusion.dll")
9. ???
10. ???
11. Use C++. In C++ you must write an assembler code.
|
|
|
|
|
To determine OS version use
System.Environment.OSVersion
If your application does not work, it means .Net is not installed
|
|
|
|
|
Hi Guys.
We have some forms that need to load a couple of comboboxes.
Some only have like 10 items, but some have more than 5000 items.
Now the client complains that it takes too long to load the form. (1 to 2 seconds).
What is the fastest way to get items out of the database and load them in the combobox?
My current workflow:
1. I do a select into a dataset.
2. I set the combobox's datasource, displaymember and valuemember property.
(sorting property is set to false!)
I was thinking about an index on the table, but the database is access and my colleague said you can't said indexes on access databases?
Is there also a property which sets the timout for manually entering the values?
When you start typing, the combobox automatically filters his items. When you type too slow, the value is reset. Our client didn't like this ...
Thanks for your help!
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
What is the actual bottleneck? Fetching the data or the binding in the GUI?
For the first one an index *might* help. And you can surely index columns in access databases. Just check the properties of the column you wishto index.
|
|
|
|
|
Actually I think it's the GUI, but I don't know if that can go any faster then I did...
thanks for the help...
I've found a living worth working for, but I haven't found work worth living for.
<marquee>
|
|
|
|
|
Try calling combo.BeginUpdate before populating the control, and then combo.EndUpdate after. That will prevent the control from redrawing, but I'm not sure if it helps when databinding (the actual time of list population can be delayed in bound scenarios).
josh
|
|
|
|