Topics
-
-
- Leaders
- 4 replies
- 3.4k views
Hi everybody, Here's a few lines of code for a task that nearly drove me insane: convert, validate and compare dates from two different unbound MaskedTextBoxes. I hope it helps you guys out there... Special thanks to Cags and Marble Eater! By for now, JC :) //------------------------------------------------------------------------------------------------------------------ class DateTimeUtils { public static bool IsDate(string strDate) { DateTime dtDate; bool bValid = true; try { dtDate = DateTime.Parse(strDate);…
Last reply by snarfblam, -
-
- 0 replies
- 1.7k views
I want to access the name of a javascript within that function function myFunction() { return this.name; } myFunction should return myFunction...obviously this.name doesn't work...anyone know...
Last reply by Diesel, -
- 4 replies
- 5k views
hi, i have a 10 digit random number generated i want to check that there are the same digit is not in the number 3 times in a row e.g. 1224526890 is ok, but 1222426890 is not ok because 2 is there 3 times in a row i guess some type of regular expression can do this, but i dont know how to use these or which one to use thanks for your help
Last reply by HJB417, -
Parameters
by rbulph-
- Leaders
- 2 replies
- 687 views
How can I pass: a) the AddressOf a procedure so as to use it with AddHandler; and b) a Type so as to use it with TypeOf; as parameters to a procedure?
Last reply by rbulph, -
-
- 0 replies
- 834 views
Hi all, I'm working on an XML reader program for our support team to make a "human readable" form of an XML file. I have the XML file that is generated from a program whenever a support request is sent. The XML file has a breakdown of the registry keys on the user's computer that are specific to the program. The file is structured as follows: - <Registry> - <RegistryKey> <Name xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">HKEY_LOCAL_MACHINE\Software\Company Name</Name> </RegistryKey> - <RegistryKey> <Name xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="string">HKEY_LOCAL_MACHINE\Software\Compa…
Last reply by dakota97, -
- 1 reply
- 516 views
I was wondering if I could use Microsoft Active Accessibility to get the current url from an active web browser window. I don't know anything about this or how to use it but would appreciate it if you could help me with this. Thank you for any help.
Last reply by HJB417, -
-
- Leaders
- 3 replies
- 1.9k views
I need to calling a function. If the funtion takes more time to execute then I need to come out of the function. Is there a way. currently my application works as it should, but when bad network, the same function takes time to return, so, the app should try for 30 secionds, if time taken to execute is more than 30 seconds then move forward with next step. please help
Last reply by HJB417, -
-
-
- Administrators
- 9 replies
- 1.3k views
I have the below codes: Dim pass As String = TextBox2.Text 'returndata is already a string If trim(returndata) = "" Then MsgBox("Wrong ID") Else MsgBox("Correct ID") End If But the messagebox always comes out with "Correct ID", even when the if statement is true. Anyone here can help?
Last reply by hddmatrix, -
-
-
- Leaders
- 5 replies
- 2.7k views
Hi folks, I'm having trouble converting text to date and comparing them. Is there a similar to VB.Net's IsDate in C# 2005? Please check out the code below and see if you can find what's wrong. Yeah, I know, I'm a newbie... :) The code in red is where I'm getting the error messages: -------------------------------------------------------------------------- 1) Checking if the text of a TextBox is date: if IsDate(this.Date1TextBox.Text) { } -------------------------------------------------------------------------- 2) Converting and comparing the dates of two TextBoxes: if (Convert.Cha…
Last reply by Cags, -
-
- 3 replies
- 749 views
Hey all, I'm trying to save a file uploaded by a user, but I keep getting the exception: Do I need to change something in IIS to allow my program access to this folder?
Last reply by bri189a, -
Does anyone have a suggestion(s) for a UML Tool. It doesn't need to be "industrial strength" just something I can learn with. I'm half way through a book on design patterns ("design patterns explained") and want something i can run previous projects through to see what it looks like.
Last reply by bri189a, -
- 1 reply
- 750 views
NEED: .NET multi-table master-detail type customizable forms and datagrid generator or at least easy-to-follow idiot-proof instruction. ASPMaker.net ain't got it. ASPRunner.net ain't got it. Those tools are great for quick easy creation of add, display, edit, copy, delete, search database connectivity and functionality but for only one table!! I need to do all these quickly using data from three Oracle database tables (will also need to consider furture use for MS Access tables). Any intelligent leads appreciated. My database is small with only about two dozen total fields and only two master-detail relationships - not that big of a deal, it would seem. But my search has …
Last reply by bri189a, -
- 1 reply
- 867 views
Hello, I am relevantly new to asp.net by 5 - 6 months. I have successfully created an intranet program and now am looking to add security to it. Down to the question; is it possibly that anyone could give me a clear definition or example on how to use the active directory on a server to validate inputted username and password. I have looked over the asp forum and more and can�t seem to grasp it, maybe due to too much stress! lol! Any help would be gratefully appreciated. Thanks
Last reply by bri189a, -
- 0 replies
- 1.3k views
Hi guys... I'm working with VS 2005 and Visual SourceSafe 2005... I have a lot of errors specially when trying to see forms at design-time (some internal references errors, displaying an error message instead of the form, but the project compiles and runs perfectly). This can be fixed restarting Visual Studio... :( Some VSS plug-in errors also appear... Have you experienced these errors?? Fixes?? Alex :p
Last reply by AlexCode, -
-
- Leaders
- 3 replies
- 2k views
The following is for a windows application. If I was to cause a button click to throw an exception i.e. private void button6_Click(object sender, System.EventArgs e) { //simulate a crash by throwing an exception throw new Exception ("Simulated Crash"); } where would I catch this other than in this function? I tried catching it in the Form's main fuction : static void Main() { try { Application.Run(new Form1()); } catch (Exception ex) { Console.WriteLine (ex.ToString()); } } but it seems like I can't catch it there.
Last reply by snarfblam, -
-
-
- Leaders
- 5 replies
- 1.6k views
I am currently writing a program in VB .NET that requires a file type - .fol - to be associated with it so that people can simply double click on the .fol file to get my program. My problem is that i want a seperate icon for the .fol file other than the one my assembly has. What i want is to be able to somehow put more than one icon into the assembly - other than the assembies icon - and link the default icon for the .fol file type with the second or third icon in my assembly, so that i don't have to include a seperate icon file with the assembly. Like the way Dreamweaver has it's icons all its main assembly: http://www.talbotech.com/drmIcons.jpg I have tried many …
Last reply by Wraith, -
-
- 2 replies
- 2.2k views
Hi folks, I was wondering what the code to do the following is: MDIParent form needs to load the text of a MS Word Document into a richTextBox located in MDIChild form. How do I accomplish that?? Thanks in advance, JC :)
Last reply by jcrcarmo, -
-
- Leaders
- 4 replies
- 793 views
This probably has to be one of the most annoying yet simple problems I have ever ran across. How do I remove parenthesis from a string in code such as str1 = str2.Text.Replace(" '"' ", ""); That does not work because the parenthesis is a keychar. Thanks In Advance. -=Simcoder=-
Last reply by snarfblam, -
-
-
- Leaders
- 5 replies
- 1.7k views
I Customer Object with three properties Name Terms Region Now the users are in two groups Users RealGoodUsers Now i want RealGoodUsers to be able to edit but not the Users. Does anyone have any suggestions other than an if=="RealGoodUsers" in the set of the properties? Nothing wrong with the if but what if i add another group...
Last reply by barski, -
-
-
- Administrators
- 4 replies
- 1.1k views
I am really baffled because the last few weeks I have been unable to send emails to a family members email address. The emails bounce back to me with the message "Your server IP address is in the SORBS DNSBL database, bye". I am using the same email account as always, one of my domain name email accounts. I have gone to the SORBS site and verified that my domain name is not listed in the database but the emails still will not go through. I have gone so far as to create an account on the SORBS site and login, hoping to find some sort of way to get a support ticket to them but after searching all over I can find no way to contact them. There is some wording which …
Last reply by irasmith, -
-
Who's Online 0 Members, 0 Anonymous, 46 Guests (See full list)
- There are no registered users currently online