Friday, September 17, 2004

MDI Child Form Has Single Instance

When working on Windows form application a found that the MDI child form is not singleton as a class cannot have a only single instance by default. I search Internet and found so Technical notes on it and the solution well how good they are is know clear to me. I have my own method of doing the same. The method goes as ... Declare a Class instance in your form as local member or any type in MDI class like.. (in VB.NET) class MyMDIForm { Dim myChild as new frmChild 'Can also be initialize in form load Form_Load() { myChild.parent=Me } ...other code } Than in the frmChild form in add these two lines in form's closing module class frmChild { Private Sub Form_Closing(..., ByVal Cancel as...) handles MyBase.Closing { Me.hide() Cancel=False } ...other code } Quit Simple.. Now in you menu click event in MDI form just use myChild.show() That it is... Though it has one Bug So far... That when ever your all child form are open it will not close the application so you have to take care of it... I will add that code soon Till than bye Sumit Gupta

Thursday, September 16, 2004

ODBC Connection with .Net Framework 1.0

Hi.. I have to connect my .Net Application with the MySQL Database. I am using the .NET Framework 1.0 and MySQL 3.23. Know my problem is that .Net framwork doesn't provide the ODBC connectivity and OleDB is not connecting the Database. So, I need a Odbc driver for the same I found one on the MySql site but that doesn't seems to be the right choice than after 3 days of work ( I got lazy in searching) I found the ODBC .Net Data Provider from Microsoft. (Link : http://www.microsoft.com/downloads/details.aspx?FamilyID=6ccd8427-1017-4f33-a062-d165078e32b1&displaylang=en ) Now, I can connect to MySQL database and work on it... Bye, Sumit Gupta

Tuesday, September 14, 2004

Working on ASP.NET can be Similar to PHP

Hi.. I have just start more research on ASP.Net and PHP and found the two are quite similar in few aspects but vastly different in many. ASP.NET is web Application Server Side Scripting Langauge which is Object Oriented in Nature. PHP on otherhand is Server Side Scripting language that has the Object Oriented feature that for me is hardly used, Infact I haven't Use Class of any type so far in my PHP Scripts. But there are some similarity between the two One ofcourse is that both are used for Server Side script. But Other than that They both has quite other feature as well that are same Like File upload both give similar kind of function though they are accessable from different places, mailing etc. It really doesn't make me confuse on which language i am learning and using It is just for me like a different syntax that is it like in VB.Net and C#. So, for me shift from one to other is quite simple and Know I can Add in Resume that I have Knowleadge of PHP and ASP.Net and I can work on both of them. Bye For Now, Sumit Gupta

Monday, September 06, 2004

ASP.NET - How Good How Bad

Hi.. I am currently working as web programmer in a company that host and design the website. Here we use PHP as our server side scripting language till we got our first programme in ASP.NET. Now, the problem is that only I know the ASP.NET in my company and as I am new as I doesn't have Exp. they doesn't give me the project but tell one of there senior developer to learn ASP.NET. Well Teaching that person ASP.NET is fun as I always thought ASP.Net is best but when we sit together and see if and but on ASP.Net we found that it is sometime get in much deep of topics like security. In normal web site we have develop a user is hardly concern of security but concern on speed. Even our company site is build using PHP and have no security issue till date. So, Is it really good to have a programming language as secure as ASP.NET My opinion change to "NO" as most of site in developing nation is not require that much headace as ASP.NET can give and it is not for the normal programmer. I like Microsoft Technology more an other company simple because I feel they have somethink to give for your money. But ASP.NET is not recommended if you are not building site like microsoft.com, msn.com, Yahoo.com or even Downlaod.com but it is not for site like Google.com as it is not bigger site but only there data is bigger. That only my thought on ASP.NET Bye for now Sumit Gupta