moneppo's Q&A profile
Windows Forms Reduce the container zone of a panel.
Hi I’m trying to create my own component inherit from a Panel under .Net Framework 2.0 in C#. I have a problem on reducing the surface where component can be drop. In fact I would like to have the exact comportment of a winform : one part of my control would be a design surface like the title bar in a form (non accessible by the designer or other control) and an other part would be the container which add controls and where they can draw themselves. Is there anybody who can help me Post was moved to Windows Forms General. The zone in which components cannot be dropped is called the non-client ar ...Show All
SQL Server How do I insert data from a flat file or .csv file into an existing SQL database???
How do I insert data from a flat file or .csv file into an existing SQL database Here what I've come up with thus far and I but it doesn't work. Can someone please help Let me know if there is a better way to do this... Idealy I'd like to write straight to the sql database and skip the datset all together... strSvr = "vkrerftg" StrDb = "Test_DB" 'connection String strCon = "Server=" & strSvr & ";database=" & StrDb & "; integrated security=SSPI;" Dim dbconn As New SqlConnection(strCon) Dim da As New SqlDataAdapter() Dim insertCo ...Show All
SQL Server Using SqlDependency in Web Servive Context
Hi: Can SqlDependency be used in a stateless model such as web services Thanks, Duy Your question is related to ASP.NET Web services and SQL Server Query Notifications. I would recommend posting your question on ASP.NET Web services forum and/or the SQL Server Data Access forum. This forum is focused on SQL Server Notification Services (SQL-NS). I agree the names can be confusing. SQL-NS (in a nutshell) is a platform based on the pub-sub model of gathering "external" events and deliver customized notifications through various different delivery channels like email, SMS, etc. This is ...Show All
SQL Server WCF Transport Channel for Service Broker
I saw a posting or read a blog somewhere that mentioned custom WCF transport channels where created for interacting with ServiceBroker. Has anyone read or heard something similar If so, where can I get them Thanks. Phil There was a prototype of a WCF channel done a while back, but nothing production worthy has been built and shipped to-date. What is your specific interest here I'm interested to know what you would value most in this realm. For example, are you seeking a rich object model that exposes the Service Broker semantic; including features not found in other queuing systems Emphasis: ...Show All
Visual Studio Data Source from referenced projects
Is there any way to get datasets from referenced projects to show up in the Data Sources window We have a separate project to house all our typed datasets, these don't show up in the Data Sources window. The only way I've been able to use these datasets is by adding a new object data source, but I have to do this for each dataset. Any help ...Show All
.NET Development Multiplexing I/O
Hi guys, I would like to know how I can build a tcp server using the old multiplexing I/O technique. I need to build a server that can allow many clients connection, using as less resource as possible, because I would like to build a MUD. tnx Some good examples of how to do this can be found here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpguide/html/cpconsocketcodeexamples.asp ...Show All
Visual Studio Team System Web Recording is not working ..Pls help me Figure out
When i try recording a Webtest My Recording doesnt work. The Record options seem to be Greyed out (disabled).. The Browser loads Up pretty quickly when i click on a new webstest But then its all greyed out I have seen this before . please help me in figuring this out. I dont want to reinstall my Visual Studio2005 Thanks Roy Hi, I also got the same problem, however, there's no BrowseNewProcess folder under [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\. I have an IE 6 version and VS2005 installed in my PC. Is there anything else you think I forgot to d ...Show All
Windows Forms OutOfMemoryException error
Okay, I know that this was discussed in another thread. However, the problem I'm having is totally different. My error occurs with almost any application. I can open a project with VS 2003, a very simple one form like hello world. I can run it through the debugger, and there is absolutely no problem. The problem occurs when I E ...Show All
Windows Forms Problem to get the information about user name while using windows service
Hello, I'm using WindowsIdentity.GetCurrent() to get user name of Logged User in Windows. And I got the correct result (the current user's name was displayed) But if I use it with windows service program the result always be "System", not the current user who logged in windows. How to solve this problem Is it possible to get the information about user name while using windows service Hi, Windows service is independent of logged in user, windows services are started by the system, also windows services will run even if user doesnot logged in. i think following link will help for you How to ge ...Show All
Software Development for Windows Vista SDK compatability with VS2005 RC
First of all, the software looks great. The time and dedication is evident with the thoroughness of the design. Currently, we have our own proprietary workflow engine and were about to look at re-envisioning our designer as a DSL. With this announcement, we will have to re-evaluate our position. We have a few guys at PDC this year and they have been very impressed with the demonstrations and labs (I just had to pick this year to go to Teched instead of PDC!) Sorry if this has already been asked. I skimmed thru the readme and didnt find any info other then Beta 1 of VS2005 is definately supported. Is the SDK currently sup ...Show All
.NET Development Problem with caching
Hi, i builted a webservice like the one in TaskVision MS Sample. I make a authorizationkey for every transaction and save him in my context.cache withe the method insert() like this: Context.Cache.Insert(authkey,User_Id,null,DateTime.Now.AddMinutes(5),Timespan.Zero); and before a transaction i check my key like this: Context.Cache.Get(ticket) or Context.Cache[ticket] This workes for the first maybe 10 Users, but later on he dosen't saves or gets the key from the Cache. Why Is this a kind of Security against polling Please help me PS: I apologize for my english I recommend that you post this que ...Show All
.NET Development Problems with my Visual Studio .NET 2003 IDE
Every time I start my Visual Studio.NET 2003 IDE, it starts up in a tiny little box that I have to re-expand every time. Supposedly, when I shut it down, it's supposed to save the layout. However, it doesn't, and every time I run the thing again, it starts up in this little square that I have to re-expand. I have tried uninstalling and reinstalling. I have tried deleting my devenv.xml file in my application settings. Anyone have any idea what is going on and how I can fix it short of reinstalling windows I uninstalled the whole thing ( including the MSDN stuff and other supplimentals ). I t ...Show All
Visual Basic nth root function
I'm trying to code an equation that calculates the nth root of an expression. For example, I want to isolate the variable 'r' in the expression r ^ n = x. ( i.e. "r to the power of n = x"). If n=5 for example, the expression could be written as r = 5th root ( x ). Is there a specific function that does this I dont think theres anything specific in the system.math namespace so I did a quick search and found the following formula which when placed in a function may be what you looking for. Public Function NthRoot( ByVal y As ValueType, ByVal RootIndex As Integer ) As Single Re ...Show All
Visual Studio How to tell the version of MSDN Library?
The "What's New" section of the pre-VS2005 of MSDN Library identified which version of MSDN Library was installed on the system. Ex: MSDN Library October 2005. In MSDN Library for VS2005, how can I tell which version is installed on a system Hi Gaetan, You can correctly identify the MSDN Library version installed on your computer by going to: Start > Settings > Control Panel > Add or Remove Programs Scroll down to the MSDN Library for Visual Studio 2005 entry, and then click on the "Check here for suport information" hyperlink. When the display box opens, look at ...Show All
.NET Development Creating Shell Links/File Shortcuts with Framework?
What's the best way to create a link or shortcut to a file, using the 2.0 Framework I know this must be an oft answered question. But for some reason the only ways to create file system links I've been able to discover involve calling WSH, or wrapping SHELL32.dll. Neither rely on the .Net Framework. Surely there is finally support for shortcuts in the new release Karen No unfortunately there is no managed classes in the .NET Framework 1.0 or 2.0 to create links or shortcuts to a file. You will need to p-invoke shell32.dll. I believe the reasoning for this is that most shortcuts ...Show All
