1,302 Posted Topics

Member Avatar for eramax
Member Avatar for Fractaler
0
888
Member Avatar for virus220

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]

Member Avatar for GeekByChoiCe
0
96
Member Avatar for rahulprasad
Member Avatar for eilana
0
175
Member Avatar for nimbusania

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

Member Avatar for sknake
0
166
Member Avatar for manjusaharan

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...

Member Avatar for isozworld
0
1K
Member Avatar for DanyLdon

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.

Member Avatar for DdoubleD
0
1K
Member Avatar for dlayante

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]

Member Avatar for DanielGreen
-1
125
Member Avatar for sonia sardana

Dim xyz AS new ClassLibrary.Assembly xyz.Add(your parameters...) I am not VB programmer; syntax may be wrong..

Member Avatar for henry032
-1
586
Member Avatar for valter

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 …

Member Avatar for sknake
0
489
Member Avatar for Diamonddrake

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

Member Avatar for Diamonddrake
1
177
Member Avatar for complete

[code] System.Diagnostics.Process.GetProcessesByName("process name")[0].Id; [/code]

Member Avatar for chathuD
0
300
Member Avatar for facadie
Member Avatar for facadie
0
2K
Member Avatar for dave starkey
Member Avatar for sknake
0
163
Member Avatar for jonsca
Member Avatar for Tank50
Member Avatar for papanyquiL

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 …

Member Avatar for papanyquiL
0
206
Member Avatar for rajesh79

hmmm, SELECT MIN(column) FROM table WHERE ( SELECT TOP 3 (column) FROM table ORDER BY column desc )

Member Avatar for manips
0
83
Member Avatar for ashok90
Member Avatar for =OTS=G-Man
Member Avatar for sknake
1
191
Member Avatar for BullzEyezz

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]

Member Avatar for BullzEyezz
0
221
Member Avatar for facadie
Member Avatar for Ramy Mahrous
0
162
Member Avatar for rock9449

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]

Member Avatar for sknake
0
137
Member Avatar for konczuras

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.

Member Avatar for sknake
0
198
Member Avatar for mjc225

ASP.NET questions should be in ASP.NET forum [url]http://www.daniweb.com/forums/forum18.html[/url]

Member Avatar for sknake
0
102
Member Avatar for kofi

Very clear guys :D Customer data with balances with some transaction "Daniweb Bank" :D

Member Avatar for bharat_h03
0
79
Member Avatar for avi-reiter
Member Avatar for guptaalok12

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.

Member Avatar for jatin24
0
116
Member Avatar for serkan sendur
Member Avatar for abhipro

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

Member Avatar for serkan sendur
0
2K
Member Avatar for EvilLinux

[code=C#] currentTextBox.Text = DateTime.Today.ToShortDateString(); threeDaysTextBox.Text = DateTime.Today.Add(new TimeSpan(3, 0, 0, 0)).ToShortDateString(); [/code]

Member Avatar for EvilLinux
0
148
Member Avatar for dima shawahneh

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...

Member Avatar for Ramy Mahrous
0
261
Member Avatar for jcl43

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 …

Member Avatar for jcl43
0
109
Member Avatar for mohankumar554

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]

Member Avatar for Ramy Mahrous
-1
208
Member Avatar for facadie

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 …

Member Avatar for facadie
0
122
Member Avatar for wewehalim

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 …

Member Avatar for Ramy Mahrous
0
3K
Member Avatar for Cory_Brown

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

Member Avatar for Cory_Brown
0
165
Member Avatar for Nishanthi

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

Member Avatar for Ramy Mahrous
0
124
Member Avatar for VibhorG

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.

Member Avatar for VibhorG
0
288
Member Avatar for chathuD

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

Member Avatar for Diamonddrake
0
126
Member Avatar for Mongz
Member Avatar for happygeek
Member Avatar for Ramy Mahrous

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

0
80
Member Avatar for Ramy Mahrous

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.

0
476
Member Avatar for Ramy Mahrous

Here's I wrote some code to say binding not means control and data from database, it may be class holds some data

Member Avatar for Ramy Mahrous
0
2K
Member Avatar for Ramy Mahrous

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)

Member Avatar for Ramy Mahrous
0
435
Member Avatar for Ramy Mahrous

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)

0
250
Member Avatar for ddanbe
Member Avatar for tayspen

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 …

Member Avatar for VinhBrao
0
169
Member Avatar for Ancient Dragon

May you have fun every minute you live, and I wish to see your post celebrating the 100th anniversary :)

Member Avatar for Wasser
1
232
Member Avatar for sniper1983

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 …

Member Avatar for mcjohn87
0
130

The End.