|
Hi,
I was wondering if it is possible to have a control that is automatically updated when the user changes a directory that that control represents. This is similar to a folder browser dialog but instead it's inside a form rather than a separate control.
Thanks
RockmanHero2003
My computer finally got faster...I threw it out the window and it went very fast.
|
|
|
|
|
Look at System.IO.FileSystemWatcher.
This class exposes events that will let you know when certain file system changes have happened. This is exactly what Folder Browser Dialog uses (under the covers).
|
|
|
|
|
Hi RH2K3
This sounds interesting, but I think your spec needs a bit of work;)
Can you expand on "a control that is automatically updated" and "inside a form rather than a separate control" ?
Gary Perkin.
|
|
|
|
|
I heard off somebody here that i could use C# to make DOS apps (Though it would be limited)
And i was wondering, what compiler compiles C# into a 16-bit DOS app. instead of a standard windows app?
|
|
|
|
|
err don't you mean "Console" type project?
The Undefeated wrote:
And i was wondering, what compiler compiles C# into a 16-bit DOS app. instead of a standard windows app?
No compiler I know about do that. All compile C# to IL.
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Err. No i know how to make console app. but i wanted something that would run in DOS, console app dont work in DOS (they need to be compiled for use with DOS using something like Turbo C++ - but of course thats for C++)
|
|
|
|
|
It's easy then. You must have .NET Framework for C# apps. IMO .NET Framework is for Win2k and newer, definitely not for DOS. There is way how to pre-compile app to machine code, but that's for faster startup only (I think) - NGen[^]
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
dnh wrote:
IMO .NET Framework is for Win2k and newer
Actually the .NET Framework works with everything since Windows 98 (just not 95), but still, not in old regular MS-DOS.
-- LuisR
Luis Alonso Ramos
Intelectix - Chihuahua, Mexico
Not much here: My CP Blog!
|
|
|
|
|
|
I'm afraid you are out of luck Undefeated. .NET requires the underlying OS to able to be 32-bit capable. DOS on the other hand is only 16-bit capable hence .NET will not be able to run on it. Sorry...
|
|
|
|
|
someone could have written its own ompiler ^o^
that compile C# CLR for DOS with customized functions
|
|
|
|
|
Dear,
Thank you for reading this question, please help me out if you can.
I got a paradox table without primary key, now I am trying to insert data into it, but keep getting an error: "Operation must use updateable query". Now after doing some readings, I found that it is because the table doesnt have a primary key, and the suggestion was to create a primary key for the datatable...
Now how do i do that? I also try to use the InsertCommand, but doesn't know how it works.. if someone could please explain this to me.. like how it works, and when it get triggered..etc
thank you.
Elapid
elapidd@yahoo.com
Elapid needs help.
|
|
|
|
|
elapid wrote:
Now how do i do that?
The DataTable class has a PrimaryKey property which takes a DataColumn array, where each data column in the array is a column of the data table that is the primary key.
So, you would do something like:
dt.PrimaryKey=new DataColumn[] {dt.Columns["ID"]};
Of course, the real question is, why doesn't your table in the database have a primary key? If you load the data set with schema information, the data table should already be configured with the primary key, I think.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Marc,
I understood the primary key part, but in paradox table, i dont really know how to make a [name].DB (paradox table) with a primary key.
mysql command is : create table Test.DB (Code varchar(2) primary key, Desc varchar(30))
and it keeps bombing on me saying index 345-3-543-5-34 is not valid
any suggestion?
Elapid For The Win
|
|
|
|
|
|
I was reading a simple article on the Command Pattern and had a quick question.
The article is short and its here:
http://www.c-sharpcorner.com/Code/2002/Mar/CommandPatternsInCSCKU.asp[^]
For example if I had a base Class DVDPlayer and I wanted a status on the player would this be implemented this way ??
<br />
public class DVDPlayer : ICommand <br />
{<br />
protected string mCDStatus="";<br />
<br />
public CDPlayer()<br />
{<br />
<br />
}<br />
public string CDStatus<br />
{<br />
get{return this.mCDStatus;}<br />
}<br />
<br />
public void Execute()<br />
{<br />
<br />
}<br />
public class DVDPlay: DVDPlayer, ICommand <br />
{<br />
public CDPlay()<br />
{<br />
<br />
}<br />
public new void Execute()<br />
{<br />
base.mCDStatus = "Playing";<br />
}<br />
<br />
}<br />
<br />
With my main method like this ??:
<br />
Remote rm = new Remote();<br />
CDPlayer player = new CDPlayer();<br />
player = new CDPlay();<br />
rm.Invoke(player);<br />
MessageBox.Show(player.CDStatus.ToString());<br />
Is this the best implementation ?? Good Design ? Any ideas ?
thks in advance ..
Note : Remote class below:
<br />
public class Remote<br />
{<br />
public Remote()<br />
{<br />
<br />
}<br />
public void Invoke(ICommand cmd)<br />
{<br />
cmd.Execute();<br />
}<br />
<br />
}<br />
|
|
|
|
|
Dato wrote:
Is this the best implementation ??
hmm
Dato wrote:
public string CDStatus
{
get{return this.mCDStatus;}
}
Dato wrote:
MessageBox.Show(player.CDStatus.ToString());
David
Never forget: "Stay kul and happy" (I.A.)
David's thoughts / dnhsoftware.org / MyHTMLTidy
|
|
|
|
|
Why not just modify the original source code?
I take it that ICommand specifies the Execute method? It's really bad practice to use "new", and it shows that the original implementer didn't design the class correctly--the base class that implements Execute should be declarated as virtual, so derived classes can override it.
Why are you doing CDStatus.ToString() when CDStatus returns a string?
I also don't like the "this.mCDStatus", in particular, the "this.". It's redundant and unnecessary. "return mCDStatus" is quite sufficient.
Marc
MyXaml
Advanced Unit Testing
YAPO
|
|
|
|
|
Hi guyz, I'm developing a small experimental application for myself...and I want to implement some motion detection algorithms.
However, I want to take the input from a webcam. Therefore my question is:
How do you use a webcam through C#??
Any help is highly appreciated (even a web tutorial would be a nice suggestion!)
ThankS
GaMBiT---> aND ReVeNGe WiLL Be
|
|
|
|
|
|
10Q for your help!
GaMBiT---> aND ReVeNGe WiLL Be
|
|
|
|
|
|
10q for your help!
GaMBiT---> aND ReVeNGe WiLL Be
|
|
|
|
|
I have readed this article:
http://www.codeproject.com/cs/miscctrl/AlphaBlendTextBox.asp
it allow to download a dll to implement the custom textbox.
How can i use that dll in my project?
Thanks
|
|
|
|
|
add arefernce to it in your soulution explorer //if you are using VS.NET.
|
|
|
|