|
Hello,
I'm using wndproc to detect arrival of an usb device ( usb key ), all is ok but
the time beteewn I can see the windows system detect the key usb ( icon apear in tool bar of desk windows ) and the time where Wndproc receive windows message is like 20 secondes !
why this long time ? how accelerate detection of insert usb key by my programm ?
thank
Vincent
ps : I hope you understand my question
|
|
|
|
|
I am working on a personal money manager in C# and am wondering what I should do with regard to data.
I have some code that I am starting with and currently it uses an XML file to store it's data. The data is then read into memory, uncompressed and then manipulated as required.
Since this single file potentially could contain several Bank accounts, Stock accounts, etc, it could get large. However, probably not more than 5 meg.
Should I read the entire file into memory even though I may not be using all the data?
I am also considering using an SQL database rather than an XML file.
Is an SQL database a better approach than a DataSet with regard to this type of application?
What is the general consensus on using DataSets (i.e., should they only be used for files that are expected to be small in size)? If so, roughly what should that size be?
|
|
|
|
|
SQL might be a good option and Microsoft has a new SQL Server that would work well for this.... http://www.microsoft.com/sql/editions/sqlmobile/default.mspx
It is not just for mobile devices it runs on desktops now too. I started to look at it and it is not what I need for work, but I am debating using it for a personal project.
Steve Maier, MCSD MCAD MCTS
|
|
|
|
|
Thanks for the reply.
I already know of this and several others.
If I use an SQL database, I'm not sure which one I will go with, but I may use the "Minosse" DBMS or "Sharp HSQL" as the source code is available for both.
|
|
|
|
|
That reminds me of when I worked at writing printer drivers. The group that wrote the code that ran on the machine and scheduled things and rendered the pages and the UI for it was all in Java. I asked why use Java and their biggest selling point was that it was portable. So I asked if they were planning to port it to a different platform and they reply that it would never happen because there were kernal changes on Solaris that they put in to make things run and that the guy that did them is no longer working with the company. So they decided to use a nice portable language on a system where porting was not even feasible.
Having the source code to the database really does not do anything for you unless you are going to put in your own things to it - and most people won't. If you are working on something to try to sell to others, there is alot more things to do with website, marketing, support, as well as the programming. Having the source code for the database would just be one more thing that I would be looking at and tweaking and delaying the release of the product..... but on just something that is for your own use it could be fun to look over how they are doing the database and what is behind it. Good Luck.
As for some of the many free databases that are out there, I have played around with a few and some of them did not have very good ADO.NET providers at the time. They keep getting better but it's something to watch out for.
Steve Maier, MCSD MCAD MCTS
|
|
|
|
|
hi all,
I am planning to implement a simple text editor in c#. Can anyone tell how to highlight the syntax after loading a file (which contains c# code) into a richtexbox.
Don't wait to hear a word of thanks from anybody when you help them instead ask them to help three other people and ask them to continue in chain.
|
|
|
|
|
There isn't a built in property. This has to be programmed.
|
|
|
|
|
You have to amend the raw rtf. This is quite a time consuming task.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
i was able to play a wave file using a buffer object, but i want to check for the sample rate and other things from the wave file, via code, i thought i can do from the buffer object, for example i wanna check for the sample rate if it is 8k then i needed to converted some how to 44k, i know it will not make a difference in quality.
thanks
qkhader
|
|
|
|
|
will you please help me i am a bit confused i am getting controls on forms which are placed directly on form but not those which are placed on a container control
i am using
this.Controls
|
|
|
|
|
I guess you are doing this:
<br />
private void button1_Click(object sender, EventArgs e)<br />
{<br />
foreach (Control ctr in this.Controls)<br />
{<br />
Console.WriteLine(ctr.Name);<br />
} <br />
}
You need to recurse through the controls to check if they contain stuff
private void button2_Click(object sender, EventArgs e)<br />
{<br />
RecurseThroughControls(this.Controls);<br />
}<br />
private void RecurseThroughControls(System.Windows.Forms.Control.ControlCollection concol)<br />
{<br />
foreach (Control ctr in concol)<br />
{<br />
Console.WriteLine(ctr.Name);<br />
RecurseThroughControls(ctr.Controls);<br />
}<br />
}
I hope this solves your problem
Russ
|
|
|
|
|
it did thanks
|
|
|
|
|
I would recommend shortcutting the recursive call by checking ctr.HasControls()
|
|
|
|
|
Does anybody know how to enumerate all windows like in Task Manager, and get their handle?
Thanks.
|
|
|
|
|
To get the processes like task manager see the System.Diagnostics.Process class.
To get all the windows like spy++ see here
|
|
|
|
|
In my project i have a toolstrip with some 5 button in that. I want to assign the function keys (F1 to F5) for that buttons. How can i give this?
Also if nayone know please let me know how can i give Ctrl+charater to a button as shortcut?
Thanking you
Regards
Hari
|
|
|
|
|
Hi All,
Does anyone know how to create XslTransform object and load body from string instead of phisical file.
instead of doing this:
XslTransform xt = new XslTransform();
xt.Load("myFile.xsl");
do sth like:
string myContent = GetContentFromDatabase();
XslTransform xt = new XslTransform();
xt.Load(......myContent ......)??????
Cheers,
Kamil
|
|
|
|
|
Hi,
I have a C# Win application where I hosted a web browser control.
I have set the property "Suppress Script error" = true.
Now, While browsing some websites, Still I found script error debugging dialog. And after
hassling for a while, I was assured with pleasure that, the internet explorer's default
setting is disabled to debug script error. Only when I installed MS Visual studio 2005, Visual Studio
itself has turned the debugging option on, thats why I used to get annoying debugging script error window.
Now, I am wondering, as MS VS 2005 has turned this option on, so there must be some way to turn this option off
programatically using C#. So, I want to turn this "Script Ddebugging" off when my C# win software loads, and I want to turn the option ON again when my software exists.
Can anyone please give me any snippet to do this ?
Thanks and regards
Emran
|
|
|
|
|
hello friends,
well my question is quite simple enuff
how do we create a wizard in C#? I had made in Visual C++ 6.0 a long time ago but I cant remebr it now and I'm not able to find it.
thanks in advance
Rocky
|
|
|
|
|
This[^] should help you get started.
/ravi
|
|
|
|
|
Try Here:
http://www.codeproject.com/useritems/create_VS_wizard.asp
|
|
|
|
|
yea thanks alot, This material is looking helpful to me. Thanks alot both of u
|
|
|
|
|
Hi,
anyone any idea how i can get the ParameterMarkerFormat to help build my update query's ?
It has something to do with getschema() method of a dbconnection... i guess...
it should return the format to use my parameters in a query,
because the differ when SQLClient, Oledb or oracleclient is used.
Thx
Kurt
|
|
|
|
|
ok me again....
herewith the answer...
(its one long line)
ParameterMarkerFormat = connection.GetSchema(DbMetaDataCollectionNames.DataSourceInformation).Rows[0][DbMetaDataColumnNames.ParameterMarkerFormat].ToString();
Greetz.
Kurt
|
|
|
|
|
i use this code in my project
DirectoryInfo directory=new DirectoryInfo("..\\Agent");
string direc=directory.FullName;
the Agent folder located in bin folder
when i run the project from source it works
but if i run from setup project it give me error File Not Found
"I add the folder and incloded the files in setup project"
how can i solve it
thanks for help
MD_NADA
|
|
|
|