
Madz
Avatar/Signature-
Posts
173 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by Madz
-
Dear You dont need to worry about any thing You purchased a .net tool good , go ahead and do as much as you can. .NET languages are compatible with each other. it means that a library made in Visual Basic can be used in C# or c++. because all languages targets the same Framework. You dont need to download any extra SDK . i think its included in VB.NET CD. to deploy application on other computer you just need the EXE file and .NET Framework Runtime. that's also included on VB components CD. I hope now you have cleared every thing.
-
I hope CommandButton.Focus can help
-
Dear You just need to create a Save Functions which takes a filename as input parameter and process the save functionality there private bool SaveFile (string FileName) { //Your code here } you just need to write code on Click Event of command button to create a file name You also need to have some option buttons from where you should determine which company's filename is saved. this can be done using DB or some other option. i hope you will understand C# code string strFileName,strComanyName,strNumber; strCompanyName = "GetCompanyName" strNumber = //Some Number from TextBox , strFileName = DateTime.Today.Year.Tostring() + "-CompanyName-" + strNumber I hope this will solve problem
-
fade in and fade out forms using anitmate windows API
Madz replied to Winston's topic in Windows Forms
Just set the Forms opecity to 0 and Run a For Loop in a timer and with some interval increase the opecity it will make a fade out effect -
we are binding an array to a datalist and on datalist's selected index changed we fire an event but dont know how to get the array item of the instance fired its easy with dataset we can set a datkeyfield in datalist declaration and when even index is changed we can get that data key field but since array has no filds problem is how to reference the data
-
Do you have Administrative access to PC. if not you will not be able to modify registry. also check my example at http://www.xtremedotnettalk.com/showthread.php?s=&threadid=69856
-
Well that's great features of Visual Basic. but i faced a lot of problems with VB, i have a background of C and you know When i tried to do some thing in Visual Basic i faced a lot of problems because at the end of every line i put ; and that caused too much problem for me , so i decided to use only c family. Cheers !
-
Well I guess this would help us adding a new colorful cursor in our application.
-
That;s a strange error message , might be possible that after reinstalling Visual Studio this is solved.
-
and What about MSPRESS Kit Programming Visual Baisc Core Reference
-
There are 2-3 problems which you are facing . 1- Turn the data grid property "ReadOnly" to false because this might prevent you from adding new rows 2- DataGrid.Refresh method refreshs it. 3- DataGrid will not work as you are thinking it do in past in VB6.0 if you make changes to some data such are adding new rows it will not save it back to database unless you call the update command of data adapter. because ADO.NET is disconnected data model so you need to submit the data back to database if you want to save changes to it. just try make an idea about ADO.NET , how it works.
-
I want to Ask you one thing When we define some new object such as connection object or some sql command with in a procedure or sub what happend to them after the function is over ? such as after Exit sub are they remain in the memory or they are disposed off automatically ?
-
please try to check XmlReader and XmlWriter Classes. its better if you check http://gotdotnet.com/quickstart
-
L Remeber one thing while working with SQL 1- For Insert / Update , always use Store procedures coz SQL uses very powerful memory management so using stored procedurs will speed up your entries rather then writing Insert or Update Statements. and its a secure method you dont need to put the table name in the CommandObject just the procedure name and Parameters. This is better to use Stored Procedures. 2. for SQL Connection, Rememeber a rule of thumb. try to open the connection as late as possible , and after your query close it as soon as possible. its better to use this mecehnism try { cnSQL.Open SQLCOMMEND.EXECUTENONQUERY cnSQL.Close } Catch ( Excetion ex ) { MessageBox.Show(ex.ToString()); } Finally { if (cnSQL.State == ConnectionState.Open) { cnSQL.Close(); } } This method is very good because if it founds the connection open it will close it.
-
My dear panal is just like a little form. a section which is used to group controls. instead put some Lable and then show your text in label.
-
Changing form ICons is a big problem coz mostly people when change FormICon thinks that this would apply to the application. but the Aplication uses the other icon
-
But we still have an option to use our Custom Colorful Cursons in our Windows Froms Application
-
Importing Data from SQL to MySQL is a big problem. some time ago i have seen a Tool, i didnt remebered its name but its functionality was to transfer data from SQL Server to MySQL. i hope google.com might help you in this
-
MySQL ADO.NET blob dataadapter: How can I do it?
Madz replied to normth's topic in Database / XML / Reporting
Only a little number of .NET developer has worked with MySQL. when i used it i tried Microsoft ODBC Providers. but it was not working properly then i skipped it. I hope you will find your solution becoz open source community is working on Managed MYSQL porvider. -
my dear you need to do this Dim mycn as OleDBConnection = new OleDBConnection(Connection String) Dim mycmd as OleDbCommand = new OleDbCommand mycmd.Connection = mycn mycmd.CommandText = "Insert Into Table (Column1,Column2,Column3) Values ('" & Value1 & "','" & Value2 & "','" & value3 "')") mycn.open ' For UPDATE, INSERT, and DELETE statements, the return value of ExecuteNonQuery is the number of rows affected by the command. For all other types of statements, the return value is -1. dim intI as integer = mycmd.ExecuteNonQuery if intI <> -1 MsgBox ("Data Inserted Successfully") end if mycn.Close
-
How Crystal Reprot Works with ADO.NET How Crystal Reprot Works with ADO.NET ADO.NET data access model i entirely diffierent from other data access methedologies. if you are going to use ADO.NET to fill crystal Reports you need to do things in theis sequence. 1- Design an XML Schma Defination file (xsd) which will be used while designing Crystal Report. this contains nothing just tables which would be contained on Report. 2- Design a Crystal Report. 3- add a Crystal Report Viewer to some form and bind it to the Report which we designed and fill the report with ADO.NET data here 's a little example. in C# it would be easier for VB Developers to understand //Here i have made a function which Loads an Already Designed Report //in a Crystal Report Viewer and fills it with data //this is same like you fill some DataGrid // mysql is a Connection which has been already intialized so dont need to mention the Query String using CrystalDecisions.CrystalReports; <OR in VB> imports CrystalDecisions.CrystalReports //This is a simple SUB which takes an input parameter Query // and use that Query string to get data. public void LoadCarData(string strQuery) { try { //rptCars is a Crystal Report which was designed to View Cars Sales rptCars rptc = new rptCars(); //Here Defining a SQL Data Adapter and giving some Qurey (select * from cars) SqlDataAdapter myadp = new SqlDataAdapter(strQuery,mysql); //Here Defining a new DataSet myds DataSet myds = new DataSet(); //Now Filling the DataTable Cars in the Dataset myds // Dont be confused with Cars table we give this name to the result // Table for our Reference if you dont specify the name of Table // by Default DataAdapter gives it name (Table1) myadp.Fill(myds,"Cars"); //Next I am doing seting the CarReport Object to get data from this tables rptc.SetDataSource(myds.Tables["Cars"]); //once my report is filled with records i am setting Crystal Report Viewer's //Report Source Property to the Report Object which we instentiated from //and already designed report. reportviewer.ReportSource = rptc; reportviewer.Zoom(2); } catch (Exception ex) { //If some error occures it will show it in a messageBox MessageBox.Show(ex.Message,"Error"); } finally { if (mysql.State==ConnectionState.Open) { mysql.Close(); } } }
-
tihs is very simple if you are using C# then before the function /// <summary> /// This Function Creates a backup with out encrypting it /// </summary> private void BackupDatabase(string FilePath,string FileName) { } i m not sure for VB
-
Can any one tell me some method throgh which i can convert a deciaml to Binary Such as if i want to convert 256 to 010101 format what whould be the keywork of C#.
-
You need to implement a FOR Loop that checks all direcotries and use this method FILE.Exists(FileName) this has a boolean value if files exists then stop search other wise go to next directory
-
What is SDK ??? you are wrking with ,NET i think you have download .NET Framework SDK the reason why you are not getting any code from the specified DLL because this is developed by MICROSOFT they have obfuscated its code so no one can view its native code.