5,346 Posted Topics
Re: Do use Dictionary to store roots. [code] Dictionary<string, string> elements = new Dictionary<string, string>() { {"a","1"}, {"b","2"}, {"c","3"} }; string text = "aabb2wccaaabbber"; var result =string.Join("",(from n in text select elements.ContainsKey(n.ToString()) ? elements[n.ToString()] : n.ToString()).ToArray()); Console.WriteLine(result); [/code] | |
Re: Thread might be another option, [code] public class Test : System.ComponentModel.INotifyPropertyChanged { private int _no; private bool _stopped; public Test() { System.Threading.Thread th = new System.Threading.Thread(() => { _stopped = false; while (!_stopped) { System.Threading.Thread.Sleep(5000); //five seconds if (No == 0) No = 1; else No = 0; } }); … | |
Re: DisplayMember and ValueMember properties must uses name of Fields/columns. [code] subcombo.DisplayMember ="field1" subcombo.ValueMember="field2" [/code] | |
Re: @GAME Please read the rules before posting again, in particular the 'keep it organized' one - subject titles such as, 1. Do read the forum description to ensure it is is relevant for your posting 2. Do provide evidence of having done some work yourself if posting questions from schoolwork … | |
Re: Welcome pradip kumbhar Use Sql [URL="http://www.codeproject.com/KB/database/SQL_Server_2005_Database.aspx?display=Print"]Server Management objects[/URL]. | |
Re: >My problem is that I cant able to handle various exception and display appropriate message. I suggest - [URL="http://msdn.microsoft.com/en-us/library/aa697427(v=vs.80).aspx"]Entity Data Model Framework.[/URL] | |
Re: Try [URL="http://htmlagilitypack.codeplex.com/"]Html Agility Pack[/URL]. | |
Re: Double thread - [url]http://www.daniweb.com/forums/thread339772.html[/url] Thread Locked. | |
Re: Take a look at this [URL="http://forums.asp.net/p/1612758/4124602.aspx"]thread.[/URL] | |
Re: @kruxena, Only the person who created this thread can mark as Solved. BTW, this thread is two years old. Please do not resurrect years old thread, "me too"! Start a new thread if you have a new question. Thread Locked. | |
Re: Try this, [code] static void Main(string[] args) { unsafe { string str = "Hello World"; char* pstr=stackalloc char[str.Length + 1]; int i = 0; for(i=0;i<str.Length;i++) { *(pstr + i) = str[i]; } *(pstr+i) = '\u0000'; while (*pstr != '\u0000') Console.WriteLine(*pstr++); } } [/code] | |
Re: >how i can show image can any body help me???? There are number of ways to show an image. [code] <img src="Images/inage1.jpg" alt="image"/> [/code] [code] <asp:Image id="img1" runat="server" ImageUrl="~/Images/image1.jpg"/> [/code] | |
Re: +1 @gusano79 for nice response. >what about multiple polymorphism exactly ? **You must have to read posts of @gusano79 and wiki articles.** I don't want to paste a link but it not easy and feasible to explain [types polymorphism](http://en.wikipedia.org/wiki/Type_polymorphism). Text from wiki: > In software engineering, [double dispatch](http://en.wikipedia.org/wiki/Double_dispatch) is a … | |
Re: Please check your code - argument type, order of argument. | |
Re: You have a wrong connection string. Which database are you using? | |
Re: >If static function safe? [URL="http://en.wikipedia.org/wiki/Thread_safety"]No[/URL]. May or may not. | |
Re: Here is for [URL="http://office.microsoft.com/en-us/access-help/all-distinct-distinctrow-top-predicates-HA001231351.aspx"]DISTINCT.[/URL] | |
Re: >i am inserting data using datagrid but my problem is that it is not inserting the last row item itemqty value only Maybe [B]ItemQty[/B] is empty. I think more explanation is needed. | |
Re: >but now the database name is changes so the DSN name is also change No need to change DSN name. | |
Re: Double thread - [url]http://www.daniweb.com/forums/thread340070.html[/url] Thread Locked. | |
Re: @CHOCHOCHO What about this thread - [url]http://www.daniweb.com/forums/thread340059.html[/url] (double thread) Please [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]read[/URL] the rules before posting again, in particular the 'keep it organized' - Do not post the same question multiple times. | |
Re: DropDownList is a ready to use control in asp.net and you have to put some values in it. [code] DropDownList1.Items.Add("Value1"); .... [/code] | |
Re: Have a look at [URL="http://www.codeproject.com/KB/files/NShred.aspx"]codeproject article.[/URL] | |
Re: Create a collection/array of BindingSource. | |
Re: [code] Sub Test() conn = New SqlConnection("Data Source=JOHN-ELLIS-PC;Initial Catalog=mtrbookings;Integrated Security=True") dsBookings = New DataSet Bookings = New SqlDataAdapter("SELECT BookingID,RoomID,UserID,BookDate,StartTime,EndTime,Reason FROM Bookings", conn) Dim cmdBuilder As SqlCommandBuilder = New SqlCommandBuilder(Bookings) Bookings.Update(dsBookings, "mtrbookings") [/code] | |
Re: Take a look at this blog - [URL="http://sketchupapi.blogspot.com/"]SketchUp API Blog[/URL] and [URL="http://code.google.com/apis/sketchup/docs/downloadsdksubmit.html"]API.[/URL] | |
Re: Try, [code] private: System::Void textBox1_KeyPress(System::Object^ sender, System::Windows::Forms::KeyPressEventArgs^ e) { if(Char::IsDigit(e->KeyChar)) return; if(e->KeyChar=='\b') return; if(e->KeyChar=='-') return; e->Handled=true; } [/code] | |
Re: >Is there some other "Faster" data structure? Yeah! but tell me about your plan and currently used "data structure". | |
Re: >everything I have tried or found does not work. And you haven't posted here. Please post your code here. Please use BB code tags while posting source program. [noparse] [code] .... [/code] [/noparse] | |
Re: Do you want to deploy it on Report server Sql [URL="http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/3381ec01-98a2-4fe5-aefc-a9b932dcfa01/"]2005/2008[/URL]?. | |
Re: >can I customize my datareport? How? VB.NET 2008 uses [URL="http://msdn.microsoft.com/en-us/library/bb885185(v=VS.90).aspx"]Microsoft Report[/URL] or [URL="http://msdn.microsoft.com/en-in/library/ms227881(v=VS.90).aspx"]CrystalReport[/URL] | |
Re: Add a [b]Delete[/b] Command button (set CommandName & CommandArgument) and a CheckBox in TemplateField. To write record delete code, handle the RowDeleting event of GridView. | |
Re: >how to add,modified address record automatically using vb.net? At least you need to write code to add/modify a record. To add a record, first of all, get a contact entity. | |
Re: Have a look at - [URL="http://social.msdn.microsoft.com/Forums/en/netfxnetcom/thread/7628f2dd-ee0e-42ab-8aeb-d9a3fbe716c7"]How to share the folder using vb.net code?[/URL] | |
Re: Welcome guggilosmodz, Here is simple start. [code] Dim b As Byte = 15 str = b.ToString("X") [/code] | |
Re: Maybe, [code] bindingsource.filter = "Address Like '" & textbox1.text & "%' and Surname Like '" & textbox2.text & "%'" [/code] | |
Re: >when i install my application on client machine it creates problem. Can you be more specific? Which kind of problems occurred? | |
Re: Don't include four columns (i.e you don't want to display). [code] select distinct column1 from TableName. [/code] | |
Re: Nope! you can't. >Can anyone tell me how to do that? Maybe you want to add web-service in your webapp. | |
Re: Open the code and write following lines. [code] Sub New() InitializeComponent() End Sub [/code] | |
Re: Remove a value from DataSourceID property. | |
Re: When input is 11 or more then there will be errors. You can use List<T> for PictureBoxes , Labels and other controls. [code] List<Label> lab=new List<Label>(); List<PictureBox> pictures=new List<PictureBox>(); void Test() { for(int i=1;i<=20;i++) { PictureBox pc=new PictureBox(); pc.MouseHover+=new EventHandler(Manage_Another_Account_frm_MouseHover); this.Controls.Add(pc); pictures.Add(pc); .... } } [/code] | |
Re: Take a look at: [code] var result = from book in allbooks join author in bookauthors on book.BookID equals author.BookId select new { BookID = book.BookID, Title = book.Title, AuthorBookID = author.Book_Author, Forfattare = author.Forfattare}; [/code] | |
Re: [code] string code = ""; for (int i = 1; i <= 10; i++) { int no; int.TryParse(code, out no); no++; code = new string('0', 3 - no.ToString().Length) + no; Console.WriteLine(code); } [/code] | |
Re: Read Narue's second post. First of all, populate the datatable instance via Fill method, do some insert/delete/update actions on datatable and invoke Update method if you want to commit these changes. [code] SqlCommand cmd = new SqlCommand("select * from dbo.bind_tab", conn.createconnection()); SqlDataAdapter da = new SqlDataAdapter(cmd); SqlCommandBuilder cb = new … | |
Re: Best and Free Ruby IDEs! - [URL="http://www.aptana.com/"]Aptana[/URL] and [URL="http://netbeans.org/downloads/index.html"]NetBeans[/URL] | |
Re: Want to display n/N. [code] str=Me.BindingContext(dtMaster).Position & "/" & Me.BindingContext(dtMaster).Count [/code] | |
Re: I'm not sure which method you have used - Bounded Column or Unbounded column? Show us your code please. | |
Re: I think you want to show records onto the form. Add DataGridView control and write following code. [code] datagridview1.DataSource=ds; datagridview1.DataMember="Table1"; [/code] |
The End.