Domino7's Q&A profile
Visual C# simple editor using webBrowser control
Hi, I am working on an editor using the htmldocument in the webbrowser control. This is my code for testing out its capability: private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e) { htmldoc = webBrowser1.Document; htmldoc.ExecCommand("EditMode", true, null); } private void webBrowser1_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e) { // process key pressed switch ( e.KeyCode ) { case Keys.I: if ( e.Alt ) { htmldoc.ExecCommand("Indent", false, null); } // end if ...Show All
Visual Studio Page Number -- Too simple, but I can't figure it out
How do I put page numbers on a report. I get this error: The Value expression for the textbox ‘textbox1’ refers to the global variable PageNumber or TotalPages. These global variables can be used only in the page header and page footer. C:\Documents and Settings\john\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Report1.rdlc I can't figure out how to create page head or page footers. I tried the table report item and put the page number in the header, but I get the same error. Thats nice if you want Page numbers for the entire report. However what if you want pa ...Show All
Visual C++ __FUNCTION__, __FUNCDNAME__ and __FUNCSIG__ macros
I posted this a while ago, but it seems to have disappeared from the forums. As has the reply from Ayman Shoukry asking if it was still an issue. It is... None of these macros work! I'm using the __FUNCTION__ macro to output the name of a function when tracing generic run-time errors, and it always expands to "__FSTREXP __FUNCTION__" . All the others fail in a similar way - and I had such high hopes for using them! The fact that it does compile means that there's something wrong with the definition, or I guess it could be the way that I'm using it: I'm stringizing the expansion and widening it (my app is pure unicode out ...Show All
Microsoft ISV Community Center Forums How to get ASCII code of the character? Weird Eh>
Hi! How to get ASCII code of the character Say: strA = chr(87) 'returns "W" Is there any function that would get 'strA" and return its ASCII I thing you are looking for Asc() MyNumber = Asc("A") ' Returns 65. ...Show All
Visual Studio Express Editions Color Gradients on Buttons
Hello. I am wondering if there is any way to put two different colors on a single button control Similar to the "fill effects" in the Microsoft Office Suite - I would like to put one color on the top of the control and one on the bottom and have it form a gradient from one color to the next. There is somewhat of a gradient on the button when you put it on, but the gradient is not apparent when "running" the program. Also, is there any way to change the gradient slopes Once again - similar to the Office Suite, I would like to be able to have the gradient be horizontal, vertical, diagonal, etc. Thank you very much. ...Show All
Windows Forms Tracking Concurrent Users
I have a Winform/VB.NET application that runs through Citrix. I need a idea on how best to be able to keep track of concurrent users in the application. The application logins are stored in a table in SQL Server 2000. The purpose of tracking this information is that we havea audit report that is suppose to display the login name that has inse ...Show All
Visual C++ C++/CLI Translator
In Stanley Lippman's article, "A Baker's Dozen: Thirteen Things You Should Know Before Porting Your Visual C++ .Net Programs to Visual Studio 2005"; in the introduction, there are three points, "To ease the transition...". I quote point 2: "We're working on an informal translation tool that can get you 80% of the way there. It will likely be made available for test-driving during the time-frame of the second beta." I can not find this translator. Was it released If so, what is it's name and where can I get it http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/nrvo_cpp05.asp I found wh ...Show All
Visual Studio Express Editions Data bound combo box
I'm trying to load a combo box with a simple table containing a number of cities. However, when I debug the program and select a city, the previous city selected changes to the current selection. For example: My list is Vancouver, Montreal and Ottawa, in that order. If I select Ottawa, and then hit the pulldown box again, my list becomes Ottawa, Montreal and Ottawa. If I then select Montreal, my list becomes Ottawa, Montreal and Montreal. Has anyone seen this yet and if so, do they know how to fix it I'm a VB newbie, so this may be something simple that I'm overlooking. Thanks in advance. I'm havin ...Show All
Visual C# Setting Exchange Master Account SID
Hi, Can you provide an example of setting the msExchangeMasterSID for a mailbox, in case you want to delete the NT account that owns it I already know how to set Active Directory properties, my problem is where do i get this SID, is it a GUID of another object in the domain etc Thanks Vin Hi Vin, I am just checking to see how this is going. Please drop me a quick note at your convenience to let me know the current status of this issue. If you have any concerns, please do not hesitate to let me know. Thanks, and have a great day! :) Best regards, Peter Huang ...Show All
Visual Studio Team System .NET 1.1 FxCop 1.32 SDK Documentation
Hi all, I am new to FxCop, and can clearly see its advantages. However, I am unable to find any documentation as to how to use the SDK that accompanies the application version 1.32. I am eager to delve into FxCop to utilise it, but without API direction, I can see that I will potentially be introducing more bugs into my current set. Steve David's information is right on the mark. I've included it (and some additional details) in a new FAQ on this question (which comes up quite a bit <g>). See: http://forums.microsoft.com/msdn/ShowPost.aspx PostID=66507 Michael Fanning VSTS Development: Code A ...Show All
Visual Studio Team System Saving a query after changing sort order results in message
If you open up an existing query and you click a column heading to re-sort based on that column, after trying to close out the query you receive a message: "Changes you have made in this view have caused the underlying query to be modified. Would you like to save the changes to the query " Yes or No is the only options. I know this is new functionality in Beta 3 Refresh (from Beta 2) but can somebody explain what changed and if this is a valid warning The biggest problem I have with this is that the only people allowed to create new or modify existing queries in the "Project Queries" are Project Administrators. However, when an avera ...Show All
Smart Device Development How to get contact name by number?
Take the emulator's number for example. I save the number 4250010001 as a contact named "Self". How can i get "Self" by the number "4250010001" And how can i get "Self" by "+14250010001" How to match them I cant think of any other way than the ones listed already to obtain this information on WM2003SE. Sorry. ...Show All
Windows Forms multiline text in listview ?
Is there a easy way to enable multiple line / word wrapping height in a listviewitem inside a listview box on a winforms app I have LabelWrap set to true but it doesn't seem to work when in "Details" or "List" mode - only seems appropriate on icon labels. hi richard can u give me some example how to do that... new to windows form... ...Show All
Smart Device Development Activesync service provider in C#
Hi, I must create an activesync service provider in C# How Can I make it Where can i find documentation or example I use VS2005 professional. At codeproject you can find a little article that covers a small piece of the basic's. It must be enough to give you the vision how it works and how to create a solution for you problem. ...Show All
Visual Basic The type initializer threw an exception. - For no reason
Hi, Im developing a timetable like program which was all working fine until i installed some security updates for windows xp. This might be p urely coincidental but i keep getting the exception, pasted below, when i try to call ModPublic.GetSett(). I even removed all code from inside the public modpublic.getSett() sub but i still get this error on each debug/F5 run. System.TypeInitializationException was unhandled Message="The type initializer for 'TimeTable.ModPublic' threw an exception." Source="TimeTable" TypeName="TimeTable.ModPublic" StackTrace: at TimeTable.Mod ...Show All
