Topics
-
-
- Administrators
- 1 reply
- 509 views
Hi, I wanna build 2 exe files: 1. Run.exe 2. secret.exe I want that my user runs Run.exe and then Run.exe executes the secret.exe I mean I want that if user executes the secret.exe directly, he get an error. Because these 2 files are independent, I think I have 2 put a command line switch/parameter in secret.exe and pass it via Run.exe to secret.exe. And secret.exe checks at startup to see if the correct parameter has been passed or not? My 1st question is that how can I check a switch or command line in my program? And 2nd question is that how to pass a switch to this: System.Diagnostics.Process.Start("secret.exe /myParameter") Is that correct? Thank…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 1.7k views
Hi, In vb6 I was using findwindow to see if there's a window with a specific caption. but it won't work in .net 2005? any other way? thanks Dim hhwnd As Long Dim retval As Long hhwnd = FindWindow(vbNullString, "AnotherApp") If hhwnd <> 0 Then MsgBox "Another app is running." End End If
Last reply by PlausiblyDamp, -
-
- 1 reply
- 4.2k views
Hi, in my crystal report file i insert image in details session and move it to back and move fields value to front, but in preview and print only first row is front of image and other rows are back of image and not shown! how can i fix it? i just want have background image in my report
Last reply by hamid, -
- 0 replies
- 648 views
I am using an ASP 2.0 menu. The menu looks fine in IE6. However, both Netscape and Firefox don't seem to apply the HorizontalPadding. The menu items have no spacing between them in Netscape and Firefox. My code is below. How do I get Netscape and Firefox to put space between the horizontal menu items? Thanks. <asp:Menu ID="Menu2" runat="server" DataSourceID="SiteMapDataSource1" Orientation="Horizontal" MaximumDynamicDisplayLevels="0" style="z-index: 101; left: 302px; position: absolute; top: 91px" CssClass="menu-main" StaticSelectedStyle-CssClass="StaticSelectedStyle"> <StaticMenuStyle HorizontalPadding="5px" Width="300px" /> …
Last reply by Weste, -
-
- Leaders
- 1 reply
- 725 views
Hi all, I've got a class which, when called, will search through all of the files in a string array to process them. The problem is that the method should also take a pointer to a progressBar (for obvious reasons), but the UI doesn't even see the System.Windows part - I've tried implementing a 'Imports...' statement at the top of the class, but that won't even work. Any ideas? Public Function addTexts(ByRef filePaths() As String, ByRef pcMain As System.Windows.Forms.ProgressBar) As Integer
Last reply by snarfblam, -
-
- 1 reply
- 1.3k views
I have a fileupload control on a page. I know it has a boolean property called HasFile. Ideally I need an event to fire when the HasFile property changes, is this possible? Can I wire up a manual event to watch a property and fire when it changes? Thanks
Last reply by Fork501, -
- 1 reply
- 624 views
I have a subroutine that is accessed by multiple threads. The subroutine(let's call it DisplayMessge()) invokes the GUI thread to create a form, if it's not already open. The form that is open basically just displays messages that can come from any of those threads. So, to ensure that only one form is opened, I put in an AutoResetEvent that envelopes the 'If form doesnt exist create it' part. Now, in order for other non-gui threads to create the new form, if required, they have to invoke the GUI thread. But, if the gui thread is executing code, the invoke will not execute until it's done. Well, if the GUI thread happens to use the Subroutine DisplayMessage() while anot…
Last reply by NeuralJack, -
- 3 replies
- 788 views
I'm working for a new company, the application is mostly 1.1, with ASP pages and compiled com objects. My first job is to get rid of all the ASP & COM objects by bringing them up to ASP.Net. We all want to use 2005, but we don't have the time to convert the entire application (it's pretty large with hundreds of pages). Would it be possible for me to upgrade the asp/com to 2.0 while the rest of the app is 1.1? Then convert sections, to 2.0 one at a time? I know it's possible to have them as seperate pages on the same server, but we need them to share cookies and whatnot as part of the same application login. So you might login to a 2.0 page, then navigate t…
Last reply by Denaes, -
- 1 reply
- 708 views
I want to use and include the Outlook 2007 COM Library Reference in my program. I think my program won't run on systems that haven't Outlook 2007 installed. That won't make any problems for me. 1. My question is how can I detect that Outlook 2007 is installed on a system? Somewhere in registry? 2. And also how should I show a proper error message box instead of crashing error when my form loads on a system without outlook? thanks
Last reply by Eduardo Lorenzo, -
-
- Leaders
- 2 replies
- 901 views
I'm beginning to get frustrated, since I'm working on an actually small problem a very long time. I just noticed that when I add a Listviewitem to an ArrayList a subitem is applied before the actual Listviewitem, it says something about an exception. Here is an Image which shows what i mean: http://arokh.dnsalias.org/Images/Exception.png The problem is easily reproduced with this: Dim array As New System.Collections.ArrayList Dim obj As New ListViewItem("dfh") array.Add(obj) (No error or whatsoever is thrown) Any ideas?
Last reply by Arokh, -
-
-
- Leaders
- Administrators
- *Experts*
- 5 replies
- 1.1k views
This is just a thought I had. I don't expect, or even really hope, that it should happen. Just sharing some thoughts, I suppose. A somewhat novel idea occurred to me. At runtime, the only thing that actually stops the CLR from invoking an instance method on a null reference is a runtime check for a null value. If such a check were removed, we could invoke a non-virtual instance method on a null reference, resulting in a this pointer with a null value. The natural question would be, "What person in their right mind would want to call instance methods on nothing in particular an OOP language?" There are times, however, when this could be handy. Consider a common probl…
Last reply by snarfblam, -
-
-
- Leaders
- 2 replies
- 875 views
You know the way when you open an explorer window in windows, and you can sort by basically any attributes the files you are viewing have, well, are all those attributes programmed into windows, or does it just look at the files and know what attributes it can display? On the attributes themselves, is there a standard way that attributes are stored in a file? i know they are at the end, but are there a set of charachters that denotes the start of the attributes section of the file?
Last reply by snarfblam, -
-
-
- Administrators
- Leaders
- 4 replies
- 1.2k views
Private Sub SendButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SendButton.Click 'Thread Dim Threads As New Thread(New ParameterizedThreadStart(AddressOf myThread)) Threads.Start() End Sub Private Sub myThread(ByVal o As Object) Dim F As New Form1 F.ShowDialog() End Sub Hi, In my code, when I try to show a form in a safe thread as modal, I cannot, the form won't be modal, what can I do? I need your help. Thank you:)
Last reply by OMID SOFT, -
-
- 0 replies
- 681 views
This garbage is giving me a headache I've put off messing with Icons/Images much because in the past anytime i've deleted things using the resource editor major application errors happen. I am currently use the resource editor under Project- Resource Tab to both add and delete images. After deleting images I dont want anymore, I am/was deleting the files that are left over in the \resources directory in the Project directory of the program. Why wouldnt I? The program doesnt get rid of them itself when you Delete them with the Resource editor! I want stuff to be clean! I am primarily using these images as toolbar button images. Well, seems that when there is a …
Last reply by NeuralJack, -
- 1 reply
- 1.5k views
Hello! What is the greatest website you have ever seen, which shows using of Web 2.0 features? Can you give me your tips? Thanks! Wojtek
Last reply by mskeel, -
- 4 replies
- 611 views
I am writing a class and has one variable(X) that will use anywhere in this class (Class A). So I declare X in Module and initialize X at New subrouting but I read in MSDN that declaring variable in Module variable will be implicitly Shared. What I want is to declare X in Class A that X can be use anywhere in Class A but has its own value in each instance of Class A. I also use Friend key word but it not working when I have more than one instance.
Last reply by MrPaul, -
-
- *Experts*
- 3 replies
- 1.9k views
I am working on a windows form with a sql database that has several fields that have spaces in their names (NOT my idea or design but there it is). When the form loads, I want to bind the fields from the datarow to the controls on the form. I am running into problems because of the spaces. Here is my code: guestDataRow = aGuestsDataSet.Guests.FindByPhone(phoneString) With Me .firstNameTextBox.Text = guestdatarow!['first name'].tostring .streetTextBox.Text = guestDataRow!street.ToString .cityTextBox.Text = guestDataRow!city.ToString '.lastVisitTextBox.Text = guestDataRow!["last visit date"].ToString End With None of the things I have tried w…
Last reply by lorena, -
-
- 2 replies
- 18.9k views
Is there a way to remove a column from a DataGridView. I fill the datagridview from a dataset. The dataset has a column of data that I no longer require. I've tried getting rid of the column in the dataset without success. ds.Tables("Asset").Columns(6).Dispose() doesn't appear to do anything. So I then tried to remove the column from the datagridview. I've tried: dgPrio.Columns.Remove("CLASS") dgPrio.Columns.RemoveAt("CLASS") and various other combinations. All that happens is the column I wish to remove moves to the end. Appreciate any help. Thanks, Ted
Last reply by amir100, -
-
- Leaders
- 20 replies
- 2.9k views
Do you program as a hobby? For work? Or both? I'm a hobbyist programmer. The only time I've ever even worked with another person programming was in a VB class in high school, which turned out to be a joke of a class. I have considered involving other people in the larger programming projects I've started (sometimes I dive into things that really shouldn't be a one-person-job), but I really don't know many programmers who I could ask. I've considered posting a recommendation in Suggestions, Bugs, and Comments for a forum for finding people to help with small/medium scale non-profit programming projects , but it occured to me that a good deal of programmers on these foru…
Last reply by amir100, -
-
- 0 replies
- 772 views
Hello! I would like to ask you, what is the best price compare website you have ever seen? What website has best features to compare prices? Thanks! Wojtek
Last reply by woojtii,
-
Who's Online 0 Members, 0 Anonymous, 57 Guests (See full list)
- There are no registered users currently online