464 Posted Topics

Member Avatar for liam0014

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? …

Member Avatar for dxider
0
99
Member Avatar for apanimesh061

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 …

Member Avatar for Saikalyankumar
0
262
Member Avatar for xanawa

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

Member Avatar for Saikalyankumar
0
114
Member Avatar for xanawa

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] }

Member Avatar for abelLazm
0
87
Member Avatar for bahed121

check [URL="http://www.daniweb.com/software-development/csharp/threads/357376"]this thread [/URL]it has the same discussion as your problem

Member Avatar for bahed121
0
181
Member Avatar for abelLazm
Member Avatar for 3825

+ sign joins two strings without creating space between them where &nbsp is the space creator. if we write: "Hello"+"World" output: HelloWorld if we write: Hello&nbspWorld output: Hello World

Member Avatar for abelLazm
0
115
Member Avatar for deepas

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, …

Member Avatar for deepas
0
171
Member Avatar for lxXTaCoXxl

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; …

Member Avatar for abelLazm
0
215
Member Avatar for DaveTran

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 …

Member Avatar for abelLazm
0
158
Member Avatar for gulbano

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]

Member Avatar for gulbano
0
109
Member Avatar for stefilina

This is the command which first convert current date time into varchar then the result is again converted to datetime datatype.

Member Avatar for abelLazm
0
130
Member Avatar for mldardy

Try the following code[CODE]string url="http://www.google.com"; Response.Write("<script>window.open('" +url+ "');</script>");[/CODE]

Member Avatar for abelLazm
0
4K
Member Avatar for samp4ever
Member Avatar for rhuffman8

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 …

Member Avatar for abelLazm
0
292
Member Avatar for rhuffman8

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.

Member Avatar for smantscheff
0
185
Member Avatar for rishal82

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]

Member Avatar for abelLazm
0
61
Member Avatar for Saikalyankumar

Have you already checked [URL="http://www.dotnetspider.com/forum/162986-database-backup-restore-through-C.aspx"]this discussion[/URL]

Member Avatar for abelLazm
0
68
Member Avatar for james6754

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.

Member Avatar for abelLazm
0
99
Member Avatar for ctkam

Have You checked all of these three statements? [CODE]SELECT CURRENT_TIMESTAMP SELECT {fn NOW()} SELECT GETDATE() [/CODE]

Member Avatar for htmlCoder101
0
198
Member Avatar for techturtle

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 …

Member Avatar for techturtle
0
197
Member Avatar for navimir

[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]

Member Avatar for ddanbe
0
616
Member Avatar for abelLazm

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!

0
83
Member Avatar for Arjun_Sarankulu
Member Avatar for NewOrder
Member Avatar for computerbear
Member Avatar for leo88

[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 …

Member Avatar for leo88
0
160
Member Avatar for MasterBerd
Member Avatar for abelLazm
0
84
Member Avatar for abelLazm

Add this code any where in your main form and You will be able to disable the [B]X[/B] button on a winForm

2
504
Member Avatar for Phil++

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]

Member Avatar for abelLazm
0
105
Member Avatar for Jessurider

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 …

Member Avatar for Jessurider
0
100
Member Avatar for lingoway

check [URL="http://www.multilingual-search.com/googles-multilingual-search-tool/09/06/2007/"]this link[/URL]

Member Avatar for abelLazm
0
29
Member Avatar for bia

String[CODE]String abc="Hello";[/CODE] String Array[CODE]String[] abc=new String[10][/CODE]

Member Avatar for ddanbe
0
54
Member Avatar for saj_amo

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]

Member Avatar for Knvn
0
83
Member Avatar for KasunL

[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]

Member Avatar for abelLazm
0
91
Member Avatar for bhavyajyothinat

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 …

Member Avatar for abelLazm
0
2K
Member Avatar for Kath_Fish

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 …

Member Avatar for abelLazm
0
82
Member Avatar for Carrots

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?

Member Avatar for Carrots
0
2K
Member Avatar for abelLazm

Let us share new of SEO here so that members will get aware of what currently is going on in the world of SEO

Member Avatar for abelLazm
0
146
Member Avatar for abelLazm

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

0
95
Member Avatar for Cap'nKirk

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.

Member Avatar for Cap'nKirk
0
126
Member Avatar for Farhad.idrees

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 …

Member Avatar for arsheena.alam
0
159
Member Avatar for Usmaan

Use this code where you want to play the sound [CODE] PlaySound("YourFile.wav",new System.IntPtr(),PlaySoundFlags.SND_SYNC);[/CODE]

Member Avatar for abelLazm
0
88
Member Avatar for lingoway

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 …

Member Avatar for LABC
0
120
Member Avatar for abelLazm

[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?

Member Avatar for LABC
0
116
Member Avatar for arul jeba

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

Member Avatar for arul jeba
0
176
Member Avatar for lxXTaCoXxl

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 …

Member Avatar for abelLazm
0
93
Member Avatar for Jessurider

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 …

Member Avatar for abelLazm
0
137
Member Avatar for imso

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

Member Avatar for peter_budo
0
108
Member Avatar for anish99virgo

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]

Member Avatar for anish99virgo
0
89

The End.