5,346 Posted Topics

Member Avatar for darkseid

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]

Member Avatar for darkseid
0
149
Member Avatar for vedro-compota

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

Member Avatar for Mitja Bonca
0
137
Member Avatar for vn412

DisplayMember and ValueMember properties must uses name of Fields/columns. [code] subcombo.DisplayMember ="field1" subcombo.ValueMember="field2" [/code]

Member Avatar for kvprajapati
0
90
Member Avatar for GAME

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

Member Avatar for kvprajapati
-1
99
Member Avatar for pradip kumbhar

Welcome pradip kumbhar Use Sql [URL="http://www.codeproject.com/KB/database/SQL_Server_2005_Database.aspx?display=Print"]Server Management objects[/URL].

Member Avatar for kvprajapati
0
43
Member Avatar for prvnkmr194

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

Member Avatar for prvnkmr194
0
184
Member Avatar for omokop

Try [URL="http://htmlagilitypack.codeplex.com/"]Html Agility Pack[/URL].

Member Avatar for kvprajapati
0
58
Member Avatar for x2fair
Member Avatar for kvprajapati
0
160
Member Avatar for Nitin Daphale
Member Avatar for Nitin Daphale
0
118
Member Avatar for Karl Luders

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

Member Avatar for kvprajapati
0
10K
Member Avatar for chintan_1671

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]

Member Avatar for kvprajapati
-1
255
Member Avatar for umair.sabri

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

Member Avatar for KushMishra
0
92
Member Avatar for vedro-compota

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

Member Avatar for vedro-compota
0
238
Member Avatar for BORAX
Member Avatar for x2fair
Member Avatar for tendaimare
Member Avatar for kvprajapati
0
166
Member Avatar for Nitin Daphale

>If static function safe? [URL="http://en.wikipedia.org/wiki/Thread_safety"]No[/URL]. May or may not.

Member Avatar for kvprajapati
0
105
Member Avatar for Rajeev R Nair

Here is for [URL="http://office.microsoft.com/en-us/access-help/all-distinct-distinctrow-top-predicates-HA001231351.aspx"]DISTINCT.[/URL]

Member Avatar for kvprajapati
0
817
Member Avatar for shankarmca

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

Member Avatar for kvprajapati
0
155
Member Avatar for Victoryy

>but now the database name is changes so the DSN name is also change No need to change DSN name.

Member Avatar for kvprajapati
0
75
Member Avatar for CHOCHOCHO

Double thread - [url]http://www.daniweb.com/forums/thread340070.html[/url] Thread Locked.

Member Avatar for kvprajapati
-2
358
Member Avatar for CHOCHOCHO

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

Member Avatar for kvprajapati
-2
315
Member Avatar for denmarkstan

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]

Member Avatar for denmarkstan
0
167
Member Avatar for horserider

Have a look at [URL="http://www.codeproject.com/KB/files/NShred.aspx"]codeproject article.[/URL]

Member Avatar for lolafuertes
0
77
Member Avatar for wewehalim
Member Avatar for discovery-power

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

Member Avatar for discovery-power
0
200
Member Avatar for mahmoud209

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]

Member Avatar for mahmoud209
0
103
Member Avatar for Danny1994

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]

Member Avatar for Danny1994
0
330
Member Avatar for Xcelled194

>Is there some other "Faster" data structure? Yeah! but tell me about your plan and currently used "data structure".

Member Avatar for Xcelled194
0
77
Member Avatar for Jayson83

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

Member Avatar for Jayson83
0
71
Member Avatar for mohsin_mukri

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

Member Avatar for kvprajapati
0
83
Member Avatar for markdean.expres

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

Member Avatar for markdean.expres
0
167
Member Avatar for edgias

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.

Member Avatar for kvprajapati
0
70
Member Avatar for zuve_fox

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

Member Avatar for kvprajapati
0
132
Member Avatar for JD69

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]

Member Avatar for kvprajapati
0
68
Member Avatar for guggilosmodz

Welcome guggilosmodz, Here is simple start. [code] Dim b As Byte = 15 str = b.ToString("X") [/code]

Member Avatar for kvprajapati
0
103
Member Avatar for markdean.expres

Maybe, [code] bindingsource.filter = "Address Like '" & textbox1.text & "%' and Surname Like '" & textbox2.text & "%'" [/code]

Member Avatar for markdean.expres
0
89
Member Avatar for gurdeepsingh

>when i install my application on client machine it creates problem. Can you be more specific? Which kind of problems occurred?

Member Avatar for kvprajapati
0
30
Member Avatar for wewehalim

Don't include four columns (i.e you don't want to display). [code] select distinct column1 from TableName. [/code]

Member Avatar for kvprajapati
0
104
Member Avatar for dre-logics

Nope! you can't. >Can anyone tell me how to do that? Maybe you want to add web-service in your webapp.

Member Avatar for kvprajapati
0
116
Member Avatar for WHchaz1027

Open the code and write following lines. [code] Sub New() InitializeComponent() End Sub [/code]

Member Avatar for kvprajapati
0
65
Member Avatar for BalajiSelvamMCA
Member Avatar for S.Santosh

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]

Member Avatar for kvprajapati
0
87
Member Avatar for fullmetalboy

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]

Member Avatar for kvprajapati
0
214
Member Avatar for virusisfound

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

Member Avatar for ShahanDev
-1
95
Member Avatar for dinesh.isuranga

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 …

Member Avatar for dinesh.isuranga
0
5K
Member Avatar for jember

Best and Free Ruby IDEs! - [URL="http://www.aptana.com/"]Aptana[/URL] and [URL="http://netbeans.org/downloads/index.html"]NetBeans[/URL]

Member Avatar for kvprajapati
1
192
Member Avatar for Jayson83

Want to display n/N. [code] str=Me.BindingContext(dtMaster).Position & "/" & Me.BindingContext(dtMaster).Count [/code]

Member Avatar for kvprajapati
0
161
Member Avatar for erdinc27

I'm not sure which method you have used - Bounded Column or Unbounded column? Show us your code please.

Member Avatar for erdinc27
0
371
Member Avatar for Girum1
Re: C#

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]

Member Avatar for kvprajapati
0
204

The End.