Topics
-
- 0 replies
- 763 views
I am trying to format a social security number displayed on a Win form. The text box that holds the ssn is bound to a data set. I tried the code below in the form's OnLoad event; however, it doesn't work. Binding ssnBinding; ssnBinding = sSNTextBox.DataBindings["Text"]; ssnBinding.FormatString = "000'-'00'-'0000"; ssnBinding.FormattingEnabled = true; Any help will be greatly appreciated. Thanks.
Last reply by Weste, -
- 2 replies
- 1.5k views
Anyone out there using JCX's PHP plugin for Visual Studio? I think its amazing. :D
Last reply by tfowler, -
-
- Administrators
- 7 replies
- 1.2k views
Is there such a thing as a variable that will give you the name of the subroutine you are in? I see it's tucked in the ex object via ex.ToString and ex.StackTrace.ToString. But I don't want to mess with parsing it out because depending on the error, the location in the string changes. Also, in some cases, it'd be nice to expose the name of the subroutine without have to rely on an error occuring at all. So does .NET have a variable that contains the name of the subroutine you are in?
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.5k views
How can i access, manipulate, and create different layers in a TIFF file? For example, using 'Microsoft Office Document Imaging' (MODI) you can open an existing TIFF file, create text & notations on it, save it, then reopen and edit the text previously created, and or delete it and the other notations. I would like to be able to do the same in VB.net. In Vb.net, i have added reference to the MODI and can load and display the image, however i can't figure out how to pull out the layers. I have tried searching google & this site and can't find any help. If someone can point me in the right direction or provide code it would be greatly appreciated. …
Last reply by q1w2e3r4t7, -
How useful/practical is the ClickOnce deployment option? Considering employing it in a organisation that has 300+ employees rather than developing a web application. Mike55.
Last reply by Machaira, -
- 2 replies
- 944 views
I'd like to know when the user double-clicks on the gripper part of a toolbar. I can use the toolbar's doubleclick event but this only passes e as System.EventArgs, which doesn't contain the location where the user double-clicked. If he double-clicks on a disabled button then this event triggers as well, so the two actions seem to be indistinguishable. Any ideas how to just capture a double-click just on the gripper part of the toolbar?
Last reply by rbulph, -
-
- Leaders
- 6 replies
- 1.5k views
I cannot figure this one out: Can anyone create an example where you drag and drop a label onto a panel? Thanks.
Last reply by snarfblam, -
-
- 0 replies
- 896 views
I am getting an error when I run a SQL Services Report - the report comes up fine, but then when I export it to pdf, it occasonally (not always) comes up with this error: � Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. (rrRenderingError) Get Online Help o Exception of type Microsoft.ReportingServices.ReportRendering.ReportRenderingException was thrown. Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index It drives me crazy because it doesn't happen all the time. I have found some help on the web (most having to do with exporting to Excel, not to pd…
Last reply by lauriemc, -
-
- Administrators
- 1 reply
- 7.9k views
Hi, I want to download a string from a page in my site, so I use this and it works: NewString = WebClient.DownloadString("http://www.domain.com/setup.txt") Just 1 problem that if there is a connection timeout, my application hangs out. So should I use WebClient.DownloadStringAsync? If so how? I wrote this code but it doesn't work: Dim SiteURI As New Uri("http://www.domain.com/setup.txt") NewString = WebClient.DownloadStringAsync(SiteURI) Please help me :(
Last reply by PlausiblyDamp, -
-
- 1 reply
- 945 views
I thought this was a moderated forum. Normally an easygoing guy, spam turns me into a psycho killer. We need an easy way to blacklist users. That way, if they cannot be kept out of the forum, I will not have to look at messages that begin with For Sale... Best Regards, RappyFood
Last reply by RappyFood, -
- 0 replies
- 802 views
Hi! I'm using Visual Basic 2008 Professional Edition and I'm having a problem that i really don't know if can even be solved. I'm doing an application that sends to the command line a tracert command, and analyse the output. I'm using the following code: Public Function ProcessStartAndCaptureOutput(ByVal CmdFile As String, ByVal args As String) As String Dim p As Diagnostics.Process = New Diagnostics.Process p.StartInfo.FileName = CmdFile p.StartInfo.Arguments = args p.StartInfo.UseShellExecute = False p.StartInfo.RedirectStandardOutput = True p.StartInfo.CreateNoWindow = True p.Start() Return p.StandardOutput…
Last reply by nakib, -
- 0 replies
- 851 views
Hi all Has anyone come across any good courses in either Software Quality or IT Auditing either in Ireland, UK, or USA? Michael.
Last reply by mike55, -
-
- Administrators
- 3 replies
- 743 views
I am currently using a Hashtable to store a list of collection, its type includes string, integer, and dateTime. After researched a little bit on "Generic", I am very interested of using it. However, from what I know, in order to enforce type safety, the generic collection class has to be defined to allow only one type to be stored. That is, if I initialize a new instance of generic class to be string, I can't use it to store integer. So, in this case, is it better off to just stick with the old fashion Hashtable? Thanks! Carl
Last reply by Machaira, -
-
-
- Administrators
- 2 replies
- 2.5k views
Hi, This code was converted from VB6 to VB.NET 2005: Public Function ConvertBytesToMBString(ByVal BytesDouble As Double) As String On Error Resume Next ConvertBytesToMBString = VB6.Format(BytesDouble / 1048576, "#########0.#0 MB") End Function I don't want to use Microoft.VisualBasic.Compatibility in my application! My question is that what is 100% .NET version of this code? VB6.Format(BytesDouble / 1048576, "#########0.#0 MB") Any idea?
Last reply by techmanbd, -
-
- 1 reply
- 1k views
Problem #1. In Reports if you add a parameter and select multi-value when I run the report and Select All from the drop down list or if I select more than one value I get "incorrect syntax near ','. I haven't been able to find anything on this error. I am running Sql Server 2005 SP2. Problem #2. In Microsoft Access I can add a Combobox that will return a list of values from a table and will let me assign a sort order. When the form is loaded there is no value for combobox. The user can leave this value blank. What I like to do is write code that says if the combobox is null then select all. When I try to do this in VB.net the form loads the combobox with values …
Last reply by Machaira, -
- 1 reply
- 1k views
I have seen some software which will allow you to play a media file to the front speakers, play another media file to the back speakers, and play another file to the center speakers. In other words with one sound card you could hook up 3 different sets of speakers and play 3 different songs at the same time. Is this done using directx or something else?
Last reply by Machaira, -
- 1 reply
- 811 views
Hi, I am wondering if I can make a simple program (command line, win form, or script) to capture the time when the mouse's left button is clicked (or any special combination, like CTRL + Left Click) anywhere in the window. I might also want to extend this utility to record times in multiple clicks, and calculate the time difference between two clicks, etc. Have anyone had done something like this? Thanks for any inputs or ideas, Zhong.
Last reply by Machaira, -
- 0 replies
- 787 views
Hi, I´m trying to read a csv file. I think it is well-built and i wouldn´t like to use schema.ini to format it. I´m using the following: string connection = @"Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Path.GetDirectoryName(fileName) + ";" + "Extended Properties='text;HDR=YES;FMT=Delimited'"; // Select statement //string selectChargeback = "SELECT * FROM [" + excelSheet + "$]"; string selectChargeback = @"select * from [" + Path.GetFileName(fileName) + "]"; // Fill OleDbDataAdapter with the excel datasheet using (OleDbDataAdapter oleDbDataAdapter = new O…
Last reply by carpe2, -
- 0 replies
- 2.8k views
We have some dumb and lazy people here, so I need help. To fix the dumb part: We have placed MaskedTextBoxes on the forms so they will stop entering the information incorrectly. Now the lazy part: When our people click on a blank MaskedTextBox field, the cursor does not automatically go to the first "non-filled" mask value. For Example: Take the MaskedTextBox "___-___-___". When our people click the Text area, their cursor may stop at "___-_|_-___" (as noted by the '|' character) instead of "|__-___-___" (the start of the Text area). As another Example: Take the partially filled MaskedTextBox "123-4__-___". When our people mouse-click into the Text area, the c…
Last reply by joe_pool_is, -
- 0 replies
- 1.1k views
Please help I am making my software relating OCR can any expert tell me where to find a freeware OCR command line tool I have tried MODI tool of office but I am not able to include the necessary files in my vb.net project �..(the DLL file is itself not available in my computer) Can anyone guide what can I do�� I have been searching the net for 2 days but I am not able to find a solution��SCREEN OCR is very good but only trail is available for free. If u say to MODI dll files of office then plz tell me how to use it . Thanks in advance
Last reply by aman729,
-
Who's Online 0 Members, 0 Anonymous, 51 Guests (See full list)
- There are no registered users currently online