Cathie's Q&A profile
Windows Forms How to cancel form load, if error is detected during constructor execution or load event
I am looking for a way to stop the form from loading if problem occured during load (constructor/Load event). If I use this.CLose I get an error message stating you cannot close an object that has not been created. Any suggestions would be appreciated. Thanks. Two thoughts: 1.) If this is the only form in your app, or if it's the  ...Show All
Visual Studio Express Editions Object Reference Problem, Why doesn't this work?
Hello All, I am really stuck here and I could use some help in figuring out why this code does not work in .Net. I am converting/rewriting a VB6 app. The VB6 code does what it is supposed to do. The .Net code is syntatically correct as far as I can see but does not function as expected. What is supposed to be happening is that clsApp.Mainform is supposed to be getting set to frmMain which is the central form of the application, thus allowing me to manipulate frmMain from within my application by accessing clsApp.Mainform. What happens instead is that clsApp.Mainform is set to a generic form object and does not have any reference to frmMai ...Show All
SQL Server EDB record limits and EDB vs RAPI
Two simple questions: 1. Im insterting records in a recently created EDB databse for WM 5.0, but only 16 records can be witten, does any body knows where is the property to accept more than only 16 records 2. is there ann RAPI for manage EDB. because my aplication use a lot the RAPI that comes for CEDB, but what about EDB does it exist The answer to the second part of the question is that RAPI support for EDB is not yet there. For the first question, I would like to see the code that you are using to write the records. Thanks. ...Show All
Visual C# window service unable to launch process
dear all i need your help, i did a project setup for a window service in which i want to launch a batch file ... but the process isnt working ... anyone please help out.. here is my code System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents=false; proc.StartInfo.FileName= ConfigurationSettings.AppSettings["exeName"]; proc.StartInfo.WorkingDirectory = "d:\\batchs"; proc.StartInfo.Arguments= e.FullPath; try { proc.Start(); } catch (Exception ex) { Console.WriteLine("Error trying to start application, filename = " + proc.StartInfo.FileName+"\n"+ ex.ToString(), ex.Message); } BUT remember this is in ...Show All
Visual C# datagrid.rows
In Windows mobile 5.0 for pocket pc i have not datagrid.columns or datagrid.rows but i need them... Here i have datagrid[rowindex,colindex]. How can iterate over rows using foreach (datarow row in datagrid. ) thx You must bind a datasource to you DataGrid and iterate the datasource. Then you can easy use a foreach to iterate, a little example can be found here . ...Show All
Visual C# Where is vsvars32.bat ?
Hi, I have installed VC# express 2005 final on 2 computers. On one, I can find vsvars32.bat in the Common7\Tools folder. This folder also contains a lot of other things. On the second machine the same folder Tools only contains a subfolder VDT. There is no vsvars32.bat and all the other stuff. I tried to repair/uninstall/reinstall but still the same. Thank you for your help Nicolas zorank wrote: Yes, this is something that bothers me also. Does this mean that in Express version of C# it is not possible to compile from command line It is somewhat disturbing that one has to generate whole directory ...Show All
SQL Server The SQL Network Interface library was unable to register SPN. Error: 0x490
I recently installed SQLExpress Beta 2 on WinXP. After power up and logon there is a substantial delay - minutes - sometimes maybe forever. In the event viewer I see: "The SQL Network Interface library was unable to register SPN. Error: 0x490" This is on my home network with two computers one using WinXP the other Win2000 configured as a workgroup. I say maybe forever because if I tire of the wait and hit system reset - after the reboot this delay does not occur. What can I do (beyond uninstalling SQLExpress - which does work to eliminate the delay) to stop this probem Hi KerryK, The message in the erro ...Show All
Visual Studio 2008 (Pre-release) Moving window
i created a dockpanel and wants to move it with mouse, i created it succesfully but i ve a problem when mouse moves fast the mouse move handler for the dockpanel is loosed! any help Here is the code void TitleBar_MouseMove( object sender, MouseEventArgs e) { if (mouseDown) { double x = ( this .RenderTransform as TranslateTransform ).X; double y = ( this .RenderTransform as TranslateTransform ).Y; Point mousePos = Mouse .GetPosition( this .TitleBar); mousePos.Offset(-lastMousePos.X, -lastMousePos.Y); mousePos.Offset(x, y); this .RenderTransform = new TranslateTransform (mousePos.X, mousePos.Y ...Show All
SQL Server SUM problem in SSRS 2005 report
I don't know how best to explain this but will try. In my SSRS 2005 report, i have one group in my table. In that group, I have a field that for each company record in my dataset, this field value is repeated for each record. This is a transactions table so you'd expect several records in the dataset for each company..that's not the problem. example data from dataset: TransID CompanyID FeeGoal 1 1000 ...Show All
Visual Studio Express Editions VB 2005 Express/SQL 2005 Express - Using Code for Data Handling
Hi Pretty new to using VB 2005 Express. I would like to use a database with one row of initial data, which after a program has been used will then update that row of data on exit. My problem is that some data will be bound to controls on a form but I would also like to read/update parts of the data row just using code. Can anyone point to some suitable code. Thanks Billzz hi, you chich those links ADO.net Quick start >>> http://www.asp.net/QuickStart/howto/doc/adoplus/overviewcontents.aspx Connecting and Retrieving Data in ADO.NET >>> http://msdn2.microsoft.com/en- ...Show All
Visual Studio msi installer with 1.1 build output?
Hi all, I have just migrated to VS 2005 and I am very interested by the potential of the MSBee tool. I read the documentation carefully and I could reproduce the described scenario up to section 4.4 of the document. I could build successfully two .NET assemblies against the 1.1 framework: the first one was a 'Windows application' project, the second one was a 'Class library' project. In each case the msbuild utility created a folder named FX1_1 under the directory obj of the project directory. I choosed the option /p:Configuration=Release on the command line, and thus the build output was generated under a subfolder named Release . ...Show All
.NET Development Is it possible to change the namespace of parts of a wse3wsdl.exe generated proxy?
My web service uses typed DataSets quite a bit, and so the typed DataSet is part of the proxy file generated by the wse3wsdl.exe tool. The problem is that all the generated proxy code lives in one namespace. For most of the objects, this is fine, but for the DataSets, it doesn't make sense. Is there any web service attribute I can use that will change the namespace of certain classes in the proxy If not, this would be a very useful feature, as would the ability to output multiple files from the wsdl.exe/wse3wsdl.exe tool. Thanks, Erick I think that you can't do that with the tool, the solution that I ...Show All
Windows Forms PDF File Open Issue (File not visible)
I have stored my PDF files in the database as binary code. Now i want to retriee the the binay format file and want to display to my user. But when ever i have tried, the file is not visible. Why Any help.. Your help highly appriciated!I have written below code.. Basically i want to show the report to the user, I like to store in memory rather physically storing the report in hard drive. Or do we have any better way to display the report to my user from database (But constraint is File should show in PDF format only!) string strString= "Select Image From ImageTable where ID=1" SqlConnection conne ...Show All
SQL Server How to handle multiple column conversions
I have multiple columns in a table that I only want to convert if they are not null or of the proper type. I don't really want to redirect the whole row if one of the conversions fails, rather I would just not want to do the cast or set it to another value. In this scenario is it better to use a custom script or multiple tasks The multiple tasks seems like a lot of overhead for processing the same data. Just curious how others handle this scenario as it seems as though it has come up quite often on our current project Thanks for the assistance. -Krusty PS: Is it possible to embed evaluation statements along with conversion statements i ...Show All
Visual Basic How to maintain security on server with socket applications
Hello everybody I donot know weather its a right place to this question or not but if this is not a right forum for this question then please let me know My concern is that lets say i have a server that is running a VB.Net application and this application has sockets that listens 24 hours for the connection made from remote sites using TCP/IP. My server is connected on internet Can somebody tells me how I protect my application form being accessed via anyother computer on the internet because of its sockets thats always listen on a certain port. Secondly opening ports like i have mentioned above could be threats for both my Operating S ...Show All
