Worked. Thanks. Too easy! Stephen
StephenMcAllister
Posts
-
Control Array -
Control ArrayHi, I have a control array and have tested the control type to find a listview. I want to assign the control to a listview with something like below. System.Windows.Forms.ListView olistview = new ListView(); olistview = g_control_array[i]; C# does not like this and i get a cannot convert control to listview. Is there a way to achieve this as I can't find anything to help do this. The only othe way I can think of is to establish an array of listviews as well but i would prefer not to do this unless I have to. Thanks for any help. Stephen
-
Web UpdateHi, I would like to have a Web Update feature to enable a desktop app to update over the web. Does anyone have any ideas/samples on how to do this? I would like to check and download only the files that have changed. Thanks in advance Stephen McAllister
-
Help with checking of version of fileHi, I want allow a user to click on a web update option and the program download itself into its update directory. The thing I want to achieve is to check the file version to see wether I need to download it or not. Can anyone help here? thanks. Stephen
-
loading a Form from a ...Hi, What I would like to do is have an MDI form 'look' to see what components are available and set-up a menu accordingly. I guess I would like it to be like a framework so I can use it for anything and just make available the components I want the users to use. How can I do this? I am not sure how to load the component and then show it in the MDI? Any links to articles that cover this or any help would be appreciated. Thanks
-
StreamReaderI am reading in a stream from a file and the text being read in is like this. "\"ABBE0001\",\"ABBEY\",\"CHRISTOPHER\",\"\",\"\",\"MR\",\"\",\"453 772 576\",\"\",\"\",\"M\",\"24/11/1960\"" I want to remove all backslashes and quotes but when I use the replace it does not work. How can I remove the backslashes and quotes. Thanks. Stephen
-
Database LocksHi, The queries are all SELECT, INSERT, DELETE and UPDATE queries. Thanks Stephen
-
Database LocksHi, I am writing an SQL Server database application and I have noticed that under Management there are some database locks from my application. I don't think this is a good thing and want to make sure I am releasing the connection properly. How can I do this? At the moment I am doing this. connection.Close(); connection.Dispose(); connection = null; Is this enough? Thanks Stephen
-
Client/Server application questionHi, I wrote an application that has a server application running on a machine as a console application. The problem with this is that the machine must be logged in for the program to work. The client does not want this. The console application monitors port 8080 and process's and returns data from an SQL server database. What can I convert the server application to that would allow it to run without the computer being logged in? Thanks. Stephen
-
Treeview ThreadHi, I am wanting to create a Treeview Thread for loading the tree. I tried just calling the procedure that loads it and I got a control invoke issue. I have never created a thread before so I am looking for a sample if possible. Thanks Stephen
-
ErrorMDAC installed fine when I installed the framework for .NET.
-
ErrorHi, I get the following error in an application. System.Runtime.InteropServices.COMException (0x80040154): ? I have set up a test machine where I can reproduce the error and it seems to be at a point where I am using SQLDMO to connect to a database. The wierd thing is that it works fine on my machine but not on a workstation. the only difference between the machines as far as database is that I have SQL Server 7.0 on my machine and the test machine does not. How can I find out what is needed to resolve this issue as far as files etc? Thanks
-
DateTimePickerI would like to change the backcolour of the display text but there does not seem to be a property to do this. Is there a way to change the backcolour at runtime ? Thanks Stephen
-
Rich text boxThanks Ali. I have set that property to true and it is still the same.
-
Rich text boxWhen typing text into arich text box and I hit enter no new line is created. Is there a property to change to allow the user to create as many new lines as they would like? thanks
-
TreeviewWith the standard treeview when a user right clicks a node to show a context menu the selected item does not change. I want to force this change. Is it possible and if so how? Thanks for any help.
-
DecompileIs it possible to stop people from being able to decompile a C# program or to 'rip' the code out of a compiled application? Thanks. Stephen
-
Sharing a winformOK. Sounds good but I have not done this before and i am new at C#. Have you a link to a sample or something? Thanks.
-
Sharing a winformI have several projects that make up part of a solution. What I would like to do is share two froms across two seperate projects. Is this possible and how? Thanks in advance. Stephen
-
Printing data from a gridHi, I have a DataGrid full of data which I would like to print. The columns and data are different depending on what query is run by the user. What way can be used to get this data into a printpreview screen to print or just print it straight to the printer? Thanks for any help. regards, Stephen McAllister