2,245 Posted Topics

Member Avatar for Oebenezer

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 …

Member Avatar for sknake
0
83
Member Avatar for arunkumars

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 …

Member Avatar for sknake
0
113
Member Avatar for snakay

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 …

Member Avatar for snakay
0
2K
Member Avatar for k.vijayakumar

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 …

Member Avatar for ericstenson
0
113
Member Avatar for sathishmarappan

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.

Member Avatar for GeekByChoiCe
0
113
Member Avatar for cchris

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 …

Member Avatar for cchris
0
101
Member Avatar for brando|away

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

Member Avatar for sknake
0
131
Member Avatar for z_zendegi

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 …

Member Avatar for ddanbe
0
102
Member Avatar for codester

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?

Member Avatar for codester
0
201
Member Avatar for Ouais

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]

Member Avatar for Aravind.pk
0
337
Member Avatar for lorenb
Member Avatar for sknake
0
136
Member Avatar for weblover

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

Member Avatar for sknake
0
100
Member Avatar for soeppp

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 …

Member Avatar for sknake
-1
94
Member Avatar for q8_dreamy
Member Avatar for sknake

[url]http://www.daniweb.com/forums/forum150.html[/url] "This forum is not for Windows Domain Controllers. Please post in windows forums"

0
264
Member Avatar for defiant91

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]

Member Avatar for GeekByChoiCe
0
131
Member Avatar for CNIDog

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 …

Member Avatar for CNIDog
0
130
Member Avatar for ddanbe

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 …

Member Avatar for DdoubleD
1
121
Member Avatar for k.vijayakumar

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"

Member Avatar for kvprajapati
0
82
Member Avatar for brando|away

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 …

Member Avatar for kvprajapati
0
132
Member Avatar for Alexpap

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]

Member Avatar for Alexpap
0
114
Member Avatar for hery

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

Member Avatar for samir_ibrahim
0
6K
Member Avatar for hery

I think there is an option in the IDE for automatically creating forms project wide. Your friend likely has his project setup differently.

Member Avatar for GeekByChoiCe
0
460
Member Avatar for mikehane

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?

Member Avatar for sknake
0
85
Member Avatar for especta

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

Member Avatar for especta
0
3K
Member Avatar for Merovingian

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 …

Member Avatar for Merovingian
0
126
Member Avatar for Shaitan00

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 …

Member Avatar for sknake
0
387
Member Avatar for Barefootsanders

VMWare and Ubuntu. It is all a matter of preference but I love debian and ubuntu is debian based but provides more features.

Member Avatar for sknake
0
145
Member Avatar for Anpippin

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.

Member Avatar for caperjack
0
83
Member Avatar for 9820Lakeforest

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 …

Member Avatar for 9820Lakeforest
0
408
Member Avatar for 21KristianN

[code=sql] Select ( Select Sum(Costs) From Table1 ) - ( Select Sum(Profit) From Table2 ) As RetainedEarnings [/code]

Member Avatar for 21KristianN
0
133
Member Avatar for mohankumar554

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.

Member Avatar for sknake
0
80
Member Avatar for mohankumar554

That depends on how the table is structured. Do you have an auto increment identity column or a "CreateDate" column you could use?

Member Avatar for sknake
0
103
Member Avatar for DaveD3
Member Avatar for sknake
0
118
Member Avatar for Waseem Siddiqui

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 …

Member Avatar for DdoubleD
0
223
Member Avatar for t2009

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.

Member Avatar for t2009
0
102
Member Avatar for mania_comp

Something like [code=vb.net] Convert.ToDateTime(txt1.Text) < Convert.ToDateTime(txt2.Text) [/code] You can also use [icode]DateTime.TryParse()[/icode]

Member Avatar for dalbocha
0
240
Member Avatar for pace59

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]

Member Avatar for pace59
0
95
Member Avatar for Oebenezer

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 …

Member Avatar for Ramesh S
0
95
Member Avatar for chathuD

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 …

Member Avatar for sknake
0
174
Member Avatar for smuteekaanya

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?

Member Avatar for smuteekaanya
0
109
Member Avatar for mgroses

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 …

Member Avatar for sknake
0
119
Member Avatar for ashley1234

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.

Member Avatar for sknake
0
78
Member Avatar for atx
Member Avatar for jquesb

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.

Member Avatar for ithelp
0
100
Member Avatar for stoymigo

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 …

Member Avatar for stoymigo
0
303
Member Avatar for shine_jose

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 …

Member Avatar for John A
0
299
Member Avatar for dunk00

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 …

Member Avatar for DdoubleD
0
171
Member Avatar for NargalaX

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

Member Avatar for sknake
0
120
Member Avatar for NargalaX

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?

Member Avatar for sknake
0
76

The End.