|
You should pretty close to never call the garbage collector.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi Dave,
Talking about good practices. Thanks, that finally also clears up the difference between myForm.Show() and myForm.ShowDialog(). Shame on me, but I didn't know, and never bothered to find out.
In this case I found that the parent form of the application does initiate all child forms with .ShowDialog(), although no data seems to get returned. Just to stay on the safe side though, I followed your advice and used myForm.Dispose() everywhere in the parent form, instead of in the child forms.
Cheers,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hi,
My experience with the garbage collector is limited to seeing the guy empty the trash can outside my house.
What does the garbage collector do other/more/less than the dispose method?
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
.ShowDialog() returns a DialogResult that the form sets before it closes. Look up the docs on .ShowDialog() and it'll show you an example.
|
|
|
|
|
Dispose cleans up resources. The GC clears the memory. But, it does this in a highly optimised way, automatically. Callnig it yourself is pretty close to always just going to slow things down
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Okay thanks, that is really good to know. And thanks for the help.
Cheers,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Hey Guys
I have problem inserting single and double quotes in DB
How can i insert single Quote and Double Quotes in DB
Can You provide me a simple code for that
Regards
Ramy
|
|
|
|
|
hi, use this one
q = "select * from main where lotnumber like " & """" & ComboBoxlotnumber.Text.Trim & "%" & """"
here ComboBoxlotnumber.Text.Trim may contain single & double quotes
hope this helps
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
Apostrophes inside a string in SQL has to be encoded, and depending on what database you are using, backslashes also. There is nothing special about quotes in a string, so if you have problem with them, there is something else that you are doing wrong.
For MySQL: Replace "\" with "\\" and replace "'" with "\'" (in that order).
For MSSQL, Access: Replace "'" with "''".
---
single minded; short sighted; long gone;
|
|
|
|
|
|
Hi!
Please help me how to disable and enable Task Manager in vb.net.
Best Regard
Jayson
More problems
More Knowledge to gain
Just keep on going
|
|
|
|
|
You really can't, and I can't imagine a non hostile reason for wanting to.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi
It is not possible ... but command for running it is taskmgr.exe.. Just try out to stop this process using this command
Harini
|
|
|
|
|
It can be done through Group Policy, not through your code. Unless you're building a kiosk machine, there's really no reason to do this.
Get your hands on the Windows XP or Windows Server 2003 Resource Kit (from Amazon) and either of those nice thick books will explain what Group Policies are and how they work in different networking or non-networked environments.
|
|
|
|
|
hi,
I want to know the Path of the Parent folder of Particular File/Folder. How can i achieve this thing in VB.net.
Thanks in Advance
Rupesh Kumar Swami
Software Engineer,
Integrated Solution,
Bikaner (India)
|
|
|
|
|
|
How do i convert Excel database file to Sql server database file dynamically?
Cynara
|
|
|
|
|
If you mean getting the data from an Excel spreadsheet into SQL Server, where the spreadsheet is in a known format, I would read the data from your spreadsheet a line at a time and check for errors, then insert using an SQL Statement.
If this isn't what you were getting at, feel free to provide more information.
-------------------------------------------------
Damian - <insert something="" useful="" here="">
|
|
|
|
|
Excel is not a database, not even remotely.
You can control Excel using C# code, if you get the Microsoft libraries to do this, and you have Excel installed. Then you can read spreadsheet values and write SQL to put them into any database or other format you like.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How do i convert Excel database file to Sql server database file dynamically?
|
|
|
|
|
hello frnds,
i want to convert RTF document to HTML document in vb.net 2.0
if any one have code, then plzzzz give me
thankx in advance/Best Regards
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
It Depends on what you are actually trying to do.
Does the RTF document contain ready HTML code, and you only need to convert it, or do you just want to insert text from the RTF document into an HTML document?
If it contains ready HTML code you could just try
file.Move("yourHTMLfile.rtf", "yourHTMLfile.html")
Otherwise you'll have to read through both documents, combine the text from the RTF document with the code from the HTML document, and then create a new HTML document from the combined data.
Good luck,
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Dear frnd Johan,
thankx for your valuable advice,
but my rtf file contain plain text and how can i convert the file in to HTML file,
if know the code,then plzzz..give it to me,
once again THANKX,
best regards,
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Hi,
I am just not exactly sure what it is that you are trying to do, so I am guessing that you want to insert the text from your rtf file into a web page consisting of html code. Something along the lines of:
Text in the RTF file:
The quick Brown Fox Jumped Over The Lazy Dog
Content of the (empty) HTML file:
<br />
<html><br />
<head><br />
< title>blablabla< /title><br />
</head><br />
<body><br />
<br />
</body><br />
</html><br />
The text would need to be inserted between the body tags.
Is this what you are trying to accomplish?
Johan
My advice is free, and you may get what you paid for.
|
|
|
|
|
Let me clear every point to you,
I have a RTF file at (bla bla ) location
and i just want to convert that file in to html file.
if i am directly save the file as HTML then all the content are display in binary format,
so how can i convert the .RTF file in to .HTML file
Clear ???
I am using vb.net 2.0
best regards,
-koolprasad2003
Life is very beautiful... Life is swing with you..Enjoy..
|
|
|
|