5,346 Posted Topics
Re: Welcome, That's not help. That would be doing your homework for you. Read the forum rules. You need to show effort, and what better way than posting the code that you have tried so far? | |
Re: Handle the [b]KeyPress[/b] event of TextBox control. [code] Private Sub TextBox1_KeyPress(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Not Char.IsDigit(e.KeyChar) Then e.Handled = True End Sub [/code] | |
Re: Take a look at [URL="http://www.vbdotnetheaven.com/UploadFile/mgold/MathEquationEditor04072005082425AM/MathEquationEditor.aspx"]Math Equation Editor[/URL]. | |
Re: Here is an excellent [URL="http://www.codeproject.com/KB/architecture/exceptionbestpractices.aspx"]codeproject[/URL] article. SUMMARY: * Check it early * Don't trust external data * The only reliable devices are: the video, the mouse and keyboard. * Writes can fail, too * Don't throw new Exception() * Don't put important exception information on the Message field * Put … | |
Re: I think you are looking for html parser - [URL="http://www.codeplex.com/htmlagilitypack"]Html Agility Pack.[/URL]. | |
Re: Two ways: [code] string markup = "<a href='a.aspx'/>"; Label1.Text = Server.HtmlEncode( markup); [/code] [code] string markup = "<a href='a.aspx'/>"; Literal1.Mode = LiteralMode.Encode; Literal1.Text = markup; [/code] | |
Re: Have you ever read [URL="http://www.javalobby.org/articles/java2exe/"]Java to EXE - Why, When, When Not and How[/URL]? - An article about Custom Java Launchers And Wrappers. | |
Re: Try to create icons with different set of sizes. Take a look at this article - [URL="http://msdn.microsoft.com/en-us/library/ms997636.aspx"]http://msdn.microsoft.com/en-us/library/ms997636.aspx[/URL] | |
Re: Welcome, Try to convert php code to jsp and if you run into problems and want to ask for help here. Please read: 1. [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL] and 2. [URL="http://www.daniweb.com/forums/announcement61-2.html"]homework[/URL] policy at daniweb. | |
Re: Take a look at this FAQ - [URL="http://forums.techarena.in/operating-systems/1130504.htm"]http://forums.techarena.in/operating-systems/1130504.htm[/URL] | |
Re: Please read this article/tutorial - [URL="http://msdn.microsoft.com/en-us/library/ms227881%28VS.80%29.aspx"]http://msdn.microsoft.com/en-us/library/ms227881%28VS.80%29.aspx[/URL] | |
Re: [b]>can we run remote programs using wmi?[/b] Yes, [URL="http://www.codeproject.com/KB/cs/Remote_Process_using_WMI_.aspx"]WMP[/URL] is an option for remotely executing process. | |
Re: >the target machine actively refused it 127.0.0.1:8000 It only happens if the server isn't [URL="http://social.msdn.microsoft.com/forums/en-US/netfxremoting/thread/065215e3-1ac9-4c7b-88b3-44835b900354"]listening[/URL] on the expected port (8000). | |
Re: >Can this be simplified further so as to make my code a lot simpler. [code] Dim txtBox() As TextBox = {TextBox1, TextBox2, TextBox3, TextBox4} For i As Integer = 0 To Name.Length - 1 txtBox(i).Text = Name(i) Next [/code] >I want to color the "CRO" part with Red. Think about … | |
Re: Use [b]System.Drawing.Color.FromName[/b] method. | |
Re: Use following methods, 1. DateTime.Now.AddDays 2. DateTime.Now.AddMonths 3. DateTime.Now.AddYears [code] Dim dt as DateTime dt=DateTime.Now.AddDays(30) [/code] | |
Re: Welcome pysdex, Showing your code might help. We only give help to those who show effort. You might want to read the [URL="http://www.daniweb.com/forums/announcement58-2.html"]homework[/URL] policy. | |
Re: Take a look at [URL="http://catb.org/~esr/faqs/smart-questions.html"]http://catb.org/~esr/faqs/smart-questions.html[/URL]. We only give help to those who show effort. You might want to read the [URL="http://www.daniweb.com/forums/announcement58-2.html"]homework[/URL] policy and [URL="http://www.daniweb.com/forums/faq.php?faq=daniweb_policies"]member rules[/URL]. | |
Re: Take a look at [URL="http://www.cs.nyu.edu/~vs667/articles/embed_executable_tutorial/"]Embed[/URL] executable. | |
Re: [URL="http://msdn.microsoft.com/en-us/library/bb351422.aspx"]Binary Constructor[/URL], [code] obj.BinaryProperty=new Binary(byte_array); [/code] | |
Re: Console-mode applications cannot display characters different from system-default OEM codepage. Although setting a [URL="http://illegalargumentexception.blogspot.com/2009/04/i18n-unicode-at-windows-command-prompt.html#charsets_unicodeconsole"]codepage[/URL] to command prompt might work. | |
Re: Memory leaks occurs when memory is allocated in a program and it is never returned to the OS, even that a program does not use the memory any longer. What scott said "Because of the garbage collection, it is not possible to have memory leak in [b]managed[/b] code." A memory … | |
Re: [b]>What do I need to Be Java Web/App Expert?[/b] Years of practice and countless mistakes. | |
Re: You're on your own for holidays, though; .NET doesn't know which dates are holidays where you live. [code] int days = 0; DateTime sdt = DateTime.Parse("2/1/2009"); DateTime edt = DateTime.Parse("2/28/2009"); int dowStart = ((int)sdt.DayOfWeek == 0 ? 7 : (int)sdt.DayOfWeek); int dowEnd = ((int)edt.DayOfWeek == 0 ? 7 : (int)edt.DayOfWeek); … | |
Re: Use [b]System.Windows.Forms.SendKeys.SendWait[/b] method, [code] Process myProcess = new Process(); myProcess.StartInfo.FileName = @"notepad.exe"; myProcess.EnableRaisingEvents = true; myProcess.Start(); myProcess.WaitForInputIdle(1000); if (myProcess.Responding) System.Windows.Forms.SendKeys.SendWait("hithere"); else myProcess.Kill(); [/code] | |
Re: Have to try to update value of selection column? [code] For i = 0 To ds.Rows.Count - 1 ds.Rows(i)("Selection")=true .. Next [/code] | |
Re: Show us your code work please. Do you have mysql connector [URL="http://www.mysql.com/products/connector/"]API?[/URL] | |
Re: Take a look at [URL="http://www.daniweb.com/forums/post596547-2.html"]http://www.daniweb.com/forums/post596547-2.html[/URL] | |
Re: Two links from social MSDN, 1. [URL="http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/87004d70-482a-4b86-ba18-371670254b6a/"]merge headers in a DataGridView[/URL] 2. [URL="http://social.msdn.microsoft.com/forums/en-US/vbinterop/thread/5b659cbd-7d29-4da4-8b38-5d427c3762e2/"]merge two Cells Of Datagridview[/URL] | |
Re: [b]>How can I determine the size of the file so that I can read all of the data bytes in the file?[/b] fs->Length property. [code] array<Byte>^ bb= gcnew array<Byte>(fs->Length); fs->Read(bb,0,bb->Length); [/code] OR [code] array<Byte>^b= System::IO::File::ReadAllBytes(file); [/code] [b]>How does one get the current file position as an integer?[/b] fs->Position property. | |
Re: Take a look at - [URL="http://www.codedigest.com/Articles/ASPNET/95_Sending_Email_using_C__and_ASPNet_20.aspx"]Sending email with HTML body[/URL]. | |
Re: Please download [URL="http://ajaxcontroltoolkit.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=33804"]AjaxControlToolkit.dll - AJAX Control Toolkit - Binary [/URL]. | |
Re: Use [URL="http://msdn.microsoft.com/en-us/library/bb525467.aspx"]Datalist[/URL] control to show multiple records per row. | |
Re: Turn off [b]AutoGenerateColumns[/b] property. Take a look, [code] ...... dataGridView1.AutoGenerateColumns = false; DataGridViewTextBoxColumn c1 = new DataGridViewTextBoxColumn(); DataGridViewTextBoxColumn c2= new DataGridViewTextBoxColumn(); c1.HeaderText = "HeaderText_for_field1"; c2.HeaderText = "HeaderText_for_field2"; c1.DataPropertyName = "field1"; c2.DataPropertyName = "field2"; dataGridView1.Columns.Add(c1); dataGridView1.Columns.Add(c2); dataGridView1.DataSource = your_data_source; ..... [/code] | |
Re: Try this, [code] Dim feedXML As XDocument = XDocument.Load("c:\Feeds.xml") Dim bubba = From Feedmain In feedXML.Descendants("Feed") _ Where (Feedmain.Attribute("status") Is Nothing) OrElse (Feedmain.Attribute("status").Value <> "disabled") _ Select New With {.Name = Feedmain.Element("Name").Value()} DataGridView1.DataSource = bubba.ToList() [/code] | |
Re: [b]>Why use abstract classes at all?[/b] Sometimes you may want to declare a class and yet not know how to define all of the methods that belong to that class. For example, you may want to declare a class called [b]Writer[/b] and include in it a member method called [b]write()[/b]. … | |
Re: The identifier of an array "color" is equivalent to the address of its first element and an array "color" can be considered [b]a constant pointer.[/b] So we cannot assign value to the constant, [code] color++; [/code] | |
Re: Take a look at this thread - [URL="http://bytes.com/topic/c-sharp/answers/268661-how-upload-file-via-c-code"]http://bytes.com/topic/c-sharp/answers/268661-how-upload-file-via-c-code[/URL] | |
Re: [URL="http://www.w3schools.com/ASPNET/aspnet_refhtmlcontrols.asp"]HTML[/URL] server controls are HTML tags understood by the server. | |
Re: [b]>i am looking for best way please lead me the best.[/b] Showing your code might help. Please read this MSDN article - [URL="http://msdn.microsoft.com/en-us/library/aa479347.aspx"]http://msdn.microsoft.com/en-us/library/aa479347.aspx[/URL] | |
Re: Try using the [URL="http://msdn.microsoft.com/en-us/library/ms229679.aspx"]Owner drawn listbox.[/URL] | |
Re: To use SAX, you must implement the interface org.xml.sax.ContentHAndler. Typically you accomplish this by exending org.xml.sax.DefaultHAndler class because it provides default implementations for all the callbacks in the SAX handler classes. Then you override the methods of the interface and specify which action will be taken as the various parts … | |
![]() | Re: Use XPath, [code] XPathDocument dc = new XPathDocument(@"file.xml"); XPathNavigator nav = dc.CreateNavigator(); XPathNodeIterator i = nav.Select("//WORKBOOK/PAGE/CHART/VIEW/LAYER/TOOLITEM[@TOOLNAME='U3RvcH==']"); while (i.MoveNext()){ string val=i.Current.GetAttribute("VALUES", ""); } [/code] ![]() |
Re: modotx, Welcome to the daniweb. Please read this sticky thread - [URL="http://www.daniweb.com/forums/announcement118-3.html"]Announcement - Please use BB Code and Inlinecode tags[/URL]. | |
Re: [b]>above fields should be directed to the company email id.[/b] Use classes of [URL="http://msdn.microsoft.com/en-us/library/system.net.mail.aspx"]System.Net.Mail[/URL] namespace. Take a look at tutorial - [URL="http://www.systemnetmail.com/"]http://www.systemnetmail.com/[/URL] | |
Re: [b]>Javascript value in vb.net code [/b] You can put on aspx page HiddenField and pass value to it , and after get it from c#/vb or use [b]Asp.net Ajax[/b] or [b]web service[/b]. | |
Re: Use this link - [URL="http://www.developerfusion.com/tools/convert/csharp-to-vb/"]http://www.developerfusion.com/tools/convert/csharp-to-vb/[/URL] [code] Dim photoStream As Stream = PhotoUpload.PostedFile.InputStream Dim photoLength As Integer = PhotoUpload.PostedFile.ContentLength Dim photoMime As String = PhotoUpload.PostedFile.ContentType Dim photoName As String = Path.GetFileName(PhotoUpload.PostedFile.FileName) Dim photoData As Byte() = New Byte(photoLength - 1) {} photoStream.Read(photoData, 0, photoLength) [/code] | |
Re: Please take a look at an article - [URL="http://www.asp.net/AJAX/Documentation/Live/Tutorials/ConsumingWebServicesWithAJAXTutorial.aspx"]Calling Web Services from Client Script in ASP.NET AJAX.[/URL] | |
Re: Please read [URL="http://www.codeproject.com/KB/user-controls/UserControlEventBubbling.aspx"]Bubble up [/URL] the event of User control. | |
Re: There are many techniques that can be utilized as a deployment strategy for your web application. Take a look at, 1. [URL="http://www.beansoftware.com/ASP.NET-Tutorials/Deploy-ASP.NET.aspx"]deploy web app[/URL] 2. Article [URL="http://msdn.microsoft.com/en-us/library/f735abw9.aspx"]http://msdn.microsoft.com/en-us/library/f735abw9.aspx[/URL] 3. [URL="http://www.asp.net/learn/videos/video-05.aspx"]video[/URL] and [URL="http://www.asp.net/(S(ywiyuluxr3qb2dfva1z5lgeg))/learn/videos/video-281.aspx"]http://www.asp.net/(S(ywiyuluxr3qb2dfva1z5lgeg))/learn/videos/video-281.aspx[/URL] |
The End.