Ben Fidge's Q&A profile
Visual Basic StreamReader
Hello, I’m trying to create a program will supply information for variables from a text file, so that as the possibilities change, a simple text file will need to be amended, rather than rewriting the original code. I am reading about FileStream and StreamReader, which seem like just the ticket. For instance, if I wanted to populate a TextBox with items I wrote in a text file, such as: Tom Mike Jim Jean I threw together a sub like this: ------------------------------ Private Sub Button6_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click Dim objF ...Show All
Windows Forms toolStripStatusLabel.Text doesn't update?
I am able to set the toolStripStatusLabel.Text before showing the Form, but after the Form is shown then changing the status is not possible. I do have tried Application.DoEvents() but didn't help. Am using .Net/VS2005/C#. This works: Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); gui = new GUIForm (); gui.StatusLabel = "Ready" ; Application .Run(gui); This doesn't works: Application .EnableVisualStyles(); Application .SetCompatibleTextRenderingDefault( false ); gui = new GUIForm (); Application .Run(gui); gui.StatusLabel = "Ready" ; Application .DoEven ...Show All
Software Development for Windows Vista Workflow Serialization Problem
Hi to all, I have been using beta 2 bits for a couple of days and trying to upgrade my project with the new stuff. I've change a lot of things ( as you guys did in beta 2 :), but one problem still cannot be solved. I'm using the workflow designer control to change workflow definition. I have also a state machine workflow. If I load the workflow from file (xoml) no problem. But if I want to get a workflow definition from running workflow the serialize it and pass it to the workflow designer control I cannot edit the workflow. After debugging it seems that serializing state machine workflow it only serialize the root activity. Stefan, ...Show All
Windows Forms Problem launching a WinForms from an MFC7 client
Hello, I am trying to launch a Windows Forms from an MFC 7; it crash on the SECOND time it is launched. Here are the details: For the MFC host: 1) Create and MFC 7 App and enabled managed extension 2) Create a ref to to the managed ClassLib via gcroot<> gcroot<WrapperForm*>myForm; 3) Create an instance of the ClassLib and call ...Show All
Visual FoxPro [noob questions] Arrays..
Aaaaaaaaaaaaaaaarrrrgggghhhhhgadsfhasdjhf 1. Is foxpro incapable of returning an array from a function by using the return statement 2. Does foxpro have a function that merges 2 arrays 3. How do you pass an array as an argument to a function in a class when the array is a class variable For example: define class test as Custom dimension Arr(1) procedure asdf(tmpArray, tmpString) * do stuff endproc .. etc etc How do I call the procedure asdf (from some other procedure in this class) using Arr as a ...Show All
Software Development for Windows Vista ParameterBinding loses Value in EventSinkActivity-derived classes.
I have a workflow with one activity. The activity class is derived from EventSinkActivity. If I pass a value via ParameterBinding to this activity, I can get the ParameterBinding object by the string indexer in the Invoked event handler, but the Value property of the object is null. If I use EventSinkActivity -- instead of the class derived from EventSinkActivity -- it works fine. Is there anything I need to do in the EventSinkActivity-derived class so I do not the lose the ParameterBinding value Alek, Have you tried using the wca.exe tool, included in the SDK Given a DataExchangeService interfac ...Show All
SQL Server cannot open a jscript file
SQL Server CTP Sept 2005. In Microsoft Visual Studio 8 after starting an Integration Services Project I tried to create a jscript file. A file was created but the browser was completely messed up. First I was never able to open it (right after it was created but not yet saved). The file name "jscript1.js" would appear as a separate tab on top of the window next to the "start page" but when you click on it the the file does not appear in the editor window as I assume it should. Instead the same object browset or start page would stay under the tab name "jscript.js file." Sometimes strange vertical stipes appear next to the tool box or instea ...Show All
Visual C# C# Exception
when i open a sqlconnection i enconter with this exception: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. Doesn't leave much to go on... Are you trying to access a remote SQL Server instance Can you connect with the designer and/or the server explorer ...Show All
Windows Forms merging column headers of 2 columns to be one header can i do this
i want to make one header for two datagridview columns and each column of them has its own header also can i do this thanks in advance. ...Show All
Windows Forms Automating Office from a Webserver
I'm using ASP.NET Webforms to create an application that processes user supplied Excel spreadsheets against a mainframe database. My current application allows users to upload an excel spreadsheet, specify some lookup options, and then process a routine against the spread sheet. The application creates an instance of Excel on the webserver to do its work. The problem I&n ...Show All
Visual Basic How to store Data ?
Hi everybody, I'd like to ask you because I just can't decide with technology to use. I have a small application without a DBMS. But I need to store and provide some Data (Text). And of course I need to add, delete and edit all the Text. A Database would be great but I need something else. What else could I use XML Problem is I don't know much about the .Net XML Classes. And I also don't have much time to learn. TXT or CSV Is there still something else or what would you do it sounds like your best bet is to use a database...basically your other options are to use a flat file as you mentioned (xml,txt ...Show All
Visual Studio Express Editions Data Source window disabled
Hi guys, All of a sudden I got this problem about the Data Source window of VB Express 2005 IDE. Whenever I open up a VB form, the data source window doesn't show the corresponding dataset/tables anymore, but when I switch to the form's code the dataset/tables show up. It used to show up whether I'm working on the form or writing codes. I can't figure out why. The problem now is that I can't drag/drop the tables on the form because the data source window is empty. It doesn't affect the program and the other forms that I was able to drag/drop tables i.e. as Details or DataGridView before. Again ...Show All
.NET Development WSE 3 and x509 certs
I am not sure if this has been addressed some where already... I want to secure web service calls used by about 40 pc's the pc's are locked down to have limited user functions. is there a way I can update my smart client app and have the clients use my secured web service -- where I see a possible problem is that I can't allow the clients to open web browsers and accept the x509 cert. we will use a private cert server so that the only authorized pc's can call the web services. I am thinking of using the "UsernameForCertificateAssertion" policy so the client just needs to have the servers public ke ...Show All
SQL Server Not able to view the Drill down section in the Report Manager
I have the properties for the details section as follwows: Visibity : Hidden Toggle Item: a textbox name. When i preview the report and click on the particular textbox (Toggle item) i am able to see the details section. But when I view the same report in Report Manager, and I click on the "+" icon, I see the same page again with no details information. Please let me know if someone had the same problem. Please help! ...Show All
Windows Forms Invoke or BeginInvoke cannot be called on a control until the window handle has been created.
This is throwing me for a loop. I have a modeless form open with a richtextobx. I am using FileSystemWatch to monitor changes on a text log file. When changes are found I check to see how much the file has grown, and then read and append the new portion to the RTB. The log watcher form comes up, does its initial paint (which is NOT driven by FSW) all is OK. Some moments later when the log file first changes, and FSW gives the event, I marshal it back to the GUI thread for updating the RTB, but get this odd error. I have done this pretty much already in previous VS.NET without a hitch. As far as I know my window handle has been created at the ...Show All
