5,346 Posted Topics
Re: Have a look at codeproject article - [url]http://www.codeproject.com/KB/edit/TNumEditBox.aspx[/url] | |
Re: 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] + " … | |
Re: 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] | |
Re: 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. | |
Re: Misperceive ASP.NET & JavaScript. You should read the books of JavaScript & ASP.NET. | |
Re: [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. … | |
Re: Hi, Please read this thread "[URL="http://stackoverflow.com/questions/400717/crystal-reports-failed-to-open-a-rowset"]failed to open row set[/URL]". | |
Re: [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 … | |
Re: Arrays are immutable so you can't [icode]add or remove[/icode] items once you've created them. | |
Re: [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 = … | |
Re: 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] | |
Re: @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"; … | |
Re: You need to use/learn [URL="http://social.msdn.microsoft.com/forums/en-US/Vsexpressvb/thread/a8bc53e4-e3fa-4abd-ad72-14b50598c024"]WMI[/URL]. | |
Re: [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] | |
Re: 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 … | |
Re: [b]>How to process web site content.[/b] Think about regular expression. | |
Re: 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] | |
Re: Try [B]Enabled[/B] property. Post your code here if any. | |
Re: 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] | |
Re: [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] | |
Re: [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] | |
Re: [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] | |
Re: [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] | |
Re: > 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 … | |
Re: 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] | |
Re: [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 … | |
Re: 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] | |
Re: [code=text] echo y | batchFileName [/code] | |
Re: 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] | |
Re: [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] | |
Re: [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 … | |
Re: 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) | |
Re: 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. | |
Re: [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] | |
Re: 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] | |
Re: Have a look at - [url]http://stackoverflow.com/questions/190385/how-to-manipulate-images-at-pixel-level-in-c[/url] | |
Re: [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] | |
Re: Take a look at [URL="http://www.codeproject.com/KB/custom-controls/csMultiColorDropDownList.aspx"]Multi-Color DropDownList[/URL] article. | |
Re: Take a look at MSDN tutorial - [url]http://msdn.microsoft.com/en-us/library/dd562851%28VS.85%29.aspx[/url] | |
Re: 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] | |
Re: Use [B]HyperLink[/B] instead of LinkButton. | |
Re: [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] | |
Re: [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] | |
Re: [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, … | |
Re: [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 … | |
Re: [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. | |
Re: You must have to install unicode fonts (try Arial Unicode MS). | |
Re: 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); } … | |
Re: 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] | |
Re: [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] |
The End.