fantacmet's Q&A profile
Visual Basic What's the diff: Directory. VS. My.Computer.FileSystem
What's the difference between using Directory.<member> and My.Computer.FileSystem.<member> There are some subtle differences in places. But your generally correct that they are helper classes to other functionality in the framework - its just that as they are common items and the framework is so vast - things tend to get lost. So My helps keep commonly used items easily accessible. Example of subtle differe ...Show All
Windows Forms Guest user
Hey all, I am getting exceptions when using a Guest user about temporary profile. Is it possible to use Guest user with ClickOnce Thanks. Hey, I have written a form application and I am writing to write to a registry key under HKLM\Software. The question is that if I am running in full trust does it give me the privilege to write to HKLM, even if I am running as Guest or Normal user Thanks. ...Show All
Windows Forms When to use User32.dll and how?
Can someone tell me more about User32.dll How does it work and how can I use it I know that I must have this on my program: [DllImport( "User32.dll" )] But all the rest is that what I can't understand. So can you explain some things to me or just give me some link to website which tells more about it. I'd like to know what I can do with this. I've seen (and tried) Jelle van der Beek's example of drawing on screen itself and I'd like to know more ...Show All
Windows Forms ToolStripItem Ownerdrawn?
I am looking for a way to do owner drawn toolstrip menu items. I see I can handle the paint event but I see no way to set the ContentRectangle to size my menu appropriatly. How does one do the equivilent of the old menuitem ownerdrawing with the new ToolStripMenuItem Just set AutoSize for the ToolStripMenuItem to false and set the Size property to whatever you want. If you want to use AutoSize, and ge ...Show All
Visual Studio Team System MS naming coding standard & Hungarian notation
I've just read in MS coding standard naming guideline to not use Hungarian notation anymore. Why Hungarian notion provides useful additionnal information : visibility, type ... Thanks for your help. Clement M Guideline : http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpgenref/html/cpconNamingGuidelines.asp However without naming convention of some sort. "Self discovery" is a little harder. The ...Show All
Visual Studio Tools for Office Close word Document VSTO 2005
Good morning: My VSTO 2005 Word Solution already work. I already install application setup in another equipment and this working correctly. The problem is that when the user finishes the application word, giving him click in the x to close the document, the document close correctly, but when the user open again the document the combobox is blocked and the textbox too. When I deal process from task manager winword.exe, the document is unblock. ...Show All
Visual Studio Express Editions Import/Export Settings Deletes my text-snippets in the Toolbox Tab
I had a ton of text-snippets in a new Tab on my Toolbox. Then I needed to reformat my harddrive. So I used the "Import/Export Settings" to save my settings and my text-snippets(I thought). When I was done with the reformat and imported the settings ALL of my text-snippets from my Tab on the Toolbox was gone! The "Import/Export Settings" did save my Tabs but not my precious snippets. So now I ask; where does the IDE saves my text-snippets from t ...Show All
Visual Studio Tools for Office Proxy Remote Object?
Dears, I have a class file containing the following code: Excel.Worksheet wsActive = (Excel.Worksheet)Globals.ThisWorkbook.ActiveSheet; ((Excel.Range)wsActive.Cells[1, 1]).Value2 = "Test"; I can retrieve the ActiveSheet object successfully (because I can get the ActiveCell location from the ActiveSheet object), however, I can't assign a value to the worksheet. ERROR : ((Excel.Range)wsActive.Cells[1, 1]) Cannot obtain fields or call ...Show All
.NET Development Best Way to Build Bullet-Proof Grid Implementation
Building a grid to maintain data is easy. But, with dgv, its so easy to crash the app. Various exceptions from invalid operations, null values, db-concurrency issues, ... keep cropping up. I've gone thru and added code to almost every dgv event handler related to cell exit, cell validating, cell formatting, ... to prevent the user from adding a new row and entering junk. I've also attempted to validate every ...Show All
Windows Live Developer Forums Submit an App - Get the Windows Live Messenger Beta!
Would you like early access to the Windows Live Messenger Beta Starting today, November 8 th and running thru 9:00am PST on Monday, November 14 th The first 5 people to submit Activity Apps to the Worlds Best App contest and successfully pass compliance checking will receive an immediate invitation to the Windows Live Messenger Beta! Be one of the first people in the world outside of Microsoft to run with the next version of Windows ...Show All
Visual Basic Text Box only accept backspace
Hello, I have a problem with my textbox. I put a query string into my text box, and I want to make it editable. When it contains a very long string, it only accept backspace. This problem doesn't happen when the string is relatively short. Is there any solution to my problem Thanks and Best Regards, Maria Paramita (Mita) Make sure the Textbox' MaxLength property is large enough (like 32767). ...Show All
Visual Studio 2008 (Pre-release) DataSet RemotingFormat
The DataSet.RemotingFormat seems to have no affect on DataSet transfer time when large DataSets (or small ones,for that matter) are returned from Operations in WCF. I expected this with BasicHttpBinding, as I would expect the DataSet to be serialized as XML regardless of teh remoting format. However, I did not expect this with NetTcpBinding. Any insights into this would be most welcome. Thanks ...Show All
Software Development for Windows Vista windows workflow - supend activity
Had few queries in windows workflow foundation 1) how do I pend or suspend an activity inthe workflow 2) Is it possible to supend the activity in the workflow until an external data is recieved. If yes how can this be done 3) how do I set the data source for the activity in the workflow. thank you Basically you can use a listen activity with two branches. One branch can contain an eventsink activity (as Paul mentione ...Show All
SQL Server sproc call udf to generate alternating background color tags
I am using a sproc to select rows from a table and it calls a udf() to get alternating background colors as a "<tr>" string. I use the surrogate key and extract the last byte and based upon even/odd of the last digit return (from the udf) a <tr> tag with different background colors. This works just fine UNTIL my sproc does a selective pull and the rows from the audit table are not sequential - that is I get instead of even/odd/even/o ...Show All
Visual Studio Express Editions newb question(using token)
Im writing a simple program using token, term(), and ts.get Im getting erros saying that these are undefined identifiers. Is this an error on my part I don't believe these are built in types or methods. Look at the documentation of VC2005 at http://msdn2.microsoft.com for such words. You need to have the specific needed defintions if these are user defined. Thanks, Ayman Shoukry VC++ Team ...Show All
