Mark Phelps's Q&A profile
Windows Forms System Tray
Can anybody pls show/tell me how to reduce/minimize my form to the system tray. I also want to click on a button a fourth to the minimize/maximize/close buttons so that this fxn can be implemented. I've been lookin around but I saw the VB version but I'm interested in the C# version. Anyone wit a hint This works quite well! protected override void WndProc( ref Message m) { const UInt32 WM_SYSCOMMAND = 0x112; const UInt32 SC_MINIMIZE = 0xF020; if ((m.Msg == WM_SYSCOMMAND) && (( UInt32 )m.WParam == SC_MINIMIZE)) { & ...Show All
SQL Server Row Count - Variable Name is Case sensitive
I defined a variable called "NoOfRecords" for a Data Flow Task and within the Data Flow Task I am outputting records from Flat File to RowCount before doing anything else. I typed Variable name as "NoofRecords" in Advanced Editor for Row Count and it didnt like it. It gave the following error. Error at Load Customers[Row Count [138]]: The variable "NoofRecords" specified by VariableName property is not a valid variable. Need a valid variable name to write to As soon as I changed the VariableName to NoOfRecords, it worked. It looks like a case sensitive issue. Hi Sutha, Variable names are indeed case sensitive. This is By Design. ...Show All
Visual C# Unload dll in run-time
Hi, I need to load dll use some functions and after it unload dll. How can I do this Thank's Alexei Here are some good examples , and here's the MSDN docs on AppDomain.Load(...) and here for AppDomain.Unload() ...Show All
Windows Forms Using a non IIS web server
Hi ! All , I have been able to embed a windows control in IE along with calls to dependent components . But all this by using IIS as the web server . But my requirement is to implement it irrespective of the web server used in the background . I have tried with Tomcat ; added the following MIME type to it : In <TOMCATHOME>/conf/web.xml add: ...Show All
SQL Server How to view permissions of user-defined database roles in Management Studio?
As part of our security project, I've done the following when logged in as 'sa': Created database roles 'dbrole1' within dbAccount Created login and user 'user1' and added user to be a member of 'dbrole1' Granted execute permissions on sp1 and sp2 to 'dbrole1' However, I didn't see the above permissions listed in SQL Server Management Studio - Database - Security - Roles - Database Roles - 'dbrole1' properties - securables Any ideas Thanks! Management Studio issues are addressed on the SQL Server Tools General forum. Note that the permissions can be obtained f ...Show All
Visual Basic Getting the dockstate of my notebook
Hi, there Can someone tell me if it is possible to get the dockingstate of my notebook That when my notebook sits in his dockingstation i can see this. Windows shows this when you go to properties of my computer -> hardware profiles -> properties. Can i ask those values from the system using vb.net Hi, I could not find a way to detect the docking state of a notebook but if you need to detect the power state or network state you can take a look at these articles: http://msdn.microsoft.com/coding4fun/inthebox/mobile1/default.aspx http://msdn.microsoft.com/coding4fun/inthebox/mobile2/de ...Show All
Windows Forms Changing data values before it binds to a label
I have code that goes in this order Me.Label22.DataBindings.Add(New System.Windows.Forms.Binding("Text", Me.dsMasterCrossingDetails, "tblmastercrossing.street")) Me.Label22.Location = New System.Drawing.Point(288, 8) Me.Label22.Name = "Label22" Me.Label22.TabIndex = 26 Me.Label22.Text = "Label22"   ...Show All
Visual Studio Team System Team Foundation RC install Failures, Dr Watson
Hi, I have been trying for serveral days to try to figure out what the heck is going on with this install. The issues I have ran into was during the install on TFS (RC), I keep getting these watson failures. I am so stumped on why this is doing this. I have everything else working fine such as sharepoint, reporting/SQL. Here is the last line of the error log file. [03/23/06,20:32:24] Setup.exe: GetGlobalCustomProperty({4F8791EE-486F-44B5-952B-F28F9FD58BD0}) [03/23/06,20:32:24] VSServerUI: ISetupManager::GetGlobalCustomProperty() failed to find global prop in CProgressPage::RunningComponent() [03/23/06,20:32:24] VSServerUI: {4F8791EE ...Show All
Visual C# Having fun with float (System.Single)
Can somebody please convert this to string: float a = 18234822.0f; I have used Console .WriteLine(a.ToString( "#,##0.00" )); And I am getting : 18,234,820.00 (note it is rounded) And also for the following: float b = 0.04f; double c = Convert .ToDouble(b); Console .WriteLine(c.ToString()); I am getting 0.0399999991059303 Can someone tell me what's going on Or should I take "Introduction to Computer" course again Isn't the usual precision of a single-precision floating point variable only seven (7) digits The rule of thumb I'm used to is 7 di ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to use DSSCL_WRITEPRIMARY mix the sound?how write the primary buffer?
how write the primary buffer How to use DSSCL_WRITEPRIMARY mix the sound Since the advent of the Windows Driver Model, there are no advantages to writing directly to the primary buffer, in fact it is simply an abstract concept now – there is no physical buffer available to the app where all audio gets mixed (so you cannot apply global effects on the primary buffer – you’ll have to mix the stuff yourself if you want post submix effects). All applications, even those with simple audio requirements, such as using one stream of audio data that does not require mixing, should use secondary buffers instead of directly accessing ...Show All
Visual Studio Custom Editor
I am currently trying to integrate a custom editor (for an in house scripting language) within visual studio. The editor itself has been build as a seperate windows application. However, i wanted to convert it into a VSPackage. I have read whatever is available in the VSIP sdk, but that's not much! I have also looked into the basic edit sample (provided with the VSIP sdk), but i somehow feel that it might not be the best way of getting things done! Is there any other information available online, if possible, the source code of a well designed package Thanks in advance. For an example of a well designed package have a look at the new ...Show All
Visual C++ Isolated Application? What is it?
Hi, plz allow me to ask all of you a very simple question. What is an isolated application Who isolates our apps from who Some docs start with the following sentence; An application is considered an isolated application if all of its components are side-by-side assemblies. Do you understand this Me No, I do not. I suspect that these days Microsoft is encouraging us to write manifest-based apps. If I am right, you may call every application isolated applications. Help me understand the concept of an isolated app. So far I have read more than 10 docs about deployment. Very sadly, I am getting to conclude t ...Show All
SQL Server try to setup membership with ASP.NET configuration
When I whant the use the new ASP.NET configuration tool (2005) and I want to define a provider I get the following error. You should know that on installation of VS 2005 SQL-Server Express did not install and I installed SQL-Server 2005 (shiped with VS 2005). So now it seems that VS waits for the Express edition. I changed under Tools/Options/Database Tools/Data Connections the SQL Server Instance Name to "MSSQLSERVER" but this does not help, too. Thank you very much for any help! Regards, Fabian ----------- Server Error in '/asp.netwebadminfiles' Application. If you are using Virtual PC with SQL Server Expr ...Show All
Visual Studio 2008 (Pre-release) Middle Tier Server using WCF
Hi, Please, I need to know if it is possible convert my Middle Tier Server to WCF and how. Using 100% .NET Remoting I wrote a middle tier server named ‘Endomap – Enterprise Domain Application’ to easy administrate connections and application servers. Like an IIS, but only for ‘Smart Clients’, so it is : 1) A windows service (EndoServer) that runs your middle tier Assembly/DLL's in one or more AppDomains. You give your methods the <RemMethod> attribute to make them available to external callers and intercepts. For example: [ Remotable ( typeof ( IHello ))] public class Hello : ContextBoundObject , I ...Show All
Visual Studio Express Editions Creating Windows Service
can i create windows service with visual basic express if yes, are there any examples i need to create service that will parse text files, and put it in sql server... where visual basic 6 app and php app will access it when needed... tnx in advance... Yes you can create services with the express products, you just have to build them manually. What I did at first was to go through the Quick starts on www.gotdotnet.com and built it up from there. You could also follow the code samples on MSDN... Another option is to get some one to create a base windows service in Visual Studio 2005, then export the project out as a template. You can ...Show All
