- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
15 Posted Topics
Re: CONNECTION STRING: using System.Data.OleDb; using System.Data; public class AccessMySQLConnection { OleDbConnection c = new OleDbConnection(); public string Path = Application.StartupPath + "\\Data\\SonamDb.mdb"; public string connection_string = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + Path + ";"; public void Open() { if (c.State == ConnectionState.Closed) { c.ConnectionString = connection_string; c.Open(); } } public void Close() … | |
Re: MessageBox.Show("Name:", BName.toString(), MessageBoxButtons.OK, MessageBoxIcon.Information) | |
Re: i guess you will just move the pdf files into another directory.. | |
Re: your class seems to be working... I think the problem is on how you call the class. private void btnEquals_Click(System.Object sender, System.EventArgs e) { Calculator x = new Calculator(); double answerNumber; answerNumber = x.Equals(firstNumber, secondNumber, arithmeticProcess, answerNumber); txtDisplay.Text = Convert.ToString(x.GetDisplayText(answerNumber)); } | |
![]() | Re: create a new event handler in `Form2.designer` ex: this.form2_unload += new System.Windows.Forms.EventHandler(this.Form2_unload); then: private MainForm gg; public Form2(Project1.Form1 p) { InitializeComponent(); this.Owner = p; gg = p; } private void Form2_unload(object sender, EventArgs e) { gg.form1.show(); //or form1.visible = true; this.close(); } |
Re: create a new class for SQLconnection ex: '********************************************* 'Execute_SP_Reader() 'Call this to execute a SELECT statement '********************************************* Public Function Execute_SP_DataReader(ByVal sp_name As String, _ ByVal param As SqlParameter()) As SqlDataReader Open() Dim cmd As SqlCommand = New SqlCommand(sp_name, c) cmd.CommandType = CommandType.StoredProcedure 'parse and add the parameters For Each p … | |
Re: int a,b,c; a = Convert.ToInt32(textBox1.Substring(1,1); b = Convert.ToInt32(textBox1.Substring(2,2); c = a+b; textbox3.text = convert.toString(c); hope this help... | |
Re: create anther data set w/c will hold the updating stuff... | |
Re: I think you will just configure the security folder of the Database to set the desired user.. | |
Re: [QUOTE=thilinam;1006607]Hi, Thanks for helping me.. I'm using widows authentication here is the connection string. [CODE]"Data Source=WS4001\sqlexpress;Initial Catalog=tempdb;Integrated Security=True"[/CODE] I tried to use sql authentication. But I'm unable to connect database. How can I find the user name which associated with trusted sql server. please help me Thanks.[/QUOTE] I think your … | |
Re: use a data reader ex: while (drResult.read()) x = drResult("id").toString() end drResult.close() of course you must use a stored procedure in order to retrieve the info in a particular table | |
Re: [QUOTE=Kimberley Smith;309525]I am new to this forum and very new to vb.net. The previous programmer wrote a program in vb.net that helps us with our merchandise received transactions. It is now getting the following error: "System.Data.SQLClient.SQLException Timeout Expired. The timeout period elapsed prior to completion of the operation or the … | |
Re: [QUOTE=san_crazy;1006697]I am designing a website in ASP.Net and want to use captcha in my website. I believe it is used for security, will I need to create an additional column in database table to store string in capcha image? if the purpose is security, then how should I deal with … |
The End.