YanickL's Q&A profile
Windows Forms Force to show scroll bars on a ScrollableControl
Hello. If I draw a shape (say rectangle) outside the client area of the ScrollableControl, how can I force the latter to show scroll bars so the user could view the drawn shape Thank you beforehand, Mikhail. If you set the AutoScroll property to true and set the AutoScrollMinSize property to the size of the area the client area views, you should automatically get scrollbars. If you're performing all the drawing manually, you'll have to process the Scroll event and shift your origin appropriately when drawing. To manually override which scroll bars are visible, set the VScroll and HScroll properties. ...Show All
Visual Studio 2008 (Pre-release) WCF Server and threads (limiting)
I have a service I implemented using WCF and MSMQ, all is working great so far. However, I have a rather intense process and need to control the number of threads that are simultaneously running. I’ve searched google and the forums but no luck. Any pointers of where to look for this Thanks Wayne Wayne, You may want to look at Throttling to manage concurrency within WCF. Dave ...Show All
SQL Server Cannot attach my database
That's the error I get. Please help ' TITLE: Microsoft SQL Server Management Studio Express ------------------------------ Failed to retrieve data for this request. (Microsoft.SqlServer.Express.SmoEnum) ------------------------------ ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo) ------------------------------ C:\Program Files\Microsoft SQL Server\MSSQL.3\MSSQL\Data\MyNewDB.mdf is not a primary database file. (Microsoft SQL Server, Error: 5171) Please use an appropriate forum, this is not a SSIS related question. I have moved this thread. I think the error is fairly self expla ...Show All
Visual Studio Team System Remove branch
Is there any way to remove branch I know that it is just a folder and I can delete it. I even agree that it is not a problem that the folder will be always here in "show deleted items" mode. I get rid of unneeded branches in BRANCHES PROPERY WINDOW. Even if i rename a branch to something like "ZZZ.deleted....", that list is not sorted. And that ZZZ will be in middle of list. How to hide deleted/uneeded braches from BRAHCNES list Is there UNBRANCH command or workaround Do we really live in XXI century Unbelievable! Fantasic! Amazing! It almost works! The branch is no more visible in MERGE dialog. It is still visible in BRANCHES PROPERTIES, with title " [no permis ...Show All
Game Technologies: DirectX, XNA, XACT, etc. beginners tutorials
Hi Where is the best place to find beginners tutorials in xna. thank you Yes, don't forget George's xnadevelopment.com ... The Jellies alone are worth the visit! :) ...Show All
Software Development for Windows Vista Copying sys file into the System32/drivers
Hi, I'm trying to load my driver into the WIndow Vista Beta 2. Seems that i cant copy my dirver file (aaa.sys) into the System32/drivers. Is there anyway to work around so that i can let the system to run my driver Should i disable the UAC How can i get the Administrator privileges The error msg that i got is: "You need to provide administrator credentials to copy to this folder" Thanks in Advance... -Brian- Hi, Thanks.. I'm able to copy my sys file into the system32/drivers after i reboot my com using the MSCONFIG method to disable the UAC. But seems that i'm having problem to start the service :( ...Show All
Visual C# RadioButton
I have 2 radioButton "Woman and Man" and I want that these go to my data base... I create array string and stay: string sex = "'" + "radiobutton..text" + "'"; string [] text = new string [2]; text[0] = radioButton1.Text; text[1] = radioButton2.Text; But I when a debug my code I see a error: What the lines not is like the rows. Thank you a lot!!!! again Are you having the problem with getting all the radiobutton text values in your database You might want to check your code where you iterate through the String array to store into the database. Thanks, Rashmi ...Show All
SQL Server Setting the chart scale
Hey guys, I'm stuck on this one. I have several bar graphs on a report arranged vertically (one on top of the other). I want all the graphs to be the same scale so that they are comparable. Note, these must be different graphs and cannot be combined into one uber graph. Anyway, I've tried variuous settings on my bar graph's scale properties minimum and maximum but they just don't work. It makes me think I don't know what they do. Any ideas here I want my bar graphs to always have the same scale. Any help would be great. ...Show All
Visual Studio Express Editions Counting Mouse clicks?
How can I count mouse clicks in VB.net The purpose is to select an entire sentence with triple clicks. ( Windows by default selects a word on double clicking ) There's good news and bad here. The good news is the both controls are rich in events for mouse interaction which means that wndprocs will be too. But here is where I've had difficulty. There are windproc mouse double click messages and perhaps there's information in lpatams that I haven't fully explored, but I've never been able to fully characterize a double click at the wndproc level although both of these control have an event. I have step back for a moment and think. You have a doubleclick event. Why not start a timer after a double cl ...Show All
Visual Studio Team System Team Project Portal - Service Unavailable Error
Hi, Iam able to create a Team Project successfully but when i try to access the project portal by clicking the "Show Project Portal" menu from Team Explorer i get the following message "Service Unavailable" in my browser. I don't have a clue on what is causing this. Can anyone help me out here. Iam using TFS 180 day Evaluation Package running on Windows 2003 Server SP1 Thanks Arvind T N Hi Arvind, Can you get to http://localhost/ and http://localhost/sites/<projectname>/ on the AT/ATDT Ensure the Sharepoint Timer Service is up and running on the server and the default web site and app pools are running normally. Check Sharepoint Central Administration pa ...Show All
Software Development for Windows Vista Automatically discovered printers raise multiple JobAdded events
Howdy, I'm a little new to interoping, so I need a little help. I have a WaitCallback method that raises an event whenever a job has been added to the print queue on the local machine (generally a print server). The primary purpose is to pause all incoming jobs so they can be properly logged, and then released afterwards. The jobs are stored in a queue in a separate SQL database. This is all well and good when a user adds a printer through the "Add Printer..." dialog. However, whenever UPnP discovers a printer and automatically adds it, the jobs sent through that device raise multiple JobAdded events. As an example, let's say we have a Xerox Document Centre 432 on the print server \\beast . If I share this printer on a ...Show All
Visual C++ [VS2k5] : Native C++ calling C++/CLI DLL - OLE exception thrown when Ctrl-C used on a form.
I am trying to implement a C++/CLI Dll that uses windows forms, on the form is a DataGridView, when I try to "copy" a cell out using Ctrl-C I get an error : Current thread must be set to single thread apartment (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. The DLL is a C++/CLI forms DLL, it instanciates a class(Form) and contains a DataGridView. It consists of one function that is exported : int __stdcall MakeForm() { System::Windows::Forms::Application::EnableVisualStyles(); System::Windows::Forms::Application::SetCompatibleTextRenderingDefault(false); FormTest::MainForm x; x.ShowDialog(); return 0; } The caller is a native C++ application, : int WINA ...Show All
Visual Studio Team System Custom Work Item Controls - How can you have one custom work item control trigger the InvalidateDatasource() method of another?
I want to create two custom work item controls. Each control will be a drop down list box. In the InvalidateDatasource() method of Control1, I retrieve information from a database, populate the drop down list box, check to see if a value has already been selected for the list box, and if so, set the list box equal to that value. I've got this working (which is pretty cool!). Now, based on the contents of the first drop down list box, I want to filter what contents are in the second drop down list box, called Control2 (picture Control1 being a list of states, and Control2 being a list of cities, specific to which state is selected in Control1). How do I, from Control1.InvalidateDatasource(), trigger Control2.InvalidateDatasource() Con ...Show All
Visual C# ORA-12154: TNS:could not resolve service name
I am trying to connect oracle 9i through c# and I am getting the following error. Please see the code below. I have created a dsn name using Microsoft ODBC for oracle. I am using .net 1.1. My oracle has installed in d:\ my .net is installed in c:\ can anybody help me what is the problem for the error. try { //string myString= "Data Source=test_data;Integrated Security=yes"; OracleConnection connectionObj= new OracleConnection(); connectionObj.ConnectionString = "Data Source=ArunTest;User Id=scott;Password=tiger;"; connectionObj.Open(); connectionObj.Close(); } catch (Exception ex) { Console.WriteLine(ex.Message); } Check your ORACLE_INSTALL_FOLDER\Network\Admin for a file c ...Show All
Windows Forms Convert.To double and then math.round( ,2) not working well.
Dear All, I have this problem where first I have text box in it I will key in a number. Upon that I will first convert it to double using the Convert.ToDouble() function. Then I will use Math.Round(convertedToDoubleValue,2). But unfortunately my output doesnt appear in 2 decimal format. What I want for example is that if I enter 4 I want the output to be 4.00. Can some one help me pls Thanks. Dear Nobugz, Thanks for your advice all this time I was suffering and editing it myself. Ok my question is that when will the validating function or event will be call. Can I specify that when I press the button enter then only it validates Thanks. ...Show All
