5,346 Posted Topics

Member Avatar for Dimansu

Have a look at codeproject article - [url]http://www.codeproject.com/KB/edit/TNumEditBox.aspx[/url]

Member Avatar for ddanbe
0
84
Member Avatar for moshe12007

In console application, [code] string sql = "Select * from Table1 "; DataSet ds = new DataSet(); string connStr = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database.mdf;Integrated Security=True;User Instance=True"; SqlDataAdapter adapter = new SqlDataAdapter(sql,connStr); adapter.Fill(ds,"tab1"); foreach(DataRow r in ds.Tables["tab1"].Rows) { // r[0] - columns ordinal - 1st column // or use r["column_name"] Console.WriteLine(r[0] + " …

Member Avatar for nick.crane
0
98
Member Avatar for Augustin

Augustin, Read articles. [URL="http://www.codeproject.com/KB/audio-video/VoiceRecording.aspx"]http://www.codeproject.com/KB/audio-video/VoiceRecording.aspx[/URL] [URL="http://msdn.microsoft.com/en-us/library/aa446573.aspx"]Recording and Playing Sound with the Waveform Audio Interface[/URL] [URL="http://msdn.microsoft.com/en-us/library/bb945061.aspx"]Audio API Overview for Windows Vista Developers [/URL]

Member Avatar for mca_msp
0
221
Member Avatar for Tank50

Dear members. Please do not resurrect old threads.If you have any questions please ask. You are welcome to start your own threads. Thread Locked.

Member Avatar for kvprajapati
0
294
Member Avatar for teckforce
Member Avatar for teckforce
-1
611
Member Avatar for laghaterohan

[QUOTE=laghaterohan;1256212]Hello, I have many controls on my form ( textboxes, radiobuttons, dropdownlist, checkboxes inside gridview) i want to clear them all once the form is submitted. Please any one tell me how to do it? I am looking for somegeneric method which will help me to solve it... Awating response. …

Member Avatar for dnanetwork
0
259
Member Avatar for Ali.M.Habib

Hi, Please read this thread "[URL="http://stackoverflow.com/questions/400717/crystal-reports-failed-to-open-a-rowset"]failed to open row set[/URL]".

Member Avatar for Ali.M.Habib
0
111
Member Avatar for Kami3

[b]>Hello, How can 2 connected clients with one server can communicate each other in c#[/b] The .NET framework provides two namespaces, [B]System.Net[/B] and [B]System.Net.Sockets[/B] for network programming. The classes and methods of these namespaces help us to write programs, which can communicate across the network. Take a look at this …

Member Avatar for chan_lemo
0
268
Member Avatar for madhan

Arrays are immutable so you can't [icode]add or remove[/icode] items once you've created them.

Member Avatar for madhan
0
107
Member Avatar for DaveTran

[code] public abstract class Foo { public abstract void Spawn(Settings settings); } public class Bar1 : Foo { float a; int b; public override void Spawn(Settings _settings) { if (_settings == null) { _settings = new Bar1Settings(); } Bar1Settings settings = _settings as Bar1Settings ; a = settings.a; b = …

Member Avatar for nick.crane
1
202
Member Avatar for cdgregory
Re: OOP

You should try out Linq to SQL Inheritance. Have a look at following articles : 1. [url]http://blogs.microsoft.co.il/blogs/bursteg/archive/2007/10/01/linq-to-sql-inheritance.aspx[/url] 2. [url]http://msdn.microsoft.com/en-us/library/bb384467.aspx[/url] 3. [url]http://msdn.microsoft.com/en-us/library/bb399352.aspx[/url]

Member Avatar for cdgregory
0
70
Member Avatar for lm111

@lm111 For easy readability, always wrap programming code within posts in CODE-tags Use DataAdapter. protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) LoadSearchList(); } private void LoadSearchList() { string connectionString = ConfigurationManager.ConnectionStrings["ApplicationServices"].ConnectionString; OleDbDataAdapter adp=new OleDbDataAdapter("SELECT myID, title FROM books",connectionString); DataTable dt=new DataTable(); adp.Fill(dt); mydropdownList.DataSource = dt mydropdownList.DataValueField = "myID"; …

Member Avatar for lm111
0
124
Member Avatar for Kingcoder210

You need to use/learn [URL="http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/a8bc53e4-e3fa-4abd-ad72-14b50598c024"]WMI[/URL].

Member Avatar for kvprajapati
0
117
Member Avatar for GAME

[QUOTE=GAME;1253987]If youre using Microsoft.VisaulBasic, youre suppose to be able to use ProjectData, but I cant. Any suggestions?[/QUOTE] Read this MSDN article - [url]http://msdn.microsoft.com/en-us/library/microsoft.visualbasic.compilerservices.projectdata.aspx[/url]

Member Avatar for GAME
0
94
Member Avatar for maria_mj

You [B]must[/B] read "[URL="http://msdn.microsoft.com/en-us/library/ms178472.aspx"]ASP.NET Page life-cycle[/URL]" article. (I'm not going to explain page execution here). You are working on web-application not a windows desktop application. You must not use the code pattern you have written for your application. After the execution of command, connection object must be [URL="http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.close.aspx"]closed/disposed[/URL] immediately. Don't …

Member Avatar for maria_mj
0
960
Member Avatar for dimovdaniel
Member Avatar for kvprajapati
0
70
Member Avatar for wade2462

String is [URL="http://msdn.microsoft.com/en-us/library/system.string.aspx"]immutable [/URL](constant/readonly)object. Its value cannot be modified once it has been created. Use [URL="http://msdn.microsoft.com/en-us/library/system.text.stringbuilder.aspx"]StringBuilder [/URL]class (It's mutable object). [code] StringBuilder sb = new StringBuilder(); sb.Append("HeleoWorld"); sb[3] = 'l'; Console.WriteLine(sb); [/code]

Member Avatar for wade2462
0
125
Member Avatar for mugabbo
Member Avatar for kvprajapati
-1
81
Member Avatar for octavia

Take a look at following code. [code] private void Form1_Load(object sender, EventArgs e) { listView1.Columns.Add("No"); listView1.Columns.Add("Name"); listView1.Items.Add(new ListViewItem(new string[]{"1","Mr.A"})); listView1.Items.Add(new ListViewItem(new string[] { "2", "Mr.B" })); listView1.MultiSelect = false; } private void button1_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count!=0) { int n = int.Parse(listView1.SelectedItems[0].Text); MessageBox.Show(n.ToString()); } } [/code]

Member Avatar for kvprajapati
0
98
Member Avatar for onlinessp

[QUOTE=onlinessp;1254061]I am unable to understand please give me some sample code[/QUOTE] Sure. Take a look at - [url]http://support.microsoft.com/kb/303974[/url]

Member Avatar for kvprajapati
0
199
Member Avatar for aianne

[b]>will you please help me about Turbo C?[/b] Turbo C/C++ is a real real old, and an ancient compiler! For more information see: 1. [url]http://www.daniweb.com/forums/showthread.php?t=252858&highlight=Turboc[/url] 2. [url]http://www.daniweb.com/forums/thread140692.html[/url] 3. [url]http://www.daniweb.com/forums/thread202987.html[/url]

Member Avatar for Adak
0
313
Member Avatar for fateme48984

[QUOTE=fateme48984;1252163]hello all. I have a problem in c#. I want to change one column's type in my datagridview to link type. I dont want to use code for this work,but I dont know how can I do it? please help me....[/QUOTE] Take a look at - [url]http://www.daniweb.com/forums/thread167687.html[/url]

Member Avatar for kvprajapati
0
77
Member Avatar for like_bilal02

[code] Sql = "select e.item_no from nitmtbl e,purchaseitem g where e.item_name=g.item_name and g.item_name='grovita sp'" Da = New SqlDataAdapter(Sql, Class1.Connection) Dim dt As New DataTable Da.Fill(dt) DataGridView1.DataSource=dt [/code]

Member Avatar for like_bilal02
0
103
Member Avatar for g2gayan

> bbman ,, ! > I Need to use a while loop to generate the output :( > it needs to work according to the antilogarithm in the above post .. Thanks ~! can you modify this code a bit ! actually i dont want to use the list here …

Member Avatar for kvprajapati
0
121
Member Avatar for g2gayan

Take a look at foll. links (MSDN articles and samples) 1. [url]http://msdn.microsoft.com/en-us/library/bb158522.aspx[/url] 2. [url]http://msdn.microsoft.com/en-us/library/bb158662.aspx[/url] 3. [url]http://www.microsoft.com/windowsmobile/en-us/meet/default.mspx[/url]

Member Avatar for g2gayan
0
93
Member Avatar for GAME

[QUOTE=GAME;1252714]Hello, Right now I have like 11 forms on my program. When I debug my program, my program keeps loading every 1 second (with the timer and the mouse). All the mouse icons are default. Is there any way to make a program faster?[/QUOTE] Can you describe more accurately what …

Member Avatar for GAME
0
103
Member Avatar for tungnk1993

Take a look at this articles/threads. 1. [url]http://www.codeproject.com/KB/cpp/TangramLite1.aspx[/url] 2. [url]http://www.codeguru.com/forum/showthread.php?t=460250[/url]

Member Avatar for kvprajapati
0
92
Member Avatar for Brandrune
Member Avatar for laptop545

Have a look at CodeProject article - [url]http://www.codeproject.com/KB/custom-controls/asppopup.aspx[/url] AJAX toolkit popup - [url]http://www.asp.net/ajax/ajaxcontroltoolkit/Samples/ModalPopup/ModalPopup.aspx[/url]

Member Avatar for kvprajapati
0
145
Member Avatar for GAME

[QUOTE=GAME;1252581]How would I get the response of a webrequest and search for a certain text?[/QUOTE] Take a look at [url]http://msdn.microsoft.com/en-us/library/system.net.webrequest.aspx[/url]

Member Avatar for GAME
-1
67
Member Avatar for mdutton

[QUOTE=mdutton;1252440]I'm extreamly new to programming actually learning on my own, college is not an option now. Need some help. I'm trying to write the code to add users to sql 2005 backend server, and a windows login form. so that certain area's of my program have restricted access. Can anyone …

Member Avatar for kvprajapati
0
78
Member Avatar for rajdey1

Showing your code might help. This is not a right way to ask for help. Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far? [We only give homework help to those who show effort](http://www.daniweb.com/forums/announcement61-2.html)

Member Avatar for kvprajapati
0
143
Member Avatar for sara khan

I think you are trying to read request attribute. Please show us your code. Also, don't forget to encase the code in code tags.

Member Avatar for kvprajapati
0
110
Member Avatar for GAME

[QUOTE=GAME;1250631]Is there any way to make it so a .dll is not visible? Or is there a way to import a .dll into your program, so its not outputted on debug?[/QUOTE] Read [URL="http://my.execpc.com/~gopalan/dotnet/reflection.html"] Load .dll dynamically.[/URL] and [url]http://stackoverflow.com/questions/1087794/c-load-a-dll-file-and-access-methods-from-class-within[/url]

Member Avatar for GAME
0
150
Member Avatar for GAME

Code should be, [code] if(SearchButtonIsClicked){ if (webBrowser1.DocumentText.Contains("Hello")) { this.Text = "iUltimate - Cheating Zone - " + txtUser.Text; } else { MessageBox.Show("Error, please try again. This might be caused by misspelling your username or pass. Only V.I.P. Members can sign in."); } } [/code]

Member Avatar for GAME
0
84
Member Avatar for neithan

Have a look at - [url]http://stackoverflow.com/questions/190385/how-to-manipulate-images-at-pixel-level-in-c[/url]

Member Avatar for neithan
0
128
Member Avatar for homeryansta

[QUOTE=homeryansta;1251611]as the title states. Is there a way to determine if both datatypes are the same?[/QUOTE] var.GetType() method. [code] Dim no As Integer Dim no1 As Double If no.GetType().Equals(no1.GetType()) Then ' ' End If [/code]

Member Avatar for homeryansta
0
70
Member Avatar for ypdev

Take a look at [URL="http://www.codeproject.com/KB/custom-controls/csMultiColorDropDownList.aspx"]Multi-Color DropDownList[/URL] article.

Member Avatar for ypdev
0
148
Member Avatar for shashimgowda8

Take a look at MSDN tutorial - [url]http://msdn.microsoft.com/en-us/library/dd562851%28VS.85%29.aspx[/url]

Member Avatar for shashimgowda8
0
66
Member Avatar for wade2462

Code is correct. [code] int Number; Number = int.Parse(Console.ReadLine()); [/code] Following code will throws an error : cannot implicitly convert from 'int' to 'string [code] string Number; Number = int.Parse(Console.ReadLine()); [/code]

Member Avatar for kvprajapati
0
110
Member Avatar for Uzumaki52
Member Avatar for lesd

[b]>I'm wondering if there is a way to run an ASP.NET 301 Redirect script within the old HTML pages?[/b] No. You can't write. Here is a link might help you - [url]http://forums.asp.net/p/1490335/3501758.aspx[/url]

Member Avatar for kvprajapati
0
86
Member Avatar for deeptakshd

[QUOTE=deeptakshd;1251541]i m working on my project implementation of antnet ............can anybody help me getting good tutorials on ns2[/QUOTE] Please visit : [url]http://www.asp.net[/url] and [url]http://aspalliance.com/144[/url]

Member Avatar for kvprajapati
0
52
Member Avatar for dionisov

[QUOTE=dionisov;1251566]How can I do the same thing with other shaped like rectangle? I know that I need x,y,widht,height but it still don't do my rec. Any ideas?[/QUOTE] Handle the [B]Paint[/B] event of Form object. [code] Private Sub Form1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me.Paint e.Graphics.DrawRectangle(Pens.Red, 30, 30, …

Member Avatar for kvprajapati
0
100
Member Avatar for perryg30313

[b]>I am having trouble retrieving data from a stored procedure that I have set up as a Data Adapter using VB.NET 2005.[/b] [code] Dim Cn as New SqlConnection(ConnectionString) Dim Cmd as new SqlCommand() cmd.Connection=Cn cmd.CommandType=CommandType.StoredProcedure cmd.CommandText="spValidateLogin" cmd.Parameters.AddWithValue("@LoginID",UID) Dim Adp as New SqlDataAdapter(cmd) //Run Stored-proce & populate datatable object. Dim Dt …

Member Avatar for kvprajapati
0
90
Member Avatar for Renukavani

[QUOTE=Renukavani;1242734]Hi All, I'm new to Blog concepts.Is it possible to post the comments to website using the webservice instead of directly post the comments in website. Any help can welcome.[/QUOTE] You have to use concern Blog API.

Member Avatar for hattreyhten
0
72
Member Avatar for Pellatrex
Member Avatar for Duki

Call [B]form_Splash.Refresh()[/B] method. [code] private void Form1_Load(object sender, EventArgs e) { Form2 f = new Form2(); f.Show(); f.Owner = this; f.BeginInvoke(new Action(()=>{ f.label1.Text = "Hello"; f.label2.Text = "Hi"; f.progressBar1.Maximum = 100; f.progressBar1.Minimum = 1; [COLOR="Red"]f.Refresh();[/COLOR] for (int i = 1; i <= 100; i++) { f.progressBar1.Value = i; System.Threading.Thread.Sleep(100); } …

Member Avatar for kdion1024
0
151
Member Avatar for ajwei810192

Take a look at LINQ - XML. [code] var result = from v in XDocument.Load(@"c:\folder\sample.xml").Descendants("country") orderby v.Value select v; foreach (var t in result) Console.WriteLine(t); [/code]

Member Avatar for ajwei810192
0
1K
Member Avatar for maria_mj

[b]>i dont know how to pass the data for that selected row to be displayed in other page. Can someone help me??[/b] Use [B]Session[/B] state. Click handler of button of page1.aspx [code] Session["firstname"]=textbox1.Text; Session["lastname"]=textbox2.Text; [/code] Page_load handler of page2.aspx [code] if(!IsPostBack){ if(Session["firstname"]!=null) TextBox1.Text=Session["firstname"].ToString(); if(Session["lastname"]!=null) TextBox1.Text=Session["lastname"].ToString(); } [/code]

Member Avatar for rohand
0
692

The End.