R.Tutus's Q&A profile
Visual C# How can I prevent usercontrols from all projects loading into the toolbox?
I have made a few tries at googling for this, with no luck. The problem is that we have a large solution with dozens of projects, most containing 1 - 3 usercontrols. Every time I open the Toolbox, every project displays on its own tab. Each tab is open to show an item for each usercontrol. This not only takes a long time to load, but it makes it difficult to find the tabs I actually want to use. I have tried removing most of the tabs from the Toolbox, but it doesn't seem to stick. After I once close both the Toolbox and the solution, the very next time I open the Toolbox, it again brings up an open tab for every project. I guess what I really need is a quick easy way to put the control or component I need on a form (if there is a ...Show All
Visual Studio Team System How to add custome Dicispline item?
Is there anyone know how to add items to Microsoft.VSTS.Common.Discipline thanks a lot Found the answer. you have to play with the Global List . http://msdn2.microsoft.com/en-us/library/ms404878.aspx ...Show All
Windows Forms How to display progress form as modal form
Hi, I am trying to use Backgroundworker, which is new in .net 2.0 Here is what I am trying to do.... I have a main form, in which I am filling data requested by a user. While getting the results , I want to display a modal dialog form with a progress bar in it. Once the main form's grid is filled with results close the progress form window. On click of GetResults button I have the following code BackgroundWorker bg = new BackgroundWorker (); bg.DoWork += delegate { GetRequestedData(txtbox.Text,records); }; bg.RunWorkerAsync( null ); ProgressForm pf = new ProgressForm (); pf.ShowDialog(); backgroundWorker1.RunWorkerCompleted += delegate { pf.Close(); }; With this approac ...Show All
Visual Basic How to make deletion of files faster
using the following code to delete file to recycle bin does take a plenty of time if i delete a file by a file in large quantity (compare the method of deleting the files permanently). Option Explicit Private Type SHFILEOPSTRUCT hwnd As Long wFunc As Long pFrom As String pTo As String fFlags As Integer fAnyOperationsAborted As Long hNameMappings As Long lpszProgressTitle As Long ' only used if FOF_SIMPLEPROGRESS End Type Private Declare Function SHFileOperation Lib "shell32.dll" Alias "SHFileOperationA" (lpFileOp As SHFILEOPSTRUCT) As Long Private Const FO_DELETE = &H3 Priva ...Show All
SQL Server Query results are now showing as text based
Ok, I have been using Query Window in SQL 2005. All of a sudden, I notice that my results pane is now showing it text based, not formatted like columns like it used to. The only thing I did different was to change the Tools | Options | Query Results| SQL Server | Results to Text | Maximum Numbers to Display in each column value. Even after I changed that, it was working fine meaning it showed the results not as one big text. But eventually after a few more Query runs, I now get this format which I don't want (notice how each column is underlined with --------------) ProductID Description -------------------- ----------------- Why did it all of a sudden switch from ...Show All
Visual Basic Making certain file extensions
Hi All, I'd like to inquire if it is possible to create a specific file extension like for example .wew and when the user double clicks over the that kind of file ,it excutes the programm associated with it ,and how can the contents be interpreted by the program, I tried to find how to do that ,and I only found soultion that deal with windows shell scripting Thanks alot for any cooperation Aiad Aljumaily To associate a program with an extension, add these keys to HKEY_CLASSES_ROOT: I put the data type or key in square brackets after the value or key. So [key] means create a new key, while [REG_SZ] is a new string value .wew [key] (default) = WewFile [REG_SZ] WewFile\Shell\Open\command (default) = completePathToYou ...Show All
Smart Device Development Embedding Windows Media Player in Mobile5.0 and PocketPC 2003.
I have create an application using the following wmp.dll with reference to private static WindowsMediaPlayer player = new WindowsMediaPlayer(); When it is running in PPC2003 emulator in VS2005, the application run fine. However, when I run in real H6300 HP PocketPC2003 phone, it give fatal error. Question is if the WMP is only supported as embeddable application in PocketPC WM5.0 device but not in PocketPc2003 I'm yet to have WM5.0 device so I cannot say. For those who has, did the player work in the device thank WMP is supported on PocketPC2003. How are you embedding the control Are you using this sample: http://www.alexfeinman.com/download.asp doc=CLI331.zip What is the fatal error you are seeing Thanks, Steven ...Show All
Windows Forms Admin rights on the server to publish with Clickonce ?
Hi, I have used clickonce to publish our windows client app on a test server. Only with admin rights, I could do this. I cannot find any documentation that specifies this pre-requisite, though. Why Unfortunately, I cannot be given admin rights on our deployment server. Is there any way, we can publish from my machine to a server where I do not have admin rights ! thanks in advance, Soumya. You don't have to be an admin, but you do need to have permissions to the web server. If you are using HTTP publishing, I"m not sure exactly what permssions you need, but I'd try to get added to the "Web Administrators" group or something like that. You can look for info on MSDN about Fro ...Show All
Visual Studio Express Editions Using Properties
I know that it is good practice to use properties to encapsulate a variable rather than making a variable public. However consider the following code, class myClass { public int myVar { get { return _myVar; } set { _myVar = value; } } private int _myVar; } If a method inside myClass wanted to access the _myVar variable, would it be accessed via the property myVar or directly via _myVar I know the program will compile whichever I choose, but is either way preferable (I hope this makes sense!) Regards, Leo Kent Hello, While I use the same format: pri ...Show All
Software Development for Windows Vista CreateDirectory failed in the ActiveX control when logged in as guest
In my activeX control, it will create a "pref" folder in user profile folder, like c:\Users\guest\AppData\Roaming\MyCompany\pref , to store user's preference setting. It works fine when user log in Vista as administrator, the folder and file are created successfully. But if user log in as guest, the CreateDirectory function will be failed, ant returns "Access Denied" error. The same activeX control works fine on Windows XP, no matter user log in as administrator or guest. Is there any security setting changs in Vista caused this error My ActiveX control is created by ATL in Visual Studio 2003.net, and this activex is loaded from a IE. Thanks a lot! I may be wrong, but Ap ...Show All
Visual C# automatic destructor
Example class a() { public a() { } ~a() { do_something() } } i think that after close program every instances of class "a" will destroyed automaticaly with garbage collector, and my destructor with method do_something() will processed. But it doesn`t. How can i make this thank you palo (sorry my english) take a look at here http://msdn2.microsoft.com/en-us/library/system.idisposable.aspx pay close attention to the examples. Hope this helps ...Show All
Windows Forms Dropdown List
Is there a way to make a Dropdown List typing enabled in a web application. Thank you in advance hello U_T_A I dont thnk that we can attempt this,because its against the design of that control ,but again why did u actually need such a functionality ...Show All
SQL Server shrink my Database
Hello anybody Help me I am new for working Database side MyDatabase name is 'DS' i need to shrink my Database and files through stored procedure. How to shirnk my Database. can anybody help me thanx kiran Hi Kiran, If you execute DBCC SHRINKDATABASE(DS, TRUNCATEONLY) to free up unused space in the db back to windows, or DBCC SHRINKDATABASE(DS,10) to shrink the database whilst still leaving 10% free space to the db. Cheers, Rob ...Show All
SQL Server Using variable in DataReader's SqlCommand text
I'm attempting to configure a DataReader's SqlCommand text to use a package-level variable and I'm having trouble. I've read about using the "sql command from variable" option but although I see that during the configuration of Ole DB source, I don't see the same option for DataReader source. Viewing the properties of the DataReader and selecting the SqlCommand property does have button to configure the value but only displays a string value editor window. (I was hoping for the expression editor.) The configured connection to the DataReader uses the odbc Data Provider (under .Net providers). I'm connecting to mySql, if that matters. What I'm looking to do is to use a variable in the where clause of the DataReader's SqlComma ...Show All
Visual Studio Tools for Office Word extraction
I have a word document that I would like to extract word/sentences that are in a specific custom style. I have written the code to grab the word file but could not figure out how to search by a style... I then thought that I could save the document as a XML document (WordML) and then open that document as a XMLDocument and hopefully write a XPath query to get all of the nodes that meet the criteria. The XPath does not seem to work correctly because the nodes are named with ":" in them. Here is an "short" example.... XML File: < xml version="1.0" encoding="UTF-8" standalone="yes" > < mso-application progid="Word.Document" > <w:wordDocument xmlns:w="http://schem ...Show All
