|
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
|
|
|
|
|
I haven't tried this, but from the docs it looks like if you do
richTextBox1.Rtf = richTextBox2.Rtf;
that will do what you want. The .Rtf is supposed to contain the text, including the RTF formatting codes.
|
|
|
|
|
I want to update a Jet 4.0 database using databound textboxes. I was trying to find some examples of how to do this on the Net, but all of the examples that I could find were using datagrids. Does anyone know of a online example that updates a Jet database using databound textboxes. I am using a OleDbDataAdapter.
Thanks.
|
|
|
|
|
There is no difference weather you use textbox's or datagrid's. Both are just a method of displaying and editing data. The updating is done by the DataAdapter.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
lets say i have tabpages with lots of textboxes on each page. (winform)
is there a shoort way to empty all textboxes on each page?
|
|
|
|
|
I use code like the following to set control's to their default values. You can either pass in the tab page to the function or modify it slightly and pass in the tab control and step through the control's pages.
private void ClearTextBoxes (Control parentControl)
{
// Step through each control in the parent control and clear it's text if a textbox
foreach (Control control in parentControl.Controls)
{
if (control is System.Windows.Forms.TextBox)
control.Text = string.Empty;
}
}
This method has the added advantage that you can also default check boxes' and other controls' properties by adding an additional if (control is [control type]) statement in the for loop.
Hope this helps
Aaron
|
|
|
|