1,302 Posted Topics
Re: to get tab text [code=C#] string tabText = tabControl1.TabPages[2].Text; [/code] | |
Re: put the images beside the application and call it by its name directly like [code] Image img = Image.FromFile(Application.StartupPath + ImageName + ".jpg); /* it returns the path needed to get the image*/ [/code] | |
Re: Use Image Processing techniques!! [url]www.mathworks.com[/url] | |
Re: [Icode]StreamReader.ReadLine()[/Icode] takes no arguments. You can hold the text file string into string then cut\split it by '\n' then refer to the index of the array returned. Here also an example: [url]http://msdn.microsoft.com/en-us/library/system.io.streamreader.readline.aspx[/url] | |
Re: if you used GridView, DataList, .... controls you can bind the data to them and get the value of something if you clicked (or take a specific action) on specific row. but html table used for alignment and design requirements... | |
Re: You can't disable it. "you can't" == you can but after huge efforts. what does this sound means to you?! it means you haven't accept button on your forum, once you've this button you won't get this sound + TextBox class not getting this sound itself, but OS does. | |
Re: To know about connection strings [url]http://connectionstrings.com[/url] to know how to play with database read in ADO.NET in [url]http://msdn.com[/url] | |
Re: Dim xyz AS new ClassLibrary.Assembly xyz.Add(your parameters...) I am not VB programmer; syntax may be wrong.. | |
Re: You just need to close the code tag. You should have another property holding image file path public string ImageFilePath { get... set.... } public Image Imge { get { try { return _Imge; } catch { Bitmap bm = new Bitmap(100, 100); Graphics g = Graphics.FromImage(bm); g.Clear(Color.WhiteSmoke); Pen p … | |
Re: I see it's very simple in design and this is good, if it does its functionality well so you don't over care about its design. Nice work, Diamonddrake | |
Re: [code] System.Diagnostics.Process.GetProcessesByName("process name")[0].Id; [/code] | |
Re: There's events detect that TextBox | TextChanged ComboBox | SelectedIndexChanged | |
Re: [CODE=C#]webBrowser1.Url = new Uri("http://microsoft.com");[/CODE] | |
Re: This piece of code enumerate on the local drives then gets it root path then search for every exe on you can use SystemFileInfo to handle nested directories... [CODE=C#] foreach (System.IO.DriveInfo dirveInfo in System.IO.DriveInfo.GetDrives()) { foreach(System.IO.FileInfo fileInfo in dirveInfo.RootDirectory.GetFiles("*.exe")) ///add the exe in list or handle it as you like … | |
Re: hmmm, SELECT MIN(column) FROM table WHERE ( SELECT TOP 3 (column) FROM table ORDER BY column desc ) | |
Re: I can suggest to use AOP [url]http://www.postsharp.org[/url] it helps very well... | |
| |
Re: File | You may use Move method in System.IO like that [CODE=C#] System.IO.File.Move(@"C:\old.txt", @"C:\new.txt"); //it renames the file old to new.txt [/CODE] Folder | the same [CODE=C#] System.IO.Directory.Move(@"C:\oldfolder", @"C:\newfolder"); [/CODE] | |
Re: You can always use [url]www.connectionstrings.com[/url] =) | |
Re: Danny it's Web-based application with no message box :) people please help to make it cleaner, ASP.NET forum for ASP.NET questions. ASP.NET [url]http://www.daniweb.com/forums/forum18.html[/url] You can use Ajax Toolkit you'll find Password functionality [url]http://www.dotnettutorials.com/tutorials/ajax/ajax-control-toolkit.aspx[/url] | |
Re: I've question when it loses its format? try to catch the message returned from xml webservice and see if it comes in the right format or not? I just want to put my hand on the phase content loses its format. | |
Re: ASP.NET questions should be in ASP.NET forum [url]http://www.daniweb.com/forums/forum18.html[/url] | |
Re: Very clear guys :D Customer data with balances with some transaction "Daniweb Bank" :D | |
Re: Remove the single quote from city names, and check if it doesn't work. Catch it on the profile (see how your application sends it to the SQL Server) get the query and run it on SSMS and check what's the error. | |
Re: DdoubleD you're very active I like your way, keep it up. | |
Re: Look I'm still working but to convert from String to Byte you you need first to convert it to Binary then to Byte (There's may better solution...) [code=C#] ASCIIEncoding ascii = new ASCIIEncoding(); byte[] bytes = ascii.GetBytes("abc"); string result = ""; foreach (byte b in bytes) result += Convert.ToString(b, 2); … | |
Re: [code=C#] currentTextBox.Text = DateTime.Today.ToShortDateString(); threeDaysTextBox.Text = DateTime.Today.Add(new TimeSpan(3, 0, 0, 0)).ToShortDateString(); [/code] | |
Re: Just look at the 2nd reply [url]http://stackoverflow.com/questions/850717/what-are-some-popular-ocr-algorithms[/url] and see how they implement OCR... | |
Re: First please copy free-syntax error code [code=C#] public class vehicle { public vehicle() { MessageBox.Show("I'm Vehicle"); //do some initialization for all vehicles } } public class automobile : vehicle { public automobile() //: base() { MessageBox.Show("I'm Automobile"); // do specific initialization for auto } } public class truck : automobile … | |
Re: You may need to handle it or dispose your resources in SyncEnd event [url]http://msdn.microsoft.com/en-us/library/aa219364(office.11).aspx[/url] | |
Re: If you want to close all the forms, you can write this line in the event handler of the BTNNO click event handler [code=C#] Application.Exit(); [/code] But if you need to close some forms, you should declare them in the form opens them globally then call it like that [icode]formInstance.Close();[/icode]this … | |
Re: Let's say it's a table (columns -cells- and rows) [code=C#] public class MyTable() { Public MyTable(int columnsNumber, int rowsNumber) { Table = new object[rowsNumber, columnsNumber]; } public object[,] Table; } [/code] Then you can apply your logic [code=C#] MyTable bla = new MyTable(20, 64); //bla.Table[0,0]; //if bla.Table[0,0] > bla.Table[0,1] //then … | |
Re: In terms of long lists and performance, Danny's solution is the best and to make it better use 'for' loop instead of 'foreach' My test on 10000 items Danny (for not foreach) | 39060 ticks Danny | 48825 ticks adatapost | 761670 ticks | |
Re: @Serkan and @Danny: please tell people the address of the forum they may be unfamiliar with the community.. @Nishanthi [url]http://www.daniweb.com/forums/forum18.html[/url] | |
Re: Attach your developed application and provide us with test case, I don't think this problem needs all those replies except you all missing something and it's not so clear. | |
Re: In such applications you need to have SMS provider, which provides you with webservice to call some method i.e pass text and cell phone number and the provider sends the SMS | |
Re: loooooool I'm not certified till now :D Good job (Y) girl | |
[URL="http://www.blogger.com/profile/14485464016030085189"]Shereef Saker [/URL]has posted an [URL="http://fci-h.blogspot.com/2007/02/singularity-research-os-written-in-c.html"]article[/URL] about Singularity: A research OS written in C#. While going through Microsoft Student Partners forum I found a post sent by Matthieu Suiche an MSP from France informing about Singularity first release... [URL="http://research.microsoft.com/os/singularity/"]Microsoft research page[/URL]: The Singularity Research Development Kit (RDK) 1.1 is now … | |
If you need to execute SQL Statements\Stored Procedures\UDFs which return\don't return results, Here I've developed this class to be used in Data Access Layer. | |
Here's I wrote some code to say binding not means control and data from database, it may be class holds some data | |
Here's I wrote some code to create login on SQL Server. 1- Add references (Microsoft.SqlServer.Smo, Microsoft.SqlServer.SqlEnum and Microsoft.SqlServer.ConnectionInfo) to your project. 2- Call method CreateLogin which takes to some arguments (documented) | |
Here's I wrote some code to backup your database 1- Add references (Microsoft.SqlServer.Smo and Microsoft.SqlServer.ConnectionInfo) to your project. 2- Call method BackupDatabase which takes to arguments database name and backup file path with extension .bak (preferable) | |
Re: Thats the process manager.... You've before compiling this code to adjust namespace names or create the windows application with Process_Manager name second to add in the form ListView control with name lvwProcesses, TextBox control with name txtMachine and Button control with name cmdRefersh and give in click event handler this … | |
Re: May you have fun every minute you live, and I wish to see your post celebrating the 100th anniversary :) | |
Re: I think ASP.NET forum [url]http://www.daniweb.com/forums/forum18.html[/url] can answer but I'll give a solution if UserControl has property = "something from UC" you can from the page holds the Usercontrol say textbox.Text = UC.PropertyName; and it's the correct the usercontrol should have no information about the page it's in. but the page … |
The End.