2,245 Posted Topics
Re: No .. disabling a parent container will disable its child controls as well. Are you trying to stop a user from changing tabs but let them be able to work with the current tab? If so you can do this: [code=vb.net] Public Class frmTab Private _locked As Boolean = False … | |
Re: You can do a 'decent' conversion of any managed code. How you go about is this is by compiling the managed code in to an assembly (your .exe or .dll) and then decompile it in the language you're wanting to convert to. Get the .NET reflector at: [url]http://www.red-gate.com/products/reflector/[/url] This will … | |
Re: Try this: [code=csharp] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace daniweb { public partial class frmGridView4 : Form { private DataTable dt; public frmGridView4() { InitializeComponent(); } private void frmGridView4_Load(object sender, EventArgs e) { dt = new DataTable(); //The string … | |
Re: Be ready for hours of getting irritated too! Adatapost gave you a good start in the right direction but let me caution you -- use the projects and source code as a "non-runnable code sample." Do not waste your time trying to compile their project or using their libraries. I … | |
Re: Navigate to "My Project -- Application.myapp" in your solution explorer and double click the .myapp file. You will see an element [icode]<MainForm>frmRegex</MainForm>[/icode]. Change that to the form name you want to open when the project starts. | |
Re: Ignore the Data adapter. The connection open a connection to the database and the command handles your "Select" or "Insert" queries. The IDE generated typed DataSets use the DataAdapters but if you try to use them manually you're just creating a lot more work for yourself. Here is an example … | |
Re: [code=csharp] using System.Collections.Generic; using System.IO; using System.Xml.Serialization; namespace daniweb { public class Categories { private List<string> _category1; private List<string> _category2; public List<string> Category1 { get { return _category1; } set { if (value == null) return; _category1 = value; } } public List<string> Category2 { get { return _category2; } … | |
Re: You may have a measurement in pixels but the physical size depends on the resolution of the monitoring rendering the image, or the display settings of the image when printing. Here is an example of getting the measurements in inches which can be easily converted to CM: [code=csharp] private void … | |
Re: If you're using cygwin then you're not doing a windows batch script, you're more than likely using bash, sh, tcsh, zsh, etc. What shell are you running in cygwin? | |
Re: groups.google.com does not appear to use URL rewriting. Daniweb uses URL rewriting. It should look like: [url]www.daniweb.com/viewThread.php?id=12345[/url] but for SEO purposes Dani has it set to rewrite it to: [url]www.daniweb.com/forums/thread12345.html[/url] | |
Re: You are likely comparing two different encodings. Are you sure it uses UTF32? | |
Re: [code=csharp] using System; using System.Data; using System.Data.SqlClient; using System.Windows.Forms; namespace daniweb { public partial class frmUniqueId : Form { public frmUniqueId() { InitializeComponent(); } public static string BuildSqlNativeConnStr(string server, string database) { return string.Format("Data Source={0};Initial Catalog={1};Integrated Security=True;", server, database); } private void button1_Click(object sender, EventArgs e) { string connStr = … | |
Re: You basically said "Here is what I need to do. Someone do it for me." You will find the help more responsive on Daniweb if you ask specific questions and provide the code you have and point out where your problems are. >>1. I create a form..use web browser dan … | |
[url]http://www.daniweb.com/forums/forum150.html[/url] "This forum is not for Windows Domain Controllers. Please post in windows forums" | |
Re: If you have control of the executing assemblies then just wrap your Console.Write() methods so you know what data is being displayed. If you don't then you will need to redirect stdout and stderr which can be done with the Process. [code=vb.net] System.Diagnostics.Process.GetCurrentProcess().StandardOutput System.Diagnostics.Process.GetCurrentProcess().StandardError [/code] | |
Re: Please post the table(s) and their structures that you are dealing with. I don't really follow you on how the values are paired. Do you have a single table with Col1/Col2 that are integers and you want to see how many times a number pair appears in that table regardless … | |
Re: I think microsoft started doing that to make life easier. I have noticed this behavior in a number of their products: [code=sql] IF OBJECT_ID('#Temp', 'U') IS NOT NULL DROP TABLE #Temp Create Table #Temp ( Col1 varchar(30), Col2 varchar(30), Col3 varchar(30), ) [/code] In SQL2000 the SQL server would throw … | |
Re: You don't. Use a textbox, hide the borders, and use the grey background so it appears as a label but is really a textbox. I suppose you could set the textbox readonly or swap it out with a label if you have an "Edit Mode" versus "Normal Mode" | |
Re: His question is really a C# question. You would need to use a WebClient or WebBrowser control to upload the images. You need to login (authenticate) and navigate to the upload URL and submit the image. Unfortunately this is a rather difficult task so i'm not sure. Make sure you … | |
Re: You can't create forms in SQL. You need to post this question in the relevant language you are trying to use. I have an example of a login screen for C#.NET and MSSQL2005/2008 online at: [url]http://www.daniweb.com/code/snippet1244.html[/url] | |
Re: I would use the format string "N2" as well but that will display 10,000.00 or 10.000,00 depending on your locale settings. I think you will have to follow adatapost's suggestion in order to display data in that format regardless of locale settings on the machine | |
Re: I think there is an option in the IDE for automatically creating forms project wide. Your friend likely has his project setup differently. | |
Re: This belongs in one of the Windows forums. This is for internet domain names and DNS, not domain controllers. What version of windows is the server? | |
Re: Please use code tags when posting on daniweb: [noparse] [code=delphi] ...code here... [/code] [/noparse] Next I ran your code and it seems to work OK for giving you the line count. What problem are you experiencing? Are you reading in a file with unix style line breaks instead of windows? … | |
Re: Here is an example of how you can use regex to extract the "name" component of the text. You can expand on the regex to get addition fields. [code=vb.net] Imports System.Text.RegularExpressions Imports System.IO Public Class frmRegex Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim expr2 … | |
Re: Yes, use IPC with named pipes! I do exactly the same thing. I took this code and modified it to suit my needs: [url]http://www.codeproject.com/KB/threads/dotnetnamedpipespart1.aspx[/url] Basically it sends commands with data that can talk to the service. You can send PING/PONG responses, tell it to set values, or query the status … | |
Re: VMWare and Ubuntu. It is all a matter of preference but I love debian and ubuntu is debian based but provides more features. | |
Re: You can run [icode]fdisk /mbr[/icode] from the XP installation CD and remove the partitions and master boot record as Asafe was mentioning. There is no need to pull your hard drive unless you want to. | |
Re: Welcome to daniweb! Please direct windows form application and service application questions to the C# forum. The ASP.NET forum is reserved for web application related questions. What is your definition of a server being "UP"? A ping response, a successful test to a website, a connection to some service hosted … | |
Re: [code=sql] Select ( Select Sum(Costs) From Table1 ) - ( Select Sum(Profit) From Table2 ) As RetainedEarnings [/code] | |
Re: I don't understand what data you're looking for. You can use a combination of a [icode]for[/icode] or [icode]while[/icode] loop to generate the data. You can also use [icode]DatePart[/icode] and[icode]DateName[/icode] to get specific information about dates and times. Please elaborate on your desired cursor and we'll go from there. | |
Re: That depends on how the table is structured. Do you have an auto increment identity column or a "CreateDate" column you could use? | |
Re: Take a look at [icode]dataGridView1.FirstDisplayedScrollingRowIndex[/icode] | |
Re: Can you also post the exception information that was provided and the connection string you are using to connect to the database? A quick google shows error 25 as an invalid connection string. I have also posted a snippet of a login screen at [url]http://www.daniweb.com/code/snippet1244.html[/url]. It may be a nice … | |
Re: Post your code and explain what you mean. By child do you mean it descends from, or it contains another user control plus more controls? Either way the user control is a strongly typed class so just add public methods. | |
Re: Something like [code=vb.net] Convert.ToDateTime(txt1.Text) < Convert.ToDateTime(txt2.Text) [/code] You can also use [icode]DateTime.TryParse()[/icode] | |
Re: Check the locale settings on your computer (the timezone and daylight savings time settings). You should be able to get at these settings from double clicking on your system clock. See this article from Microsoft as well: [b]How Outlook handles time zones for meeting requests[/b] [url]http://support.microsoft.com/kb/195900[/url] | |
Re: This will keep moving through the tabs in order: [code=vb.net] Public Class frmTab Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim idx As Integer = TabControl1.SelectedIndex + 1 If (idx >= TabControl1.TabCount) Then idx = 0 End If TabControl1.SelectedIndex = idx End Sub End Class … | |
Re: Here is an example of inserting an image from the hard drive. Obviously you want to change the input from a file to the controls you have on a page: [code=csharp] private static string BuildSqlNativeConnStr(string server, string database) { return string.Format("Data Source={0};Initial Catalog={1};Integrated Security=True;", server, database); } protected void Button1_Click(object … | |
Re: Welcome to daniweb! Please use code tags when posting code on daniweb. [noparse] [code] ...code here... [/code] [/noparse] For your question -- that depends on what your inputs are. What is the principal, interest, years? | |
Re: Welcome to Daniweb mgroses! Please use code tags when sharing code on the site: [noparse] [code=csharp] ...code here.... [/code] [/noparse] The reason your changes are lost is because when you paint a form it retains the settings until an area of the form or control is invalidated which causes the … | |
Re: Also search this forum for SMS projects. This is like the 10th time someone has inquired about SMS over Serial in the last few months. | |
Re: Purchase a similar software suite, hire a consultant, ask a specific question, or post your code so we can review it. You're not asking a specific question so it is hard to give advise as we would be speculating at best. | |
Re: Can you post the entire method where you are calling [icode]File.Copy()[/icode]? If it were a permission error you would typically see an exception thrown. The only reason that it would hang (that I know of) is because the operation is working but it is going very slowly, ie if you … | |
Re: I don't understand what you're asking. Is this an ASP.NET web application where you're trying to navigate back one page, or do you have mshtml embedded in a desktop application and you're automating the navigation? Please take the time to post exactly what you are trying to do and not … | |
Re: It can be. I have service applications that use SQL connectors and as we all well know you cannot debug services. So for debugging I run my service application as a console application and when its ready to ship I just install it as a service. You can run any … | |
Re: More than likely if your local ip is not your public IP then you are behind a router and special considerations such as port forwarding/NAT will have to be taken in to account/implemented. In order to get your public IP there is no "100% correct" way to go about this. … | |
Re: You have a scheduler priority with a process regarding the CPU, or are you saying you want windows to warn the user it is a critical process and they should not end task it? |
The End.