5,346 Posted Topics
Re: [code] SqlCeDataReader rrs; SqlCeCommand comd = new SqlCeCommand("select CodePersonne from Table1 where DateR='" + DateTime.Now + "'", conne); rrs = comd.ExecuteReader(); [/code] | |
Re: Can you please specify the argument type of out() method and PortNum? | |
Re: [code] private void panel1_MouseMove(object sender, MouseEventArgs e) { if (flag) Cursor.Hide(); else Cursor.Show(); } [/code] | |
Re: Hi, You can use ProcessStartInfo class or WindowsIdentity (Windows [URL="http://www.codeproject.com/KB/cs/cpimpersonation1.aspx"]Impersonation[/URL]). | |
Re: [b]>I wonder if anyone here have done an inventory program in C#.[/b] It's a routine application. [b]>If you have could you please give me the project?[/b] Why? Be specific about your demand. You need some samples of datagridview controls. [QUOTE=Exaktor] It doesn't have to be inventory program it is also … | |
Re: Hi HappyMe. I'm glad you got it helpful. Please do not resurrect old threads. Please Do not hijack another thread to ask your question but start your own thread instead. If you have any questions please ask. .... You are welcome to start your own threads. Thread Closed. | |
Re: Please read this thread - [url]http://social.msdn.microsoft.com/forums/en-us/netfxnetcom/thread/ce22ef1c-72ac-47da-afd7-5ec7a5ffd6bb[/url] | |
Re: Take a look at - [url]http://blogs.technet.com/grouppolicy/archive/2010/03/09/visual-c-samples-using-the-gpmc-class-library-published.aspx[/url] | |
Re: [b]>Difference between C++ and C#[/b] Read blog/article. 1. [URL="http://www.thinkingparallel.com/2007/03/06/c-vs-c-a-checklist-from-a-c-programmers-point-of-view/"]CheckList[/URL] 2. MSDN article - [URL="http://msdn.microsoft.com/en-us/library/yyaad03b(VS.71).aspx"]Comparison Between C++ and C#[/URL]. | |
Re: [b]>Please help me coding this part of it as it is my important part of my project before joining into a company.[/b] Yes. I like homework but put here your code work please. | |
Re: Take a look at [url]http://www.codeproject.com/KB/edit/RichTextBoxLinks.aspx[/url] | |
Re: Use/Learn WCF (Windows Communication Framework). | |
Re: [b]>Accessing items in windows applications[/b] Nope. You can't use any type of element or entity of one program (executable) into another program. | |
Re: @aryan_naren Please do not resurrect old threads. If you have any questions please ask. .... You are welcome to start your own threads. Please read the forum rules 1. [url]http://www.daniweb.com/forums/faq.php?faq=daniweb_policies[/url] 2. [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: @BFaunce Do not hijack another thread to ask your question but start your own thread instead. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Thread Closed. | |
Re: Open crystal designer and check the name of parameter. I think it should be [B]CDate1[/B] or something else. | |
Re: Have a look at, xaml markup [code] <Grid> <ListView> <TreeView Name="tree1"> <TreeViewItem Header="One"> </TreeViewItem> <TreeViewItem Header="Two"> </TreeViewItem> </TreeView> </ListView> </Grid> [/code] code [code] Dictionary<string, List<string>> items = new Dictionary<string, List<string>>() { {"One",new List<string>() {"A","B","C"}}, {"Two",new List<string>() {"P","Q"}}, }; foreach (TreeViewItem tv in tree1.Items) { foreach (string item in items[tv.Header.ToString()]) tv.Items.Add(item); … | |
Re: [b]>How to differentiate system databases and user created databases in sql server [/b] Read these articles - [url]http://articles.techrepublic.com.com/5100-10878_11-6105067.html[/url] and [url]http://www.databasejournal.com/features/mssql/article.php/1460181/System-Databases-and-Tables.htm[/url] | |
Re: You need to implements System.ComponentModel.IDataErrorInfo interface. [code] namespace wpfdatetimevalidation { public class DateValidation : System.ComponentModel.IDataErrorInfo { public string Date { get; set; } #region IDataErrorInfo Members public string Error { get { return null; } } public string this[string columnName] { get { string result = null; if (columnName == … | |
Re: Error says that you haven't assign a SQL statement to the CommandText Property. [code] cmd.CommandText="put_sql_statement_here" [/code] Show us your code please. | |
Re: Take a look at this thread - [url]http://stackoverflow.com/questions/83777/are-there-any-fuzzy-search-or-string-similarity-functions-libraries-written-for-c[/url] | |
Re: [b]>I searched the web for an answer to this but no success so far.[/b] Me too. I think you want to request am xml document and return something. Isn't it? Please be specific about your question. | |
Re: [b]>The Above Code has Runtime Error. Type ' Product' is not defined. Pls help me.[/b] Please define the Type "Product". | |
Re: Use [b]CrystalReportSource1.ReportDocument.ExportToDisk[/b] or [B]CrystalReportSource1.ReportDocument.ExportToHttpResponse[/B] or [B]CrystalReportSource1.ReportDocument.ExportToStream[/B] method. | |
Re: Have you tried [url]http://htmlagilitypack.codeplex.com/[/url] ? I think this question already been asked by you. Isn't it? | |
Re: @daarong. We appreciate your comments. Have you ever noticed that the current thread is four years old? Please do not resurrect old threads. Have a look at forum [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Please read before posting - [url]http://www.daniweb.com/forums/thread78223.html[/url] Thread Closed. | |
Re: Open that file with specific encoding style. [code] rs = new System.IO.StreamReader("file", System.Text.Encoding.ASCII) [/code] | |
Re: You can't assign value/reference to readonly property (e.Result). | |
Re: You have to populate listview object into a constructor of MainForm class. | |
Re: Use [URL="http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/a8160578-baa4-4c2b-beb6-d44cbfb7fe2d"]DataGridViewCheckBoxColumn[/URL] | |
Re: Maybe you need to use relational operators. [code] SELECT AttendanceID, StudentID, ClassId, DateOfClass, Absent FROM Attendance WHERE DateOfClass>=#" & dteStartDate & "# AND DateOfClass<=#" & dteEndDate & "#" [/code] | |
Re: [b]>how to parse the XML?[/b] You can use classes of System.Xml namespace. [b]>how to create PictureBoxes on the fly?[/b] Instantiate the PictureBox class and add it to the container. [code] PictureBox bx=new PictureBox(); this.Controls.Add(bx); [/code] [b]>how to make sure the layout consistently fits my Panel?[/b] Which layout are you using … | |
Re: [QUOTE=mornej;1218701]what is ds in this example, meaning what type of control?[/QUOTE] Do not hijack another thread to ask your question but start your own thread instead. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Thread Closed. | |
Re: [b]>the codes make my GUI turn no response.[/b] That's true. Take a look. [code] private void button1_Click(object sender, EventArgs e) { textBox1.Invoke(new Action<int,int>((a,b) => { while (a > b) { textBox1.Text = a.ToString(); a--; System.Threading.Thread.Sleep(70); textBox1.Refresh(); } }),20,1); } [/code] | |
Re: Invoke FormView1.DataBind() or rebind FormView after updating/deleting/inserting. | |
Re: [b]>Putting a graphics into a variable[/b] I think you want to save the drawings. Isn't it? | |
Re: Please mark this thread as solved if you have found an answer to your question and good luck! | |
Re: Have a look at this thread - [url]http://social.msdn.microsoft.com/forums/en-US/adodotnetdataproviders/thread/86a83eae-0e88-4c41-9563-5a34262abfc0[/url] | |
Re: Welcome. Show us your code work please. You might want to read [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]Daniweb [/URL]rules and homework policy ~[URL="http://www.daniweb.com/forums/announcement61-2.html"]We only give homework help to those who show effort[/URL]~ if you run into problems and want to ask for help here. | |
Re: [code] private bool DBConnection(string strUserName, string strPassword) { ...... ...... return false; } [/code] | |
Re: Do you know what [B]Fill[/B] and [B]Update[/B] method DataAdapter class does? | |
Re: [b]>asp.net+page cannot found[/b] There may be several reasons: 1. Your page might contains some code that doesn't terminate the page execution at server side. (Possibly a recursive method or something like that) 2. IIS or development server not started yet! | |
Re: [b]>Is it possible to programmatically log out from a website[/b] When you close that win app or unload that form which hosts webbrowser control, you will be logged out. PS: Please do not flood the forum by posting the same question more than once. | |
Re: Try this. If it can't solve then post -complete- markup and code here. [code] comd = New OdbcCommand("INSERT INTO [news] (new_title, new_content) values(@newTitle, @newContent)", conn) comd.Parameters.AddWithValue("@newTitle",newsTitle.Text) comd.Parameters.AddWithValue("@newContent",newsContent.Text) conn.Open() comd.ExecuteNonQuery() conn.Close() Response.Redirect("default.aspx") [/code] | |
Re: maheshbandi Please do not resurrect old threads. If you have any questions please ask. .... You are welcome to start your own threads. Please read the rules before posting again - [url]http://www.daniweb.com/forums/thread78223.html[/url] and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]rules[/URL]. Thread Closed. | |
Re: Show us your code please. [code] <Window.Resources> <ControlTemplate x:Key="ts" TargetType="{x:Type Button}" > <Border Name="tt" CornerRadius="4" Focusable="True" Background="Transparent" HorizontalAlignment="Center" Padding="3" Margin="5" BorderBrush="Black" BorderThickness="2"> <ContentPresenter /> </Border> <ControlTemplate.Triggers> <Trigger Property="Control.IsMouseOver" Value="True"> <Setter TargetName="tt" Property="Background" Value="Red"/> </Trigger> </ControlTemplate.Triggers> </ControlTemplate> </Window.Resources> <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> <StackPanel.Background> <ImageBrush ImageSource="Images/1.jpg" TileMode="Tile" Viewbox="0,0,.3,.4"/> </StackPanel.Background> <Button Template="{StaticResource ts}" … | |
Re: Have a look these threads: 1. [url]http://www.daniweb.com/forums/thread202843.html[/url] 2. [url]http://www.daniweb.com/forums/thread112739.html[/url] | |
| |
Re: Prepare connection, adapter, and builder object. [code] cn=new SqlConnection("put_connection_string_here"); da = new SqlDataAdapter("select * from tablename",cn); cb = new SqlCommandBuilder(da); [/code] Fetch data from the database. [code] DataSet ds=new DataSet(); da.Fill(ds,"UserDetails"); myGridView.DataSource = ds.Tables["UserDetails"]; [/code] To update data. [code] da.Update(ds, "UserDetails"); [/code] |
The End.