Scott Nonnenberg MSFT's Q&A profile
.NET Development Calling Winform with UserControls from VB6 via Com
We have some businessclasses and usercontrols (written in C#)in a dll, which are used from a .Net Winformclient. Our old VB6 client should be able to invoke also these usercontrols and so we implemented a comwrapperclass, which starts a Winform (same dll as comwrapperclass) and our usercontrols (other dll). All works fine, but sometimes we receive this errormessage " Exception has been thrown by the target of an invocation "! Our usercontrols are localized and I suspect the ressourcemanager can't find the right ressource. Has anyone an idee to resolve this problem I will try it with the GAC. (But I set the working directory in the project settings of the visual studio (debug tab) and other userco ...Show All
Visual Studio Express Editions Accessing Excel document in VB
Hi, I need to access the Excel document in VB. Can anyone help in doing it... Thanks, Rathish You have a couple of choices...and depending upon what you want to accomplish one may be a better solution than the other... Interop OR ADO http://msdn2.microsoft.com/en-us/library/microsoft.office.interop.excel(VS.80).aspx http://msdn2.microsoft.com/en-us/data/aa937699.aspx ...Show All
Visual Studio Express Editions MsgBox Size and Position
Hi, How can I set the size and position of the standard message box control. Hans Somehow I just knew that you would come up with the answer to this one. My comment was light-hearted and addressed to Ron - please don't take offence. Yes copy and paste is easy - and it worked first time - and without the double line spacing that plague so many other posts! But this is the Visual Basic Express Forum and to quote Microsoft: Visual Basic Express Edition is "Designed for the unique needs of the new developer" Does copying and pasting such code really help the new developer improve their understanding I don't think so. Others may think differently. However it certainly provid ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Windowed Resolution don't work
Hi, i have a functionality to Toggle Between Video Resolution, just as GraphicDeviceManager.ToggleFullScreen() method but changing the video resolution in Windowed or FullScreen mode. /// <summary> Alterna entre el tamano de ventana por defecto y el tamano minimo establecido </summary> public void ToggleVideoResolution() { if (currentResolution == SupportedResolution .Res640x480) { currentResolution = SupportedResolution .Res800x600; PreferredBackBufferWidth = DefaultWith; PreferredBackBufferHeight = DefaultHeight; } else if (currentResolution == SupportedResolution .Res800x600) { currentResoluti ...Show All
Visual Basic problem in generating serial number in a vb report form
hi everyone.... i am having problem in generating serial number in payroll report using vb. the report shud b like this.... sl.no. empid empname basic hra cca when i try to give serial number it repeats the same number again and again.. pleas suggest what to do... thanks... You're going to have to be a bit more descriptive of the problem. It sounds like you have a function which creates a serial number, which you're passing to a report. But the serial number is not unique. There could be many reasons for this. Perhaps show us some code. ...Show All
Visual C++ _CRT_SECURE_NO_DEPRECATE does not disable warnings
Consider the following code segment. I have followed the advice of putting the #define CRT_SECURE_NO_DEPRECATE 1 before all #includes, but I'm still getting the warnings: 1>c:\!mtc\src\deprecate_test\deprecate_test.cpp(10) : warning C4996: 'strcpy' was declared deprecated 1> c:\program files\microsoft visual studio 8\vc\include\string.h(73) : see declaration of 'strcpy' 1> Message: 'This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_DEPRECATE. See online help for details.' Here's the code: #define _CRT_SECURE_NO_DEPRECATE 1 #include "stdafx.h" #include <string.h> int _tmain( int argc, _TCHAR* argv[]) { cha ...Show All
Visual Studio Express Editions Precise position in a rich text box
Hi all. I have a problem: my richtextbox has a scroll bar as it has more lines than its height. Is it possible to 'drag' it down virtually (e.g. when i press a button), it goes to the bottom Thanks, James. Me . RichTextBox1 . SelectionStart = Me . RichTextBox1 . TextLength Me . RichTextBox1 . ScrollToCaret () ...Show All
SQL Server Connection String Options ...Urgent .. plz reply
Hi In my project , we are using Dsn and DSN less connection, for certain functionality we are providing users to select tables and views . we don't want that all system tables and views are listed for selecting , how can we achieve this functionality Is there any options in the connection string for restricting system tables and views Any help is much appriciated Thanks Saurabh Book mark the following site; http://www.connectionstrings.com/ ...Show All
Visual C# if i have a code inside my class that s all messy and badly formatted and aligned, can I format it correctly
Is there an automatic shortcut key or command to align and format my code automatically: like the IFs and whiles are all the code is badly indented Thank you Hi, try Edit | Advanced | Format Document (keyboard shortcut: Ctrl+K, Ctrl+D). Hope it helps, Andrej ...Show All
Visual C# Communication between a windows form and a web application
We are developing a game using VS 2005's windows application. We are facing some problems trying to pass data from a windows application to a web application through the SQL Server 2005. Is there any idea how can we commnuicate from a windows app to a web app ...Show All
Connected Services Framework Could not find the CSF-Administration-OU Organizational Unit in Active Directory
I am trying to install CSF 3.0 on a machine joined to my domain. I choose Complete install, and leave the Optional Top Level OU box unchecked. I've also tried manually creating the CSF-Administration-OU in AD, but I get the same error. Am I supposed to have SSL Certs pre-installed before running CSF install This is from the MSI log: Property(C): SetCertificateList = SESSIONWEBSITECERTIFICATE,IDMWEBSITECERTIFICATE,PMWEBSITECERTIFICATE,PIWEBSITECERTIFICATE,SCWEBSITECERTIFICATE,NPWEBSITECERTIFICATE Property(C): DEBUG3a34 = 34 Property(C): DEBUG1a34 = 34 Property(C): SetSqlComboBoxSet = 1 Property(C): ORGDESC = CSFHOSTINGORGANIZATIONDESC Property(C): ERROR = No SSL Certificates in Certificate Store! Property(C): ERRORTRACE = &nbs ...Show All
.NET Development Getting machine name of remote machine
Hej (Swedish) Does anyone know of a way of finding the machine name of a remote machine on the same subnet, given an IP and/or a DNS name I need to build a list of all the available machines on a network (single subnet). I can ping the subnet, and ask for a dns-name using IPHostEntry host = Dns.GetHostEntry(IP); but I need to get to the acutal machine (NetBIOS ) name instead of just the registered DNS names... I am no ace at network programming so mayby I am missing something very simple here Is there anything in the System.Net namespace that will allow you to query a remote machine directly (for the name that is) (I know there are certain security issues involved in using machine names and also a certain degree of trust/mistrust between ...Show All
Windows Forms ContextMenuStrip Display Capability
Hello: VB.Net(2005) Here is the situation: A ContextMenuStrip drop down menu is displayed when a TextBox control is entered. There are two items available in the drop down menu. The display makes it difficult to distinguish which item is hi-lited and which item is not hi-lited due the color selections made. The up/down arrow keys toggle between the items but it is not obvious which item will be selected when the enter key is pressed. Question: Is there a way to change the ContextMenuStripItem.Text as the item in the drop down menu is selected with the up/down arrow keys Many thanks for suggestions... jes I have found a solution: I looked at: KeyDown, KeyPress, and PreviewKeyDow ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What one has to do if he has a great game and would like to sell it on X360 Live Aarcade?
I think that GSE is a great idea. But i'm also pretty sure that there is someone out there already who has so magnificent game idea that it would be worth selling on x360 LA. What is needed in order to achieve this Does the one have to compete with big companies Does he/she/they have to buy a devkit Is that even possible for an individual What are the fees What else has to be met I cant see why there couldnt be a section set aside for homebrew games, and a small fee in the form of points on xbox 360 live arcade couldnt be done, they could have someone check the code before it was compiled and added to the live arcade, the points could be split between microsoft (for checking the code of course) ...Show All
Visual Studio Team System TFS and Active Directory
Does anyone know why TFS cannot be installed together with AD Here's a thread from earlier this year on the topic- http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=287650&SiteID=1 Cheers, Adam ...Show All
