464 Posted Topics
Re: what you want to ask? You elaborated confusion. Any way it is obvious that when you call a function it will return the pointer to caller after completion if not then where you suppose it have to go? Mean what code you want to execute after end of this function? … | |
Re: You can start working with any of these but the most convenient is to use WPF form based application as it gives you the facility to make a nice interface....To play a .wav file sample code is as follow. check this code :).... Here s is the path of the … | |
Re: Display of data in datagridview basis on what query you write not on the number of tables.. You can join two tables if you want to add values from both tables | |
Re: This code changes the shape of button from rectangle to an Ellipse [CODE]using System.Drawing.Drawing2D; private void Form1_Load(object sender, EventArgs e) { GraphicsPath gp = new GraphicsPath(); gp.AddEllipse(0, 0, this.button1.ClientSize.Width, this.button1.ClientSize.Height); this.button1.Region = new Region(gp);[/CODE] } | |
Re: check [URL="http://www.daniweb.com/software-development/csharp/threads/357376"]this thread [/URL]it has the same discussion as your problem | |
This is the simple code to read an image from the database. | |
Re: + sign joins two strings without creating space between them where   is the space creator. if we write: "Hello"+"World" output: HelloWorld if we write: Hello World output: Hello World | |
Re: Add a project to your solution. You are familiar with the page where you choose your project type e.g "Windows Application", "Console Application" etc?? On the left of that page- there is Setup and Deployment Projects (sometimes it lies under the category of other project types)- then choose Setup Project, … | |
Re: Check the following code i have added the lines which are bold [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Runtime.InteropServices; namespace DLLOpen { public partial class Form1 : Form { public const int buttonDown = 0xA1; public const int caption = 0x2; … | |
Re: The following code works fine for allowing only numeric data and adding only one decimal point it also works fine for key hold [CODE] void textBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && e.KeyChar != '.') { e.Handled = true; } // only allow one decimal point if … | |
Re: just solve a similar problem why don't you too go for the same solution [URL="http://msdn.microsoft.com/en-us/library/ms180152.aspx"]check this out[/URL] | |
Re: This is the command which first convert current date time into varchar then the result is again converted to datetime datatype. | |
Re: Try the following code[CODE]string url="http://www.google.com"; Response.Write("<script>window.open('" +url+ "');</script>");[/CODE] | |
Re: where are you writing the code of adding text to the label? | |
Re: Please tell what are the foreign keys you are using is that ids or names. Because your given seem to have names as foreign keys if it is so then. 1-SELECT CUSTOMER_NAME, ACCOUNT_NUMBER FROM DEPOSITOR WHERE DEPOSITOR_NAME LIKE '%Hayes%' 2-your other query is very lengthy and tricky it will take … | |
Re: To write your output in a text file follow these steps 1-Open query analyzer. 2-Go to Query 3-select Result to file After doing this when you will execute your queries sql qill will prompt to ask the file name. | |
Re: This is reporting and analysis software for Windows that allows a programmer to create reports from a variety of data sources with a minimum of written code. check these discussions for your second question [URL="http://www.crystalreportsbook.com/Forum/forum_posts.asp?TID=3509"]1st[/URL] [URL="http://stackoverflow.com/questions/2377466/c-crystal-report"]2nd[/URL] | |
Re: Have you already checked [URL="http://www.dotnetspider.com/forum/162986-database-backup-restore-through-C.aspx"]this discussion[/URL] | |
Re: yes if you inherit a class from your form then the class will change to a form. As we all know when ever we inherit a class from any other class it contains all the functions of the parent class. | |
Re: Have You checked all of these three statements? [CODE]SELECT CURRENT_TIMESTAMP SELECT {fn NOW()} SELECT GETDATE() [/CODE] | |
Re: Following is a very simple code to load data from database to datagridview. Manipulating data in deatagridview is much more easier than any other control. [CODE] private static SqlConnection Conn = new SqlConnection(); private static SqlDataAdapter Adapter1; private static SqlCommand Command1 = new SqlCommand(); Conn.ConnectionString = "Data Source=your_database_server; Initial Catalog=DatabaseName;Integrated … | |
Re: [CODE] String[] paths = {"D:\\Project\\Flower-02-KayEss-1.jpg", "D:\\Project\\My Pictures\\123.png" }; private void Form1_Load(object sender, EventArgs e) { comboBox1.Items.Add("Flower"); comboBox1.Items.Add("Table"); comboBox1.Text = "Select"; } private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { pictureBox1.Image = new Bitmap(paths[comboBox1.SelectedIndex]); }[/CODE] | |
Hold Windows key and R key together run box will open Type magnify in it and then press Enter. This enables magnifier tool and anything near the mouse trail will now appear magnified on top! | |
Re: what error you get when you use app.config connection string? | |
Re: [CODE]int occurance; foreach (string sortComb in listbox1 .Items) { occurance=0; foreach (string ext in listbox2.Lines) { if (ext.Contains(sortComb)) { occurance++; } } MessageBox.Show( sortComb+" Exits "+ ocuurance+" times in list2"); }[/CODE] this was simple now please explain in sorted list what you want to add? mean do you want to … | |
Re: do you want us to give you problems or you want examples? | |
Add this code any where in your main form and You will be able to disable the [B]X[/B] button on a winForm | |
Re: Are you writing this code in the main form or in the subform? and what is the exception you are getting because I am using this event in my application i have added quite a large lines of code in it and it works fine..... Try [CODE]System.Windows.Forms.FormClosingEventArgs[/CODE] instead of [CODE]FormClosedEventArgs[/CODE] | |
Re: you have written the code in form1_keydown event and whenever we press a key the input buffer never takes two inputs at the same time it always takes one by one and when you press numpad1 and numpad3 at the same time it takes input one by one and shows … | |
Re: check [URL="http://www.multilingual-search.com/googles-multilingual-search-tool/09/06/2007/"]this link[/URL] | |
Re: String[CODE]String abc="Hello";[/CODE] String Array[CODE]String[] abc=new String[10][/CODE] | |
Re: Check this Query [CODE]select distinct dep.dep_id,do.dep_name dep.Date, dep.Amount from Balance as dep join Department as do on dep.dep_id=do.dep_id where dep.Date>='01/03/2011' and dep.Date>='29/03/2011'[/CODE] | |
Re: [CODE]strSearch = txtSearch.Text objConnection = New SqlConnection("Data Source=10.2.1.214;"Initial Catalog=samples;User Id=samples;Password=password;Connect Timeout=15;Network Library=dbmssocn;") strSQLQuery = "SELECT first_name, last_name, Sales FROM sample " objCommand = New SqlCommand(strSQLQuery, objConnection) objAdapter = New SqlDataAdapter(objCommand) objDataSet = New DataSet() objAdapter.Fill(objDataSet) dgPaging.DataSource = objDataSet dgPaging.DataBind() objConnection.Close()[/CODE] | |
Re: if you want to add unbound columns in datagridview please check [URL="http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.columns.aspx"]this[/URL] this contains a complete example. And if you want to add columns and rows from dataset then try following code [CODE]conString = "Data Source=(local);Initial Catalog=Northwind;Integrated Security=True"; con = new SqlConnection(conString); con.Open(); string quryString = " select * from … | |
Re: First split you items in a string array on the basis of '\n \r' and then split them on the basis of space. Sample code: [CODE] List<String> l = new List<String>(); foreach (KeyValuePair<String, int> pair in P) { KeyitemS.AppendText(pair.Key + ":" + pair.Value + "\r\n"); l.Add(pair.Key); } SplitA=new string[l.length]; int … | |
Re: Why you want to access program.cs variables? I think we neither can create object of program.cs nor we can use any of its variables or call its function from outside.... Can you please mention the idea behind accessing program.cs from form1.cs? | |
Let us share new of SEO here so that members will get aware of what currently is going on in the world of SEO | |
Hye fellows.. I have to write an article about business software can you share your ideas about business software, their demand, and how free downloading websites are effecting future of software companies. Waiting for your precious ideas and views Thanx | |
Re: VS2010 targets only the latest version of framework installed in your PC. It happens with me every now and then when I try old version projects in VS2010 and re-targeting the project on FW 4.0 works out smoothly and creates no problem while execution of program with me. | |
Re: conn1 is sqlconnection object, command1 is sqlcommand object, storedProceName is the stired procedure you want to pass to the command, createConnection() is the function to create connection if it is not working, This code works to execute store procedures. Write this code any where in ur application and call it … | |
Re: Use this code where you want to play the sound [CODE] PlaySound("YourFile.wav",new System.IntPtr(),PlaySoundFlags.SND_SYNC);[/CODE] | |
Re: Your Rank in SERP Can Increase Even with a Low or No PageRank. I would say that your SERP ranking is much more important now in getting your site seen. Before you know it, your PageRank will catch up as well. As far as PageRank is concerned it determines the … | |
[B][U]Microsoft files European antitrust complaint against Google[/U][/B] is the headlines for details [URL="http://www.computerworld.com/s/article/9215380/Microsoft_files_European_antitrust_complaint_against_Google?taxonomyId=77"]visit[/URL]. What in your opinion be the affect of this suit on GOOGLE. Will it build pressure on GOOGLE in Europe or is it an in-vein anti-GOOGLE try by Microsoft? | |
Re: have you checked google scholar, portal.acm.org and science direct? check [URL="http://www.google.com.pk/url?sa=t&source=web&cd=2&ved=0CCIQFjAB&url=http%3A%2F%2Fwww.cabrillo.edu%2F~shodges%2Fcs1%2Fnotes%2Fcis1.chapter15.pdf&rct=j&q=email%20hacking%20acm%20filetype%3Apdf&ei=vS-ETcGZHMa3cJ3wpZUD&usg=AFQjCNG6Uq9ePL9O1MCBsr4v_yDAFCoQrg&cad=rja"]this link[/URL] it may be helpful i found it while searching email hacking | |
Re: It looks like you are calling a non static property from a static method. Make the method static or create an instance of the class before calling the method..... just check where in the code you are doing that.... Check all functions starting with the keyword [COLOR="Green"]static[/COLOR]. Don't call any … | |
Re: directly use BOX.Text (all same ones from 5-10 instead of converting a string to string again) in sql command. Try this sql command instead [CODE]"UPDATE Users set username = '" + Box.Text + "',userid='" + Box2.Text + "',password='" +Box3.Text + "',sex='" + Box4.Text + "',email='" + Box5.Text+ "' WHERE username … | |
Re: Check [URL="http://stackoverflow.com/questions/1188346/android-how-to-create-video-player"]this link [/URL] here is code of same application you are developing and also some queries about it | |
Re: write this code in comboBox1_click event. [CODE] SqlDataAdapter da1 = new SqlDataAdapter("select City_name from City where country_name='"+Combobox1.Text+"'", "Data Source=.;Initial Catalog=master;Integrated Security=True;"); da1.Fill(ds1); int i = ds1.Tables[0].Rows.Count; for (int s = 0; s < i; s++) { comboBox2.Items.Add(ds1.Tables[0].Rows[s][1]); } [/CODE] |
The End.