|
Hi,
I susggest you have a look at the menu Debug/Exceptions...
|
|
|
|
|
Hi guys. i have two Questions to make sure the serialization of objects does not alter the following concepts:
i may use windows application with either mdb or MS SQL database.
Is it possible to those database files such as micrsoft access or microsoft SQL to convert binary format, like BIN files extension?
OR with those database files above can be converted in to dll files?
thanks so much for helping..
so much of happy ending...
|
|
|
|
|
zafax4 wrote: i may use windows application with either mdb or MS SQL database.
Yes.
zafax4 wrote: Is it possible to [missing verb] those database files such as micrsoft access or microsoft SQL to convert binary format, like BIN files extension?
I don't understand the question.
zafax4 wrote: OR with those database files above can be converted in to dll files?
I don't see how converting a database to a DLL would be helpful in anyway. A DLL file is fairly static. It generally does not change. In fact, while the program is running it cannot change as the operating system locks the file. By contrast, database files tend to change all the time.
|
|
|
|
|
I don't think any of your questions actually impact object serialization in any way.
You can use a Windows application with any database technology you want. Typically the actual database files are in a proprietary format specific to the database engine (technology) and aren't human-readable. If you want to prevent someone from opening the database outside of your application (through a database management tool) then you need to use the database security mechanisms to password protect your database.
DLLs are not used for data like this. If you want to "embed" the database in to your application, you should look at Microsoft SQL Server Compact Edition[^]
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Thanks you so much scott its really helpful and im happy that u helped me.
i need to database to be embeded in the application as you said, but i dont want to do security externally by using password.
thanks lot!
so much of happy ending...
|
|
|
|
|
You're welcome. The best option would probably be SQL Server CE (Compact Edition). It has a very small runtime footprint (2 DLLs) and stores the entire databse in a single file. It is very compatible with the full-blown SQL Server and pretty easy to work with.
Scott.
—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai
[ Forum Guidelines] [ Articles] [ Blog]
|
|
|
|
|
Thanks Scott lot!
Just now im in the website u given , i'll go through this more and found some helpful samples too!.
scott i really appreciate you being so helpful. thanks .
so much of happy ending...
|
|
|
|
|
I'm very new to C sharp, having come from a c++ and vb background.
Within VS2005, I have a script (MainForm.Designer.cs) that defines all the components in my project (mostly toolstripmenus, buttons, labels, comboboxes etc.), the events attached to them etc
However, every time I try to group the code into logical blocks (including using regions) and save it, when I re-open VS mixes it all up again. I've gone through the help and even tried MSDN, but haven't found a way around this.
Anyone got any ideas?
Thanks in Advance,
John.
|
|
|
|
|
Hi,
all .Designer.cs files are generated automatically by Visual Designer;
you are not supposed to modify them in any way other than through the Designer.
So you should put your own code in one or more separate files.
|
|
|
|
|
Thanks Luc,
Just so I understand correctly, are you suggesting that I put the code from the designer script into my own script and simply call the functions from the designer script?
Best,
John.
|
|
|
|
|
why would you do any of that?
Leave the Designer code as is, where it is; the .Designer.cs files are part of your
project, they will be included in all your builds.
And there is nothing to call except for InitializeComponent(), which should be called
as the first statement in your form's constructor (the wizzard will have put it there
for you too).
|
|
|
|
|
You'll notice that your MainForm.cs and MainForm.Designer.cs both have:
public partial class MainForm
within the same namespace.
The designer file is handled by the IDE and automatically updated everytime design changes are made (this can include project opening etc).
You shouldn't normally make any changes to the designer file yourself. Your own 'functions' and calls to them should be added in the MainForm.cs file, or alternatively create your own MainForm.Functions.cs and/or MainForm.FunctionCalls.cs file and start these files with the namespace required and the public partial class MainForm { .... }
|
|
|
|
|
jgrogan wrote: are you suggesting that I put the code from the designer script into my own script and simply call the functions from the designer script?
No, leave them as they are.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Please help me.
How can we know wheather a user entered text in text box is in correct date format(dd/mm/yyyy). i want to show an error message when entered text is not in correctdate(dd/mm/yyyy) format.please send solution to me .thank you in advance.
|
|
|
|
|
|
use try{cast text to date}/catch (InvalidCastException ){here do what do u want}
|
|
|
|
|
I'm glad you got good answers for your question, however next time, I suggest you use more helpful subject for your posts.
Cheers,
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
use DateTime.Parse() or DateTime.ParseExact().
|
|
|
|
|
Use a more useful subject line next time
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Don't give the option to enter the date by user.
Give the option to select the date from the calender.
Display a popup calender and select the date from it.
Make the textfield for the date to be "readonly".
dhans
|
|
|
|
|
Hi Friends,
I am using datagridviewcheckbox column in datagridview. I have a probelm for clicking checkbox column. The problem is, On datagrid_CellMouseClick event, for clicking checkbox when getting value(selected/not selected) for checkbox column for this event. The checkbox value is null. How can i get checkbox value(selected/not selected) using datagridview?
Thanks in advance
Rameshkumar Thirumalaisamy
|
|
|
|
|
|
please who u can use datagridview in WindowsCE alpplication I search 4 it alot but I don't find. I usually use datagrid and who u use checkbox in it.
I answered with a question (like politicals) sorry but please help me.
|
|
|
|
|
Okay what I'm trying to do is use the Dialog window to have the user find an Excel Database file (xls extension). I have searched Google, Msdn and the site.
Error:
Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. This exception is only raised if a debugger is attached to the process.
Code where OpenFileDialog is created:
<br />
private void import_db(object sender, EventArgs e)<br />
{<br />
OpenFileDialog search_for_file = new OpenFileDialog();<br />
search_for_file.AddExtension = true;<br />
search_for_file.CheckFileExists = true;<br />
search_for_file.DefaultExt = "xls";<br />
search_for_file.Multiselect = false;<br />
DialogResult result = search_for_file.ShowDialog();<br />
<br />
string file_name = search_for_file.FileName;<br />
}<br />
It throws the error when I get to the ShowDialog method.
|
|
|
|
|
Dumb question: Does you Main function have a STAThread attribute?
[STAThread]<br />
public static void Main(string[] args)<br />
{<br />
...<br />
}
|
|
|
|