- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 19
- Posts with Upvotes
- 12
- Upvoting Members
- 4
- Downvotes Received
- 9
- Posts with Downvotes
- 6
- Downvoting Members
- 8
- Interests
- .NET C#, GAME - TWISTED METAL, COUNTER STRIKE
- PC Specs
- C# , .NET, MS SQL, ASP.NET. WINDOW XP,VISTA, WINDOW 7
36 Posted Topics
[B]1.[/B] Right click on your project name in solution explorer. [B]2.[/B] Point the cursor on [COLOR="Green"]Add[/COLOR] then choose [COLOR="Green"]Existing Item...[/COLOR] [B]3.[/B] Now go to the Location of your sound file and select that sound file. [B]4.[/B] Now select your sound file in solution explorer then Right click on it choose … | |
Re: hi friend, sorry! i have not exactly solution for this problem. But these code may be helpful for you. [CODE] Point lastPoint; private void pictureBox2_MouseDown(object sender, MouseEventArgs e) { lastPoint = new Point(e.X, e.Y); } private void pictureBox2_MouseMove(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { this.Left += e.X … | |
Re: Hi friend, Check this link may be helpful for you. Actually, there is many option to play a sound in .net. [URL="http://www.daniweb.com/code/snippet258293.html"]http://www.daniweb.com/code/snippet258293.html[/URL] | |
hello, Actually, i want to play sound file from [COLOR="green"]resource[/COLOR]. I am using [COLOR="green"]WindowMediaPlayer[/COLOR] Control for window application. But there is only option is "[COLOR="Red"]URL[/COLOR]" (Property of control) to play sound file. I don't want to use [COLOR="Red"]URL[/COLOR] property. Because my sound file is present in the [COLOR="Green"]Resource[/COLOR]. Any body … | |
Re: [CODE] con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from RoomBooking",con); DataSet ds = new DataSet(); da.Fill(ds); DataTable dt = ds.Tables[0]; int ctr, len; string codeval; len = dt.Rows.Count - 1; DataRow dr = dt.Rows[len]; string code = dr["CusID"].ToString(); codeval = code.Substring(1, 3); ctr = Convert.ToInt32(codeval); if ((ctr >= 1) && … | |
Re: First of all you create database. In database create tables,like-user details,item(clothes) details such as item id,name,quantity,availability etc,purchase details etc. Always remember relationship (ER DIAGRAM) is important. After database create front end. You can search online shoping ER DIAGRAM. This is useful for u. | |
Hello, i want to know how to convert digit or currency in words. like- when i enter in textbox [COLOR="green"]15000025.65[/COLOR] then in other textbox it should be converted in text format like - [COLOR="Green"]fifteen crores twenty five rupees and sixty five paise[/COLOR]. Any one can help me.......... plzzzzzzzzzzz please tell … | |
hello, any one can tell me how to embed assembly file [COLOR="green"](windows control library)[/COLOR] into resource in window apllication using .net c#. pleaseeeeeeeeeeeeeeeeeeee | |
Re: hello, i run this code in vs2005 in window 7 then, second text box simply show text when multiline is true. i don't know why? but if u know then please tell me. what is the exact reason. | |
helloooo Actually, i have one question. my teacher asked to me - why we take Int16,Int32,Int64 why not Int20,Int36,Int68. Please tell me the answer. Pleaseeeeeeeeeee.... is the factor operating system like 32-bit,64-bit,16-bit? please give anyone exact answer. | |
Re: try this code. i hope this is useful for u. <asp:TextBox ID="TextBox1" runat="server" onpaste="return false" onDrop="blur();return false" Width="438px" Height="36px"></asp:TextBox></div> | |
Re: use this... [CODE] decimal[] arr = { 12.3m, 45.2m, 5.4m, 23.44m, 43.21m }; Array.Sort(arr); Array.Reverse(arr);[/CODE] | |
Re: hello, Nemo try this code... [CODE] private void button1_Click(object sender, EventArgs e) { if (textBox1.Text == "") { label5.Text = "Please Enter Your Login ID!"; textBox1.Focus(); } else if (textBox2.Text == "") { label5.Text = "Please Enter Your Password!"; textBox2.Focus(); } else { con = new SqlConnection("Data Source=.;Initial Catalog=INOXHOTEL;User ID=sa;Password=niitdelhi … | |
Re: check this link:[URL="http://code.wikia.com/wiki/Matrix_multiplication"]http://code.wikia.com/wiki/Matrix_multiplication[/URL] here is detail info. | |
helloooo, Actually, i want to know something. please read this code... [CODE]using System; using System.Collections.Generic; using System.Text; namespace temp { class Program { static void Main(string[] args) { Int16 i = Int16.MaxValue; Console.WriteLine("Simple: " + (i )); unchecked { Console.WriteLine("Unchecked: " + (i + 1)); } checked { try { … | |
Re: Simply we can say, command line argument is that argument which is passed to Main method. Example is: [code] using System; using System.Collections.Generic; using System.Text; namespace CommandLineArgument { class Program { static void Main(string[] args) { for (int i = 0; i < args.Length; i++) { Console.Write(args[i] + " "); … | |
A jagged array is an array whose elements are arrays. The elements of a jagged array can be of different dimensions and sizes. A jagged array is sometimes called an "array of arrays". [COLOR="Red"]NOTE:-[/COLOR] I'm using Single dimensional jagged array. Actually I am using single and multi dimensional arrays as … | |
Re: rodkay, actually I can help you in c#. In c# you can use GetLength() to get multi dimensional array. Use like this: for (int j = 0; j < myjaggedarraymutidim[i].GetLength(0); j++) { for (int k = 0; k < myjaggedarraymutidim[i].GetLength(1); k++) { Console.Write(" "+myjaggedarraymutidim[i][j, k]+" "); } Console.WriteLine(); } | |
Re: marked textbox with public keyword and also use a static variable to store textbox data. now you can use this textbox and it's data in next or other forms. | |
Re: I think c# is better. Try to do best in .NET C#, ASP.NET, MS SQL and also learn ORACLE. YOU CAN THINK ABOUT JAVA. BUT I PREFER C#. | |
Hi....... This code is useful to check given string is palindrome or not. Actually, there are some other way also to check palindrome. So, be careful which code gives better efficiency. You can [COLOR="Red"]comment the line[/COLOR][COLOR="Green"]-bool caseignore= str.Equals(revstr, StringComparison.OrdinalIgnoreCase);[/COLOR] and in [B][COLOR="Red"]if[/COLOR][/B] condition you can use- if(string.Compare(str,revstr,true)==0) | |
Re: use [COLOR="Green"]static vaiables[/COLOR] to use this on other forms. | |
Re: you can check by using classlibrary. may be helpful. | |
Re: use .dll make method in class library and after that call the method. | |
Re: Hey, You can use roll back statement in your code. Due to roll back if one statement failed then other statement not affect the database. | |
Re: insert into HumanResources.Employee values("textBox1.Text","textBox2.Text"); | |
Re: to close any form use [COLOR="Green"]Apllication.Exit();[/COLOR] please check many instances are open in your taskmanager , may be. please end all instance of your project or form. if your problem solved then marked it as solved. | |
Re: marked textbox with public keyword and also use a static variable to store textbox data. now you can use this textbox and it's data in next or other forms. | |
Re: please don't use unnecessary comments. | |
Re: string str=" levydeewithspace "; string newstr=str.Trim(); //This code remove all blank space present on both side of string. | |
Re: please explain your question. I don't understand what u want to say? private void button1_Click(object sender, EventArgs e) { textBox1.Visible = false; } private void button2_Click(object sender, EventArgs e) { textBox1.Visible = true; } | |
Re: [QUOTE=charqus;1124799]Hello guys. I made a picture box and i want like when a button is pressed , the BackgroundImage of Picture Box to be changed in a screenshot from my resources. Look what i did: [code] private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { if (listBox1.SelectedItem.Equals("Rocket Launcher I")) { pictureBox1.BackgroundImage = … | |
Re: this give error.... In foreach line (in process) always mention namespace which is required and that place where code to be paste |
The End.