5,346 Posted Topics

Member Avatar for basma.lm

[code] SqlCeDataReader rrs; SqlCeCommand comd = new SqlCeCommand("select CodePersonne from Table1 where DateR='" + DateTime.Now + "'", conne); rrs = comd.ExecuteReader(); [/code]

Member Avatar for basma.lm
0
212
Member Avatar for SteveyD

Can you please specify the argument type of out() method and PortNum?

Member Avatar for SteveyD
0
122
Member Avatar for sush27

[code] private void panel1_MouseMove(object sender, MouseEventArgs e) { if (flag) Cursor.Hide(); else Cursor.Show(); } [/code]

Member Avatar for finito
0
184
Member Avatar for agent154

Hi, You can use ProcessStartInfo class or WindowsIdentity (Windows [URL="http://www.codeproject.com/KB/cs/cpimpersonation1.aspx"]Impersonation[/URL]).

Member Avatar for sknake
0
1K
Member Avatar for Exaktor

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

Member Avatar for finito
0
135
Member Avatar for PEFCa

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.

Member Avatar for kvprajapati
0
154
Member Avatar for delizihin

Please read this thread - [url]http://social.msdn.microsoft.com/forums/en-us/netfxnetcom/thread/ce22ef1c-72ac-47da-afd7-5ec7a5ffd6bb[/url]

Member Avatar for kvprajapati
0
273
Member Avatar for Brandrune

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]

Member Avatar for kvprajapati
0
52
Member Avatar for shekar.bdn

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

Member Avatar for kvprajapati
-2
71
Member Avatar for srikanth2321

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

Member Avatar for srikanth2321
0
113
Member Avatar for purplepom
Member Avatar for kvprajapati
0
146
Member Avatar for m4memory
Member Avatar for xe_nayr

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

Member Avatar for kvprajapati
0
47
Member Avatar for aether1

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

Member Avatar for kvprajapati
0
96
Member Avatar for MattBerry

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

Member Avatar for kvprajapati
0
216
Member Avatar for nandagoban

Open crystal designer and check the name of parameter. I think it should be [B]CDate1[/B] or something else.

Member Avatar for kvprajapati
0
82
Member Avatar for complete

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

Member Avatar for kvprajapati
0
192
Member Avatar for srikar38

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

Member Avatar for kvprajapati
0
142
Member Avatar for mtusk

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

Member Avatar for kvprajapati
0
1K
Member Avatar for jafarkottayil

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.

Member Avatar for kouroshnik
0
80
Member Avatar for altrim

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]

Member Avatar for altrim
0
266
Member Avatar for ameltei

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

Member Avatar for ameltei
0
4K
Member Avatar for rajabca

[b]>The Above Code has Runtime Error. Type ' Product' is not defined. Pls help me.[/b] Please define the Type "Product".

Member Avatar for rohand
0
104
Member Avatar for rajabca

Use [b]CrystalReportSource1.ReportDocument.ExportToDisk[/b] or [B]CrystalReportSource1.ReportDocument.ExportToHttpResponse[/B] or [B]CrystalReportSource1.ReportDocument.ExportToStream[/B] method.

Member Avatar for rajabca
0
73
Member Avatar for khan17

Have you tried [url]http://htmlagilitypack.codeplex.com/[/url] ? I think this question already been asked by you. Isn't it?

Member Avatar for khan17
0
1K
Member Avatar for SebFr

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

Member Avatar for kvprajapati
0
3K
Member Avatar for wish4129

Open that file with specific encoding style. [code] rs = new System.IO.StreamReader("file", System.Text.Encoding.ASCII) [/code]

Member Avatar for biopaul
0
154
Member Avatar for tdhprestatyn
Member Avatar for eyes4u
Member Avatar for dilbertz
0
233
Member Avatar for cellus205

Use [URL="http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/a8160578-baa4-4c2b-beb6-d44cbfb7fe2d"]DataGridViewCheckBoxColumn[/URL]

Member Avatar for cellus205
0
142
Member Avatar for emaduddeen

Maybe you need to use relational operators. [code] SELECT AttendanceID, StudentID, ClassId, DateOfClass, Absent FROM Attendance WHERE DateOfClass>=#" & dteStartDate & "# AND DateOfClass<=#" & dteEndDate & "#" [/code]

Member Avatar for emaduddeen
0
373
Member Avatar for Cap'nKirk

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

Member Avatar for Cap'nKirk
1
170
Member Avatar for tanvirahmad

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

Member Avatar for kvprajapati
0
109
Member Avatar for lishannx

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

Member Avatar for lishannx
0
150
Member Avatar for David Mac
Member Avatar for David Mac
0
154
Member Avatar for speedingbullet

[b]>Putting a graphics into a variable[/b] I think you want to save the drawings. Isn't it?

Member Avatar for kvprajapati
0
108
Member Avatar for trpsjt2008

Please mark this thread as solved if you have found an answer to your question and good luck!

Member Avatar for kvprajapati
0
88
Member Avatar for CipherPol9

Have a look at this thread - [url]http://social.msdn.microsoft.com/forums/en-US/adodotnetdataproviders/thread/86a83eae-0e88-4c41-9563-5a34262abfc0[/url]

Member Avatar for kvprajapati
0
35
Member Avatar for marawangy

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.

Member Avatar for Luc001
0
171
Member Avatar for tuomari

[code] private bool DBConnection(string strUserName, string strPassword) { ...... ...... return false; } [/code]

Member Avatar for dnanetwork
0
140
Member Avatar for Sailor_Jerry
Member Avatar for Sailor_Jerry
0
179
Member Avatar for Tank50

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

Member Avatar for madison12
0
191
Member Avatar for khan17

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

Member Avatar for khan17
-1
298
Member Avatar for kseling

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]

Member Avatar for finito
0
143
Member Avatar for sathya_k_83

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.

Member Avatar for kvprajapati
0
1K
Member Avatar for hotchkissChris

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}" …

Member Avatar for hotchkissChris
0
157
Member Avatar for tashiDuks

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]

Member Avatar for kvprajapati
0
142
Member Avatar for iamchamith
Member Avatar for painejake
Member Avatar for touseef4pk

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]

Member Avatar for kvprajapati
0
92

The End.