464 Posted Topics
Re: dear[B] Dean Grobler[/B] i have been using both the languages and for a long time and I found C# much more easy to deal with and user friendly environment and VS provides you help on just starting to write any thing mean if you write S it will provide a … | |
Re: The namespace used to play audio file in c# is[iCODE]using System.Media;[/iCODE] the class is [iCODE]SoundPlayer obj=new SoundPlayer();[/iCODE] and the code to play the file is [CODE]obj.SoundLocation = "Location of file"; obj.Play();[/CODE] | |
Re: Go for computer engineering if want to be a specialist.... computer science is very vast subject including every aspect of it. It makes you jack of all trades where computer engineering will make you master of one thing :)...... | |
Re: I wonder how you have figured it out [B]ashish99virgo[/B]? [B] Momerath[/B] is right [B]niketakapoor [/B] give you logic so that any one will be able to figure out where your code goes wrong :) | |
Re: You can use c# it is much more comfortable to work with and you can find many related articles to get help. | |
Re: Have you started your work? if yes please tell us what have you done and if no then please tell us how you plan to do this.... We can give you suggestions | |
Re: Have you check [URL="http://social.msdn.microsoft.com/Forums/en/winforms/thread/876b6517-7306-44b0-88df-caebf3b1c10f"]this link[/URL] | |
Re: [CODE] //textBox1.Text="C:\pic\pic1.gif"; pictureBox1.Image = new Bitmap(@textBox1.Text);[/CODE] | |
Re: [B]seanmchugh.info [/B] i also joined Daniweb recently and found no problem or any threatening behavior on my postings yes i got some negative votes but i know what was the problem... And off the record i don't have any personal relation with any of the mods or admin :D including … | |
Re: [B][U]Computer sciences [/U][/B]has become an essential part of the[U][B] socio-economic [/B][/U]development of country. It acts as the backbone for the rapid development in the country. Cs has totally reversed the concepts about the life in a country either it is domestic or social it is involved from kitchen to office, … | |
Re: check [URL="http://social.msdn.microsoft.com/Forums/eu/Vsexpressvcs/thread/26b8b730-cef0-4f4c-9341-2c1692a2c8ce"]this link [/URL] it contains similar discussion | |
Re: dear ashish yes you are right that one DataSet can hold more than one table at a time and you can use them by using their index number or name but the code you have pasted contains a number of useless code line like you don't need to set Datatables … | |
Hello all, Can you please clear me what does the number in [B]"()"[/B] against the infraction below one's name means? as if you look at the last line of my intro at left[B] Infractions:2/1 (5)[/B] what is[B] 2/1[/B] and [B](5)[/B] | |
Re: you want to append htmlString in string builder if you find "e" in any of the line of the file [U][B]"Y:\WorleyParsons\Sasol Unit 17\Submission Data\Tru-View\Unit17TruViewInterface\TruView\Unit17\SiteMap.htm"[/B][/U] and if you find 10 lines which are "e" then you append this htmlString 10 times it that right? | |
Re: how are you using filter? please paste your code lines for filtering here? | |
Re: Please can you explain the problem you are facing? It will help us to find a solution | |
Re: remove line#60 cr.Refresh(); it refreshes the crystal report write it before you set the datasource of crystal report | |
Re: Write the code as following it will display the database name but also hold the connection string of database in as value member. [CODE]comboBox1.ValueMember=ConnectionString; comboBox1.DiaplayMember=NameOfDataBase;[/CODE] | |
Re: Stored procedure is a set of SQL statements with an assigned name that's stored in the database in compiled form so that it can be shared by a number of programs. [URL="http://www.google.com.pk/url?q=http://www.netproject.com/docs/migoss/v1.0/glossary.html&sa=X&ei=-xmkTfzZBojLrQeVzbTzCQ&ved=0CA8QpAMoAg&usg=AFQjCNGuB9CfOFzaUHfFmohya5EEYLyZXQ"]REF....[/URL] For difference between these two please check [URL="http://faq.programmerworld.net/database/sql-interview-questions-and-answers.html"]this link[/URL] | |
Re: check [URL="http://www.titov.net/2005/09/21/do-not-use-order-by-rand-or-how-to-get-random-rows-from-table/"]this link[/URL] it contains a detailed discussion on how to randomly select values | |
Re: Please stop! naming threads [B]help, urgent help, need help[/B] etc exactly where the exception arises? | |
Re: [CODE]textBox1.Text = "£";[/CODE] write this code in designer and for run time addition write a code in textBox1_keydown and textBox1_keypress event and write behind any combination of keys like alt+ctrl+y | |
Can anyone clear my concepts of IsDaylightSavingTime() function of DateTime in C#. I am really confused about it. I want to ask exactly what is the need and use of this function? Thanx | |
Re: check [URL="http://phone.mobile9.com/a/?qid=4565"]this forum[/URL] | |
Re: If you have added checkbox column as i have suggested you in your previous thread then by adding this code in checkbox_checkedchanged event you will get your desired results hope it will be helpful :) [CODE] private void checkBox1_CheckedChanged(object sender, EventArgs e) { try { c1TrueDBGrid1.MoveFirst(); for (int j = … | |
Re: it seems really difficult to use C1TrueDBGrid at first but as you learn new things it looks easier day by day.... there are two ways to add checkbox column in a bound grid one to add the check box column in database or add in the dataset after getting values … | |
Re: check [URL="http://www.codeproject.com/KB/buttons/zhaocolorbutton.aspx"]this link [/URL] | |
Re: Cache is what a search engine makes use of to judge if a page is a good match for a searched query. Index refers to getting website listed in the search engine's database index for SERP. Based on SEO term 1-when search engine bot or crawler come to your page … | |
Re: check [URL="http://www.codeproject.com/KB/GDI-plus/FancyText.aspx"]this link[/URL]. It contains a project of creating fancy text with c# hope will be helpful :) | |
Re: gulbano there is no other way to track a record other than keeping log of it add a column in you table and insert the datetime of each record insertion and you will be able to keep the log of the future record insertions | |
Hi, I have a table on two different database servers on server-1 it contains almost 2090 records and on server-2 it is empty i want to copy all the records from server-1 to server-2 both the database servers are identical but on different location and have no relation with each … | |
Re: Try this to set the paper size you may also check[URL="http://www.codeproject.com/KB/printing/custom_paper_sizes.aspx"] this link[/URL] it contains source code of application to print on custom sized page [CODE] private PrintDocument printDoc; //rest of code printDoc.PrinterSettings.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("a2", 5.0,5.0); //rest of code[/CODE] | |
Re: Set DropDownStyle property of combobox to "DropDownList" it will make the control only hold values you want | |
Re: Dear [B]niketakapoor [/B] what type of help you want? Please give what is your plan at this stage and describe your problem | |
Re: Code to sum up [CODE] //Your Code double sum=0; int length=richTextBox1.Lines.Length; for(int i=0;i<length;i++) { sum+=Double.Parse(richTextBox1.Lines[i]); } if(sum<1) { //Your Code } else { //Your Code } //Your Code [/CODE] | |
Re: [CODE] using System.IO; using System.Diagnostics; //name is the process name passed to the funciton //public bool isProcRunning(String name) public void isProcRunning(String name) { foreach (Process clsProcess in Process.GetProcesses()) { if (clsProcess.ProcessName.Contains(name)) {//return true; clsProcess.CloseMainWindow(); } } // return false; }[/CODE] | |
What are your views about the effects of social websites on the social problems (very commonly children accessing to the literature and things which are not suitable for them)? Aren't social problems increasing due to the increase rate of social websites? | |
Re: Why don't you use dataGridView instead of labels? You set the length of label=4 and 4 labels are displaying on the screen | |
Re: Use DataGridView to display records and in line 32 you set the length of your label=4 and 4 labels there on the screen | |
Re: If you want to convert your record in sql you can try the following code [CODE] --dt = '20/6/2010' SELECT id, name, CONVERT(datetime, dt) from users[/CODE] When data is entered in grid in VS here varchar is treated as String following code will help you in VS (c# code) [CODE]DateTime … | |
Re: The most suitable dataType for these type of comparisons is string as the retrieved data is in String form. If you want to perform any calculation with totalCost you can temporarily convert it to double(not float or decimal it is much more flexible than the other two) and again store … | |
Re: [URL="http://www.codeproject.com/KB/GDI-plus/vision.aspx"]This Link[/URL] Contains a simple Slide Show Project source code it will be helpful | |
Re: For binding a ComboBox we have to set its display as well as value member. :) [CODE]comboBox1.DataSource=null; //Your Code for connecting to database and retrieving data in dataset1 //You have two columns in dataSet1.Tables[0] ,, "id", "name" comboBox1.DataSource=dataSet1.Tables[0]; comboBox1.DisplayMember="name"; comboBox1.ValueMember="id"; //Rest of the code[/CODE] | |
Re: what do you want to make dear? By drag and drop you mean to drag and drop numbers and operators or only operators or you want to make a calculator control which you want to drop on your form? for simple calculator you make buttons on form for input and … | |
Re: check [URL="http://blog.sqlauthority.com/2009/06/23/sql-server-2005-2008-delete-duplicate-rows/"]this link[/URL] | |
Re: [CODE] //in form_load TDBGrid1.MarqueeStyle=C1.Win.C1TrueDBGrid.MarqueeEnum.HighlightRow; //in code TDBGrid1.HighLightRowStyle.BackColor = Color.RoyalBlue;[/CODE] For help on C1TrueDBGrid Please Check [URL="http://helpcentral.componentone.com/nethelp/c1truedbgrid/default.htm"]This link[/URL] | |
Re: [CODE]label1.Name = "hi"; [/CODE] It has no effect on code you can only use a control by the name you set in designer. Only when you want to display the controls name it will be displayed hi. so it is better to set the name in designer or on the … | |
Re: Write this code when you load your c1truedbgrid [CODE]dataSet1.Tables[0].Columns.Add("DropDown_Column_name");// adds an empty column in dataset C1TDBGrid1.Columns["DropDown_Column_name"].Editor = comboBox1;// C1TDBGrid1.Columns["DropDown_Column_name"].ValueItems.Translate = true; C1TDBGrid1.Splits[0].DisplayColumns["DropDown_Column_name"].DropDownList = true; C1TDBGrid1.Splits[0].DisplayColumns["DropDown_Column_name"].Locked = false; C1TDBGrid1.Splits[0].DisplayColumns["DropDown_Column_name"].FetchStyle = true; C1TDBGrid1.MoveFirst(); for (int o = 0; o < C1TDBGrid1.RowCount; o++) { C1TDBGrid1.Columns["DropDown_Column_name"].Text = "Select"; C1TDBGrid1.MoveNext(); }[/CODE] then on comboBox1Selectionchange event … | |
Re: for disabling tree_node please check[URL="http://stackoverflow.com/questions/1462528/disable-or-grey-out-a-node-in-the-treenode-editor"] this[/URL] page For your second condition on which basis you are giving permissions to users? you will have to check those conditions and then assign permissions to the respective users |
The End.