desny's Q&A profile
Visual Basic := Operator Help
This might seem kind of stupid, but what does the := operator do Named arguments come in especially handy if you have optional parameters, rather than having to put in values or lots of commas to denote the different fields, you can simply name your parameters and call them using the := operator. ...Show All
Visual Studio Express Editions substring exception
Why do I get an exception with my laptop but not on my main computer when debugging a program with Substring( i, 1) where i is int i = 3, The substring is in a while loop using compare to look for a ",". It gives an exception saying error in msorlib.dll, Substring length must be an int32. That doesn't sound like an exception message that SubString() can throw, please quote the exception message exactly as worded. The most typical exception is ArgumentOutOfRange, you'd get that with i=3 when the string is three or less characters long. ...Show All
Smart Device Development int main(); entry point
i have a c++ win32 win32project all tested previously as a c program. i build the project and all is ok, i get my exe file. my windows gui program runs and displays text, as it should, which is good. my c++ program does not run!!! i can not enter the c++ program at " int main()"; i have tried calling my c++ program as "int main(), int wmain(), int _tmain(); and twenty more different ways. i moved the code around to different locations and it still will not run do i even need to call int main(), from my windows program. i would think the compiler would automatically run the int main(), but it does not. everything is aligned and the program should work, if i could get my C++ program to run!!!!!!! ...Show All
Visual Basic Minimizing Process Start Up - CPU usage and Start UP Time
We have a one process which is started multiple times from a .NET Visual Basic console "exe" (i.e. many of these can be running simultaneously). Each process does its job and exits. We are continually starting these processes using the process object. Is there any way to minimize the "start up" time and CPU usage each time a process is started Best Regards - Dan Golden Is the process being started a .Net application - if so then you may be able to Ngen it to save a little bit of time. Native Image Generator http://msdn2.microsoft.com/en-us/library/6t9t5wcf(VS.80).aspx ...Show All
Windows Forms ending the application
Hi, What is the proper way to end the application Me.Close will close the form you are on, but the previous one is still underneath. Do you have them perform me.Close form each form until you get back to the logon form Probably not. I could not see a me.Quit. Will me.close completely end it even on the main form I see from the login form, if I do a me.close, the code on past that still runs. Thanks Steve Hi, If you can't/won't let user close the application for herself, you can try calling Application .Exit(); Andrej ...Show All
.NET Development Framework1.1 and Framework2.0
Can i install FrameWork1.1 and FrameWork2.0 on the same PC hi iliyas, a small doubt on .Net Compact Framework 2.0 .. i have installed Microsoft Visual Studio 2005 . I have developed my app using Visual studio 2005 . but when i tried to install my app in a MotorolaQ Emulator , its showing the error message as follows " A newer version .Net Compact Framework is required to run your application. " . so if i uninstall .Net Compact Framework 2.0 , and if i rebuild the application will it work on Motorola Q . Because i came to know that MotorolaQ ships with .Net Compact Framework 1.0 . i want to make my application work without installing Version 2.0 thanks sadiq ...Show All
SQL Server dtexec over the network
Hi All, I'm trying to execute DTExec from a workstation and I got some help from a different group without luck maybe someone here can help me. This is what I try so far. 1. My package run in command line from my sql box using dtexec with parameters. 2. Set the package with DontSaveSensitive and import into IS under MSDB with the same option setup. 3. Set package role to public. 4. Share DTS folder with everyone permission just for testing. 5. Execute the package from a workstation using //sqlServerbox/DTS/BINN/dtexec /dts "msdb/mypackage" /SER "MySQLServer" /set \package.variables[myvariable].Value;"myvalue1,myvalue2" (myvariable is string and I can pass multiple values separate by commas) 6. Still g ...Show All
Windows Forms How to Add a User Control into ToolStripPanel ??????
Ok, I want to add some control into ToolStripContainer's ToolStripPanel like its LeftToolStripPanel , of course, That is impossible because ToolStripPanel require its children control has implemented the ISupportToolStripPanel interface. unlucky, ISupportToolStripPanel is declared as internal . Is there any other way to do that Thanks A ToolStripPanel was designed to only host a ToolStrip, nothing else. You probably want to add the control to a ToolStrip, not the container. ...Show All
Software Development for Windows Vista Using the Path element as a resource
Hi, How do I use the Path element as a resource Here is an example: <FixedPage ... > <FixedPage.Resources> <ResourceDictionary> <Path x:Key="Reference" Stroke="#FF01FF" StrokeThickness="2" ... /> </ResourceDictionary> </FixedPage.Resources> </FixedPage> *Note: "..." means other codes My problem is, where will I place the "{StaticResource Reference}" value so that I can reference the Path that I have created I hope someone could help me on this one. Thank You, av.arce According to the XPS specification, the only place a Path (Glyphs and Canvas) element can be ...Show All
Windows Forms Outputting characters where I want them
I'm looking for a way to put a character (of a color of my choice) at a certain spot on the screen. It can be a windows app or just the console. I'm new to C# so I'm not sure how this can be done. The only thing I can think of is slapping an array of textboxes on a window in a 20x20 grid, but that seems mighty inefficient (or is c# capable of handling 400+ textbox objects without slowing to a crawl ) If you've ever played Moria or Angband, you know exactly what I'm trying to accomplish here, any help would be most appreciated. Thanks! Extending post of Maksim Libenson you need 2 loops one for Horizontal Oreitentaion and one for Vertical, You need to change the points in regard to fill the whole For ...Show All
SQL Server DTS Import data problem (exel into SQL server 2000)
Hi all, I face a small problem in DTS, hope you can help me to solve this issue. I designed a DTS package to import excel data ( with 4 column ) into SQL server database,The database design for the database table was column name type length ID bigint 8 CountedQty decimal 9 Location nvarchar 8 Other nvarchar 50 The DTS package is work and does not appear any error message. But the data in column 'Location' appeared <Null> after import into the database, this issue happen when the excel data was <numeric> value (string value in this data column can be accepted and appear nicely). Izzit because nvarc ...Show All
Visual Studio Team System Support for MSSQL 2000?
I guess this has been answered a few times. The product pages don' t seem to say much! But is MSSQL 2000 supported with this Well, a short answer is yessss. But you could have a look at the readme point " 2.2.1. Supported versions of SQL Server" Heres the link... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=650325&SiteID=1 cheers, Stefan ...Show All
Visual Studio 2008 (Pre-release) TabItem IsSelected background property
Hello, I am using the June CTP and here is my problem: I have a TabControl with some tabItems that I am trying to style. I have my style working and it looks great. The only problem is when a tab is selected it changes its background and forground. I am using the trigger property to catch when the tabItem is selected and am able to change the foreground color (im my case it changes to red). However, the background does not change (even with a simple color of black instead of my gradient). Am I setting the wrong property (background) or is this not implemented in the tab control yet <Style x:Key="tabItemStyle" TargetType="{x:Type TabItem}"> <Style.Triggers> <Trigger Property="TabItem.IsSele ...Show All
.NET Development Save date.now in SQL by INSERT
Hi! I'm trying to save date and time in a SQL Database by Insert. Here is the code: Dim conn_log As New SqlClient.SqlConnection(My.Settings.conn_pontos) dim sql as string sql="INSERT INTO tbl_logs (data_dat_log) VALUES (" & Date.Now & ");" Dim cmd_log As New SqlClient.SqlCommand(sql, conn_log) conn_log.Open() cmd_log.ExecuteNonQuery() 'The error is here... This code returns a error: "Incorrect syntax near '12'." 12 is the current hour in my computer when I run the code. It seems that it doesn't like the format of the date or it can support the space between the date and time (20-12-2006 12:36) I already search in forums for an answer to this; I tried some codes and no one result! Please ...Show All
Visual Studio 2008 (Pre-release) Closing WCF ServiceHost object ?
Hi, I recently ran into a strange problem that I cannot find anything written about yet. When I run a sample console program with one simple WCF service and call the Close() method on the ServiceHost the following happens - if a WCF client has started a session by connecting and made at least one call to the service): 1) The ServiceHost method Close() gets stuck for about 10 seconds (! ) and then the call returns without any exceptions throw (and the service finally exits nicely). 2) On the client side - if a call to the contract is made while the server side is stuck in the Close method - I immediately get an unexpected System.ServiceModel.FaultException with the description: "The server was unable to process the request due ...Show All
