44 Posted Topics
Re: [QUOTE=george_82;1034004]Thanks for the reply...Is there any use with this designer.cs file Visual Studio.What if i delete this file. Also what are the files created/required when try to publish a program to executable .[/QUOTE] Whatever designing you do ,for that code is generated in designer.cs file.Like you have a picturebox and … | |
Re: Read the following article: [URL="http://www.dotnetheaven.com/UploadFile/rahul4_saxena/DataInExcelSheet05302007080823AM/DataInExcelSheet.aspx"]http://www.dotnetheaven.com/UploadFile/rahul4_saxena/DataInExcelSheet05302007080823AM/DataInExcelSheet.aspx[/URL] | |
Hi! How can I insert commas in numbers. For example, number is 123456789 , now I want that after inserting commas it should become 12,34,56,789.... how can i do this....... | |
Re: [QUOTE=kool.net;1034031]hi, can any one tell me how to i convert amount(in digitts) to word. thanks in advance[/QUOTE] You can try the following code: [CODE]public string NumberToText(int number) { if (number == 0) return "Zero"; if (number == -2147483648) return "Minus Two Hundred and Fourteen Crore Seventy Four Lakh Eighty Three … | |
Re: Hi adatapost, u have given me code only for specific value ..... Kindly give me general code in C# | |
Re: If you decide to write a database installer, you must first choose a technology on which to base the installer. In Windows, the most common types of application installers are MSI files, which you can build using Visual Studio® .NET or third-party products such as InstallShield Developer or Wise for … | |
Re: Try using the following code: [CODE] SqlConnection myConn = new SqlConnection(); myConn.ConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=D:\\Postmyadd\\App_Data\\postmyad.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True";[/CODE] | |
Re: The GetDirectories and GetFiles methods of the Directory object are all that you need to recursively search for files that match the search string. The following method is used to perform the recursion: [CODE]void DirSearch(string sDir) { try { foreach (string d in Directory.GetDirectories(sDir)) { foreach (string f in Directory.GetFiles(d, … | |
Re: Try the following code for alphanumerics only [CODE] protected override void OnKeyDown(KeyEventArgs e) { Keys k = e.KeyCode; if (k == Keys.Back) { this.isBack = true; this.isAlphaNum = false; } else { bool isAlpha = !e.Alt && !e.Control && (k >= Keys.A && k <= Keys.Z); // Determine whether the … | |
I want to make a database window application using Visual Studio 2008(with C#) which is basically a search engine for searching images(of size 25 KB to 95 KB) . I want to sell my application in CD\DVD in such a way that it should run directly from CD\DVD. As I … | |
Hi!! I am making an application for generating report containing marks of students in various subjects with percentage and corresponding grades. I have two forms one for "Entering marks" and other for "generating result" . For "Entering marks" ,there are 5 combos and a textbox. From combos we can select … | |
Re: [CODE] string delimStr = " +-*/"; char [] delimiter = delimStr.ToCharArray(); string words = "one two+three-four*five/six"; string [] split = null; Console.WriteLine("The delimiters are -{0}-", delimStr); for (int x = 1; x <= 10; x++) { split = words.Split(delimiter, x); Console.WriteLine("\ncount = {0,2} ..............", x); foreach (string s in split) … | |
Re: You can try : [URL="http://csharpcorner.com/"]http://csharpcorner.com/[/URL] [URL="http://codeproject.com"]http://codeproject.com/[/URL] | |
Re: Try the following code............ [CODE]class NumberToWordsConvertor1 { public string NumberToText(int number) { if (number == 0) return "Zero"; if (number == -2147483648) return "Minus Two Hundred and Fourteen Crore Seventy Four Lakh Eighty Three Thousand Six Hundred and Forty Eight"; int[] num = new int[4]; int first = 0; int … | |
Hi!!!! how can I convert words into numerals...In first textbox i enter word and on button click equivalent numeral is displayed in another textbox for Example we enter "One crore twenty lakh thirty four thousand seven hundred eighty four" , then its corresponding numeral should be "12034784". What will be … | |
Hi,In my application ,there is a combobox in which classname appears . Now I want that for each selected classname from combobox,I want that user could add sections according to his wish . Like if user selects class12 and he wants to add 4 sections(A,B,C,D) .he should add "A" in … | |
Re: [QUOTE=sknake;1071136]Then use a database as privatevoid suggested. You could also encrypt the images so they will not be viewable outside of your application.[/QUOTE] Thanks..... If i add url of images,it means I have to store images in a folder,then I have to import that folder on user machine too .And … | |
Re: [QUOTE=reyarita;1070997]Hey guys!! can you share some ideas about this program, i tried but its not working. 1. Write a program that inputs a five-digit integer, separates the integer into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types … | |
Re: [QUOTE=tgsoon2002;1046086]I have know programming for 5 years. but not get any process yet. I want to ask what you do when you get a project and meet some problem? normally we must get the idea, pseudocode, get the flow of program. now i get the flow of program, idea. but … | |
Re: [QUOTE=LennieKuah;1033847]Hi there, Please help me. I am having problem trying to include Checkbox in 1st Column in DataGrid for all the Rows. Being a newbie and I am struggling doing it. I need your help.[/QUOTE] You have to use tablestyles while binding the data to grid, Create DataGridColumnStyle for each … | |
Hi!!!!!!! I have made a window application in which i am entering mathematical equations and side by side the corresponding math format is generated like we see in books. In this, I am using LATEX/MimeTEX for generating math format and it uses special symbols for generating math format. Like for … | |
I have made a project and now when it comes to designing I could not find any better way. I searched google and found certain applications which have already made user controls like silver panel,navigation bar etc........ Now can anyone tell me how can I use these user controls from … | |
Re: [QUOTE=sivak;1034812]can anyone explain tranaction in .net ..when we go for it ? explain locking in .net along with example plz?[/QUOTE] Go through following articles: [URL="http://www.codeproject.com/KB/database/transactions.aspx"]http://www.codeproject.com/KB/database/transactions.aspx[/URL] [URL="http://www.vbdotnetheaven.com/UploadFile/rahul4_saxena/Transaction09112007074327AM/Transaction.aspx"]http://www.vbdotnetheaven.com/UploadFile/rahul4_saxena/Transaction09112007074327AM/Transaction.aspx[/URL] [URL="http://www.codersource.net/csharp_tutorial_multithreading.html"]http://www.codersource.net/csharp_tutorial_multithreading.html[/URL] | |
Re: You can try following code for ASP: [CODE] //HTML part of DemoPage1.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="DemoPage1.aspx.cs" Inherits="DemoPage1" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title>GridView Sample By Ramesh S</title> <script type="text/javascript"> function selectUnselectCheckboxes(chkBoxHeaderId, chkBoxIdInGrid, gridViewId) { var gridViewElem = document.getElementById(gridViewId); //get the … | |
Re: You can first find out how much % each string(form text string ) matches with the string entered in the textbox and collect it in an array and then perform sorting on it.So that the maximum percentage matched string displays on the top...... Hope It works. | |
Hi !!! My project runs fine but sometimes it gives some debug error when I click keyboard keys very fast(randomly),backspace key ,delete key etc..... But the error do not occur always but it occur all of a sudden anytime. I do not know why I am getting this error. The … | |
Re: Hi ayeshawzd You can define the values of some basic logs like log2=0.3010 , log3 =0.4771 , log5 ,log7,log10. and so on Then use these to find the other log values. Like , log20=log(4*5) = log4+log5 = 2log2 + log5 ...... Visit the following link:[URL="http://mathforum.org/library/drmath/view/55523.html"]http://mathforum.org/library/drmath/view/55523.html[/URL] Hope it helps.......... | |
Hi!!! I am using following code in which I am generating the latex format. Here I want to use the combination of characters[A-Za-z], numbers[0-9] ,special charactes(like π ,θ ,α ,β ,γ ,°,+, - ,×,÷,√ ,(,)etc) ,decimal numbers. For entering special characters I have used toolbar Can anyone tell me how … | |
Re: You can try the following link: [URL="http://www.dreamincode.net/forums/showtopic33396.htm"]http://www.dreamincode.net/forums/showtopic33396.htm[/URL] [URL="http://www.microsoft.com/belux/msdn/nl/community/columns/hyatt/ntier1.mspx"]http://www.microsoft.com/belux/msdn/nl/community/columns/hyatt/ntier1.mspx[/URL] [URL="http://www.codeproject.com/KB/IP/filesharingvb7.aspx"]http://www.codeproject.com/KB/IP/filesharingvb7.aspx[/URL] | |
Can anyone tell me how can I enable one and only one whitespace to be entered in the textbox such that user can press spacebar only once while entering the string in the textbox and not more than once........... Kindly provide me some solution............. | |
Re: Change the property Form border style to "sizable"......... Hope it works......... | |
Re: [QUOTE=ayeshawzd;1009890]i want to know try n catch code which i can use for space bar during entering user name[/QUOTE] Clearly explain what do you want to do.................. | |
Re: You can use following code on form_load event : [CODE]this.Text=" ";[/CODE] | |
Re: hello kahaj, You can add WORD.dll in to your project. The Word.DLL check spelling method would also permit the user to pass custom dictionaries to it through additional arguments. | |
Re: Hi Avirag, You can use the following code on form_load event : [CODE]this.textBox1.Focus();[/CODE] Hope it works............ GudLuck | |
Re: Hi Bhaskerlee, You can visit following links: [URL="http://dotnetspider.com/projects/"]http://dotnetspider.com/projects/[/URL] If like the answer then mark as solved | |
Re: hi sknake.... I have some problem in roundoff function. Can u please solve it for me........... | |
Hi!!! i have made a window application for solving mathematical expression using bodmas rule.... In that I am getting error IndexOutOfBound exception [CODE] private void button5_Click(object sender, EventArgs e) { string[] operands = this.textBox1.Text.Split('+', '-', '*', '/'); string[] operators = this.textBox1.Text.Split('0', '1', '2', '3', '4', '5', '6', '7', '8', '9'); … | |
Hi!!! I am working on window application and in that I have made tool strip,menustrip and instead of using richtextbox I am using listbox. In listbox I have added items statically using : " this.listBox.Items.Add("..............."); " Can anyone tell me how can I link "save as" , "save" , "print", … | |
Re: I think u dont know the answer ............. | |
Hi, I have made an application for rounding off any number to nearest tens,hundreds or thousands.... But for some values my code is giving wrong answer... Like , if i want to solve "25*89" ,in that rounding off 25 to nearest tens , the answer should be 30 (according to … | |
Re: Hi !!!!! how can I upload my project..... I don't know...... kindly tell me.... | |
HI!!!!!!!!! How can I find the index of same digit which is at diffrent postion in any given number(number can be of any length).... Like we have any number, suppose, 982625 How can we find the index of two 2s in this number......... I have made a form in which … | |
hi !!! I am making a window application in which I want tree view in left panel .For each child nodes click I want the corresponding form should be displayed in right panel . For each child node I have different - different functions and for each I have created … |
The End.