|
The TreeView doesn't support the Tab character. You'll either have to TRY prepending the strings with Space characters or do without. Since it's a TreeView that already does indenting for child nodes, I really have a hard time thinking of a good reason to use such formatting...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi ineed help about hoe i can write code in c# that protect my file and folder from delete and write and if i want protect file from open.... thanks for any one help me
|
|
|
|
|
WHy don't you try the FileSystemWatcher namespace ?
James
|
|
|
|
|
thank you for response but i try but this name space
give you tha ability to rebort about chang after it happend
|
|
|
|
|
You'll have to write a file system extension to accomplish this. This is NOT a project for the faint of heart or weak in COM Interop and NTFS extension skills.
Here's a better idea. Just use the normal NTFS Security permissions. The requirements you specified are exactly what Security is for.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thank you for your response and thank you for your advice
but how i can write code in c# that help me to do the security using ntfs;)
|
|
|
|
|
You wouldn't have to. I really can't give you the details because you haven't said what files and folders your trying to protect or under which folders any of this stuff is stored.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Fit_Together(Control c1, Control c2)
i need to write a function which moves the control c2 close to c1 ...
could anyone give me some tips regarding this or maybe post a method which implements that.
Im thankful for every help!
Best regards
denis
|
|
|
|
|
|
You can write in the event that you want that fitting to be fired that code:
private void Onfitting()<br />
{<br />
Point Differnce = new Point()<br />
Control1.Location = new Point(0,0);<br />
Control2.Location = new Point(Control2.Location.X-theDeffernceBetweenthem.X,Control2.Location.Y-theDeffernceBetweenthem.Y);<br />
}
|
|
|
|
|
Hi everyone,
I want to export some data to a Excel file. I can export data in a DataTable to the file while images can't be exported. If you have some methods, please tell me. Thanks a lot.
In addition, how to put data in a merged cell?
Thanks
welsrping
hope for help
|
|
|
|
|
plz give me some examplees of audio and video which are not included in 3rd party as early as possible.thanx
shumyla
|
|
|
|
|
Please to be searching Yahoo or Google for code.
We will help you with your code, but will not give you any. You don't learn anything that way...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
plz send me some examples related to send audio(convert voice to wav file) and video(convert picture or video to avi file)in c#.
shumyla
|
|
|
|
|
Hi all,
I have one question about setting up the installer. I've set the RemovePreviousVersions of installer to true, and have changed the installer version every new release(it also changed the product code).
However, the installer still can't detect the pervious version of application. Do I miss any important steps?
Could you please hlep.
Regards
|
|
|
|
|
|
for me, my previous version number of installer is set to 2.1.0
now I set the installer version to 2.1.9 , it still doesn't work.
A strange issue, I was changed back the RemovePreviousVersions to false, however, the installer will go to install page without any prompting. As it will ask user to remove pervious before, now it can't.
I really don't know how to solve.
|
|
|
|
|
Is it possible to create a custom drop down control much like the existing Combobox, but with my own content on the drop down area? I have special needs, for instance to include a Textbox and a Button on the drop down area.
I cant figure out what kind of window the drop down area is. It must be a window since it can cross the parent form boundaries, but at the same time it doesn't remove the focus from the parent window so it acts like a regular form control. To create such a "hybrid", do I have to use the NativeWindow class, or has it all to do with redirecting window messages from the popup window to the parent window?
The ideal situation would be to have some kind of free floating "PopupPanel" control that could be added to a form, but that isn't restricted to parent form boundaries. Any clues on how to write such a control?
Regards,
Björn Morén
Stockholm, Sweden
|
|
|
|
|
What about trying to have a regular dropdown with a hidden panel (which the hiddenpanel will contain all the controls you with to show )and in the event of dropin gthe combo ,show the panel.
ByMindOnlyYouCanDoIt
|
|
|
|
|
|
Hello all,
i need to create access database programaticly and save the database file.how can i do this with the C# code.
Regards
Hay
|
|
|
|
|
|
Thanks Yaakov for you help,
I tried this code and it works fine.
but now how can i create a table with this way?
private Access.ApplicationClass AccessApp = new Access.ApplicationClass();
AccessApp.Visible = true;
AccessApp.NewCurrentDatabase(c:\test.mdb);
Regards,
Hay
|
|
|
|
|
Here is an example using ADOX. Just import the ADOX COM object as a reference.
ADOX.Catalog catalog = new ADOX.CatalogClass();
catalog.Create ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\mydb.mdb;Jet OLEDB:Engine Type=5;");
ADOX.TableClass table = new ADOX.TableClass ();
table.Name = "NewTableName";
table.Columns.Append ("MyColumnName1", ADOX.DataTypeEnum.adInteger, 0);
table.Columns.Append ("MyColumnName2", ADOX.DataTypeEnum.adVarWChar, columnSize);
table.Columns.Append ("MyColumnName3", ADOX.DataTypeEnum.adDate, 0);
catalog.Tables.Append (table);
You can also check out xsd2db. You can load the project and use the code that it uses to automatically generate an access database from an XSD.
http://xsd2db.sourceforge.net/[^]
-
Drew
|
|
|
|
|
Hi @ all,
I want to copy the contents of a richTextBox to another without loosing the text styles.
richTextBox1.Text = richTextBox2.Text // copies the text contents without the styles
or is there any option to set or an other additional store to keep the styles with the text ?
Thank in advance
Frank
|
|
|
|