skyliner34's Q&A profile
Windows Forms AutoScrollMinSize doesn't set the scrollbar sizes correctly
Hi, Did a search and can't seem to find an answer. I've got a custom paint control (derived from UserControl) that has AutoScroll to true. I hide and show containers (for navigation) and embed several versions of the custom control in there. I'm setting the AutoScrollMinSize and the size of the scroll seems to reflect changes to the view settings (the nofification works and the resize seems to be correct) but the scroll bars don't resize even though they should. The scrollbars resize correctly on a control that isn't shown, but not on the active control. The size is correct and I've even tried resizing the control to see what happens, but nothing. Can I force a resize of the scroll bars in some other way Does any one have any ...Show All
Smart Device Development sql connection error
I am getting following error: Error 1 The type 'System.Data.Common.DbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. C:\Documents and Settings\Adnan\My Documents\Visual Studio 2005\Projects\Mobile5\Mobile5\Form1.cs 20 4 Mobile5 the line which caused problem is System.Data.SqlServerCe.SqlCeConnection conn = null; following are being used as reference using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.IO; using System.Windows.Forms; using System.Data.SqlServerCe; using System.Data. ...Show All
Visual Studio 2008 (Pre-release) Forcing refresh of a Window object
Hi at all I want to ask, if it is possible to force a repaint on a wpf Window object With WinForms there is possible to call Refresh() on a Form object. Is there a similar method to do this on the Window object Thanks for answering. The way with the worker thread i've canceled because i want a solution with a just one thread. the reason is when i have a second thread in which the UI component will be (time consumed) created, the application will throw an exception because the second thread is not STA. That means i need a solution with just one thread. But the when creation of the UI component is in the main thread (UI thread) it blocks during the creation time of the UI component the repainting of the first UI component. I've trie ...Show All
SQL Server Passing array to stored procedure
Can some one tell me the way to pass Table or Array or list of values to stored procedure [Note: I already know some ways which are not useful in my case: - By passing a list of values separting each with a delimeter like comma(,) - Using XML ] Any other way Please, its urgent Thanks in advance I think the line StrVal varchar(1000) can be changed to StrVal varchar(10) The size here depend on the size of your list item in the parameter. Size of 10 is fine for a list of integers. ...Show All
Windows Search Technologies Strange Bug With Windows Desktop Search 3.0
I have a strange bug with windows desktop search 3.0 i am using windows XP Sp2 when i install windows desktop search that i downloaded form Microsoft site from here http://support.microsoft.com/kb/917013 windows desktop style looks as here u will notice this strange character before the word "Desktop" it seems like "n" How do i can Get rid of this bug thanks in advnace this happens every time i install WDS this happens from 3 or 2 monthes every time and this happens only with WDS 3.0 not 2.0 o don't know why but i can't fix this when i tried to resize WDS and change it's default size and restart windows so i don't want to resize WDS every time i install it i use Windows XP SP ...Show All
.NET Development Converting Access application to .NET
I have an MS-Access application that needs to be converted to .NET. I know that there's an upsizing tool thru which I can convert Access DB to SQL Server 2005. Is there any tool to convert Access code to C# / VB.NET directly similar to converting VB6 code to VB.NET I believe there isn't as Access is different (VBA) than .NET. I could be wrong however but I am certain that you can't just "Convert" directly to C#/VB.NET - technology is different. What code is it you require to be converted from Access ...Show All
SQL Server @@ identity does not work ?
By standard i try my questions in SQL Mangment. set nocount on insert into [order] (orderdate,deliverydate,status,Totalprice,customerID) values(2006-02-23,2006-02-23,'N',10000,10) (insert into temp (orderid)values(@@identity)) Major Error 0x80040E14, Minor Error 25569 > set nocount on insert into [order] (orderdate,deliverydate,status,Totalprice,customerID) values(2006-02-23,2006-02-23,'N',10000,10) (insert into temp (orderid)values(@@identity)) Invalid set option. [ Set option = nocount ] Without Nocount: insert into [order] (orderdate,deliverydate,status,Totalprice,customerID) values(2006-02-23,2006-02-23,'N',10000,10) (insert into temp (orderid)values(@@identity)) Major Error 0x80040E14, Minor Error 25501 > insert into [order] (o ...Show All
Visual Studio Team System Why is the "Compare" item disabled?
I am trying to get a specific version of a file by label. After I key in the lable and select OK, TFS starts the "flying files" dialog (a.k.a. "coffee time dialog") telling me it is getting a list of files to update. Eventually I get a "Reslove conflicts" dialog telling me the local file on my machine is writable and I need to resolve the conflict. So I click the "Resolve" button and a "Resolve writable file conflict" dialog appears. At this point, I only have two options. "Overwrite the local file/folder" and "Ignore conflict". There is a "Compare" dropdown on the dialog but the dang thing is always disabled. It sure would be nice to be able to compar ...Show All
SQL Server Remote connection not working using MSSMSE
Im getting quite desperate and frustrated!! I have installed SQL 2005 Express successfully and can connect to it fine using Management Studio locally. If I try and connect remotely using Management Studio Im getting the old Error 10061 : The machine actively refused the connection! I have set it up exactly as per all documentation and help from the forums. Remote connections is on TCP and Named Pipes, I even have the firewall disabled. Im running it on Windows Server 2003 Standard. Any help would be really apriciated as i have tried everything!!! The server is listening on port 1833, and it's normal. Try "telnet yourmachine 1833" and make you can connect to the port. Sql browser s ...Show All
Software Development for Windows Vista throttling to not overrun MaxSimultaneousWorkflows
If I have a WF host running on a server in which I want to have asynchronous workflow execution, I assume I need to manually control how many instances I start to not overrun the thread pool I didn't see a count property on the runtime, so is the correct way to get this to call GetLoadedWorkflows and check the count on that collection I'm a little concerned this may not accurately represent the total number of threads in use. To put this another way, if I have a message queue being read by a Windows Service host, and each received message invokes a workflow, whats the correct way to optimally keep the Workflow thread pool busy but never overrun it Thank you, great post there I should have found it ...Show All
Smart Device Development Recommended way to run C# application in the background? (Cingular 8125 device)
Hi I'm trying to refresh myself on mobile development, haven't done much with VS2005. The device is a Cingular 8125 smartphone (HTC ). I want to write an application that runs in the background, and occasionally alerts a user to provide some input. What is the easiest way to do this without resorting to unmanaged code I think long term I can live with unmanaged code, but want to put a demo together quickly. It would be nice to make this easy for the user to close, if it's hidden and then want to shut it down. Are there docs/guidelines on this, from UI and tech perspective. I assume the today screen is sovereign territory for the most part and you shouldn't use up space there. Thanks, Brian Simply put up n ...Show All
.NET Development SQLDataReader.GetOrdinal() fails rarely with IndexOutOfRange
Hi everybody, We were developed some Web-Services that run against SQL Server 2000 with SQLDataReader that executing Stored Procedures in the DB. Most of time (95%) everything is running well, but sometimes (when exactly, we don't know) the same WebService that worked 200 times, fail. The code is simple: public string myFunction( int ANumber ) { string strRetVal = null ; SqlDataReader myReader = null ; SqlConnection MyConn = null ;   ...Show All
Visual Studio Team System Team Foundation Server vs SubVersion
Hi, Did any one has done comprehensive report comparing Team Foundation Server vs SubVersion vs VSS The comparison will be toward business decision. - Cost analysis. How much saving if using TFS compare to others - Efficiency & Productivity - Quality Assurance. - etc Thanks, John Thank's for all the feedback, look's like Team Foundation Server still new. Not too many business decision being make yet. Correct me if I am wrong. I am trying to find out how to convince top level management to use Team Foundation Server. However, thanks anyway for all the feedback. ...Show All
Visual C# Trig on a Simple Circle.. I thought it would be easy!
I started a new post because maybe there is a limit to my questions But at least I'm serious and I'm really not sure if I can ask the question in terms you Math. folks understand. Or I understand either.. I made a bitmap of a thing I will call a compass, you know.. a rectangle bitmap with some arrows that point outward to represent... N,NE,E,SE,S, etc.. In another post, I .. ( ' I ' as in the posters help! ) solved almost all of my problems by making a region.. EXCEPT ONE (Well, maybe Two) (Two, which I will not bother you with at this time).. Sorry if I carry on but just me... But I enjoy myself... As stated before in other posts, Math. was NOT my best subject (oth ...Show All
Visual Studio 2008 (Pre-release) How to do xaml to change the button's image when the main application window is Maximize or Restore down by using style trigger?
How to do xaml to change the button's image when the main application window is Maximize or Restore down by using style trigger Here is your button: < Button > < Image > < Image.Style > < Style TargetType = " {x:Type Image} " > < Style.Triggers > < DataTrigger Binding = " {Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type Window}}, Path=WindowState} " Value = " Normal " > < Setter Property = " Source " Value = " gosho.png " /> </ DataTrigger > < DataTrigger Binding = " {Binding RelativeSource={RelativeSource Mode=FindAnces ...Show All
