|
For something like log files, you don't really need a full-blown database.
If you just want a database to make working with large files easier, I suggest you take a look at SQLite[^] (.NET wrapper[^]). It is not a database server, but a library that runs directly in your process.
It's ideal for client-side databases where you don't want to deal with deploying a database server; it's just another .dll to be copied with your app.
|
|
|
|
|
I want to hide/show a particular row of my tablelayoutpanel by the click of a button. I dnt want to remove and add the row again,i jst want to simply show/hide....
Can smebody help me with the code....????
Thanks in advance....
|
|
|
|
|
Using JQuery[^] its as simple as this
function ButtonClick()<br />
{<br />
$("element_id").hide();<br />
}
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
There is no facility to do this in the TableLayoutPanel methods and properties. You cannot make rows visible or hidden. You'd have to fake this using some other method.
Off the top of my head, you could move the section you want to a seperate TableLayoutPanel, which itself is put in a Panel control. You can make the Panel visible or hidden at will, taking its child controls with it. Or you could do it the other way and put your child controls in a Panel, then put the Panel in the TableLayoutPanel row. This method may not be feasible depending on your situation.
|
|
|
|
|
Use SizeType.Absolute with a value of 0F (for the RowStyle) to hide a particular row. For example, if you had 3 rows and wanted to alternately hide and show the middle row, you could use the following:
// Hide middle row.
this.tableLayoutPanel1.RowStyles[ 0 ] = new RowStyle( SizeType.Percent, 50f );
this.tableLayoutPanel1.RowStyles[ 1 ] = new RowStyle( SizeType.Absolute, 0F );
this.tableLayoutPanel1.RowStyles[ 2 ] = new RowStyle( SizeType.Percent, 50F );
// Show middle row.
this.tableLayoutPanel1.RowStyles[ 0 ] = new RowStyle( SizeType.Percent, 20f );
this.tableLayoutPanel1.RowStyles[ 1 ] = new RowStyle( SizeType.Percent, 20F );
this.tableLayoutPanel1.RowStyles[ 2 ] = new RowStyle( SizeType.Percent, 20F );
(Note that the "Percent" styles don't actually need to add to 100. The individual values are relative to the "total" of all the percents, so each row in the end winds up using 1/3 of the panel).
(Also, you should group the controls on the "hidden row" in some way so you can collectively disable them so they don't get focus when hidden via tabbing).
modified on Monday, February 1, 2010 6:26 PM
|
|
|
|
|
Hello
When I have a look at the Color and the Font property I use in my designer, the language in the two editors is a different one.
The FontDialog is displayed in German (i assume because of the operating system's language).
But the ColorDialog is displayed in English.
How can I change the ColorDialog's language to German as well?
I have searched here for articles about ColorEditors and found this one:
ColorEditorEx - An extension to the ColorEditor to support translucent colors[^]
On the screenshot the language is German, but when I open the application, its english again (the tabs).
I hope someone can tell me how it is possible to change the language of the ColorEditor to german
Windows language = german
Visual Studio = english (maybe thats the reason?)
Thanks for your help in advance
modified on Monday, February 1, 2010 9:38 AM
|
|
|
|
|
Hello to all.
I have a problem, I need to encode a password string in SSHA(this uses SHA1 in some way). I don't know how to do this. I didn't find any article on the net about that.
I need to do this because I'retrieving UserDetails from OpenSSO server, and the password retrieved is in SSHA encoded, and I need to compare with the given one password that's the input for my method, but to do that I need to encode this using SSHA.
Some ideas?
Thanks in advance.
|
|
|
|
|
|
Thank you for your post, but I found this article before posting the question. It doesn't help me.
I think right now to change the strategy in my application because of that.
|
|
|
|
|
SSHA is the default encoding in openLDAP - I havnt seen many/?any stand-alone implementations of SSHA, so, you could download openLDAP, pull the code you need out of that !
ps .. its also used by the htpasswd function in Apache, so you could d/load that as an alternative to openLDAP
'g'
|
|
|
|
|
Thank you for your advice. I'll try to solve my problem.
|
|
|
|
|
I found a plausible implementation that wouldve been easier to start with, but Im at home and its at work
There is a good discussion with java and perl implementations at http://www.securitydocs.com/library/3439[^]
'g'
|
|
|
|
|
Hi,
Can anybody explain me what is WPF and WCF and where it is used?
I want free ebook on above topics.
Can anybody give me d books?
I searched books on net, but nothing is free.
Regards,
Sunil G.
|
|
|
|
|
If you have a look, there is a forum for WPF, WCF et al.
Ask there, they might be willing and able to assist.
Panic, Chaos, Destruction.
My work here is done.
|
|
|
|
|
Sunil G wrote: Can anybody explain me what is WPF and WCF
I searched books on net, but nothing is free.
There are many free articles introducing WPF on the net, including here on CodeProject; go to the articles page and look for the headings. I have not tried WCF yet but I suspect the same holds true for that.
MVP 2010 - are they mad?
|
|
|
|
|
Sunil G wrote: I searched books on net, but nothing is free.
There's a reason they aren't free. The authors have to eat, so it's not fair to expect them to spend months writing books on complex topics, and then expect them to give them away.
If you don't want to buy a book, then read through the WPF docs on MSDN, and read through the articles by Josh Smith, Sacha Barber and Karl Shifflett here on CP.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Friends,
Iam very to this community.. I want to develop a application to retrieve mails from g-mail into my application(just like mini outlook). so what are the APi's Available for it ... Please some body share it...
Thanks in ADvance.....
|
|
|
|
|
|
Hi Pardhu2.
Did you found the way to to retrieve mails from g-mail?
Please help me. I need to retrieve mails from g-mail but I can't find how to do it.
Thank you.
|
|
|
|
|
Hi SergGM,
there is a shareware application witch can extract emails from gmail and saves them as .txt documents (or one .txt document). [Link].
I'm trying to create similar solution of mine.
|
|
|
|
|
Do other people run across this Visual studio Help issue(I'm using vs2008 pro all service packs) and when I accidentally hit F1 or cause anything that resembled asking for help, the DExplore.exe opens up and runs "Help Update in Progress" for the rest of the day. VStudio is frozen and you cannot kill the dexplore thread without killing vstudio too.
I've tried setting help options to Not allow offline search, to no avail. I've trid opening up dexplore on its own, but even then F1 will trigger a new dexplore. I've tried removing F1 from the keyboard macros
Anyone else experiencing this. It happens to me on different computers as well.
|
|
|
|
|
Happens to me all the time. Not completely locked up however. It comes back after 4-5 minuts.
I never have found a good way to prevent it.
|
|
|
|
|
Hi All,
I have to import a table & a Query from c:\Programfile\asd\MyProject\test.mdb to c:\document&settings\ applicationdata\test.mdb.
I have created & established the Connection string & all. the only thing i am not getting is Query needed to pass...
Please help..
|
|
|
|
|
Well you should post it in the DB forum/section.
Anyway here's one way how you could do it(the query):
OleDbCommnand cmd = new OledbCommand(con);
cmd.CommandText = "CREATE PROC nameOfQueryHere(inName VARCHAR(50))
AS SELECT * FROM tblNameHere
WHERE tblNameHere.Name = inName";
cmd.ExecuteNonQuery();
Of course try catch and all that is up to you. I just posted an ideea.
[EDIT]The same technique for creating a table.
Use a command string in witch you create the table and execute it[/EDIT]
modified on Monday, February 1, 2010 9:07 AM
|
|
|
|
|