Phil Atkin's Q&A profile
Windows Forms ToolStripPanel
Our VS 2005 Toolbox has a ToolStrip and a ToolStripContainer, but no ToolStripPanel. Must ToolStripPanels be added with code Hi, you could create ToolStripPanel from code (when form loads) or if you want to use it at design time, you could add it to your toolbox manually: 1. Right click the toolbox and select "Choose Items..:" - the Choose Toolbox Items dialog will pop up. 2. In the filter textbox, enter "ToolStripPanel" - the Compontents list should filter out to show the ToolStripPanel Control. 3. Check ToolStripPanel control and press OK button - the ToolStripPanel control will be added to your Toolbox. Andrej ...Show All
Visual C# MSMQ bug?
I have two applications that uses MSMQ for duplex communication, host and client. The host has an in-queue (Q1) where the client sends messages to the host. When a client sends a "register"-message, a new queue (Q2) is created by the host, where the client can receive answers from the host. The procedure in the client is like this: 1. Client connects to the hosts queue, Q1. 2. Client send a register message to Q1. 3. Client waits until Q2 is created with: MessageQueue.Exists( path of Q2 ) 4. MessageQueue.Exists( path of Q2 ) returns true. 5. Client creates a MessageQueue object (MessageQueue q1 = new MessageQueue( path of Q2 )) 6. Client registers formatter, event ...Show All
Visual Basic silent install
Does anyone know if it is possible to create a silent install with vb.net. By silent install i mean installing other programs from a vb.net program. xion.truth, Do you mean you want to install the compiled project from VB.NET Certainly it is possible. When you make a new project and compile successfully, just right click the solution name, choose the Public item, then the whoe project will be shown as: http://localhost/ProjectName . This is just an example. There are four options you can choose to publish: Disk path, File share, FTP Server, Web site. In the publish page ,you can see the version of your project, and there is a bbutton below that you can install your published project on your ...Show All
Visual Basic UserControl A use a UserControlB (VBExpress 2005)
Supose we have two usercontrols A and B named usrA and usrB. usrA ShowDialog() a WindowsForm that contains usrB. usrB contains a DataGribView. The user select a Row from DataGridView and then the form Close. How usrA can know wich DataGridViewRow was Selected in tha DataGridView in usrB witch at its time is contiened in the WindowsForm Please help. Thks very much Dustin, i will try it rigth now. I'll comment you the results. was really amzing the anwer time, thks ...Show All
Visual Studio 2008 (Pre-release) Mixing DataContract with Serializable attributes
The documentation at http://windowssdk.msdn.microsoft.com/en-us/library/system.runtime.serialization.datacontractserializer.aspx indicates that the DataContractSerializer will throw an exception when asked to serialize a class decorated with both the DataContract and Serializable attributes. However when attempting this myself I didn't experience any such problem. Is the documentation incorrect The reason I ask is that I need to be able to store objects retrieved from public Web services via WCF (i.e. decorated with the DataContract attribute) in the ASP.NET session state server (which requires the object to be decorated with the Serializable attribute). Actually, it is allowed to mix [DataContract] ...Show All
Visual Studio Express Editions Importing a vb6 project I get this error "can't use character device names ..."
while importing a vb6 project I get a upgrade wizard error "Upgrade failed: Exception occured: can't use character device names in file names" can anyone enlighten me on what this messages says I have reviewed any and all "filename" variables and don't see a problem. thanks !!!! Doesn't the upgrade wizard show where the error is Line number/file or something .NET does not support file names like COM1, COM2, LPT1 etc. ...Show All
Audio and Video Development How to set default button and global variables?
Two questions: 1. Total 3 menus with several buttons in each of them. how can I return to the correct menu with correct button focused after playing through each clip 2. If I have several .js file, where should I set the global variables that could be shared among all .js during disc playback Many thx! Easiest thing to do is to remember who has the focus when you leave one menu, and store it in a variable. Then when you load a page, use a simple animation to set the focus correctly: // When leaving the page: var focusedButton = GetFocusedButton(); if (focusedButton != null) resumeFocusId = focusedButton.core.id; // When loading the page (ie, setMarkupLoadedHandler) document.setXPathVa ...Show All
Software Development for Windows Vista Can get IP from router, but cannot connect to Internet
I have installed Winows Vista Ultimate (32-bit) on an HP Pavilion a1610n with the AMD Athlon 64 X2 4200 dual-core CPU. 2 GB RAM, 250 GB HDD. My wireless NIC is a Netgear wg311v3 PCI card, and my wireless router is a Netgear WPNT834 RangeMax 240 (802.11b/g). I am running DHCP and Shared WEP (128-bit) on the router. I can connect to the router and get a dynamic IP address. However, I cannot ping the router and I cannot ping the IP assigned to the NIC. I can ping localhost (127.0.0.1). In Vista network settings, the WLAN shows up as "Unidentified Network", Access is "Local Only", and the network keeps switching to Public, even if I manually switch it to Private. Obviously, I cannot surf the Internet since I c ...Show All
SQL Server Database Consistency Problem
Hi, For last few days i am just scratching my head due to these wierd DB errors. First the General Network Error and now a new one ! database consistency problem. When i am selecting some records from database i am getting an exception which states that- A possible database consistency problem has been detected on database <db name>. DBCC CHECKDB and DBCC CHECKCATALOG should be run on database <db name>. <db name> is my database name. When i was getting the GNE, i tried searching net and found that .Net Framework 2.0 gives some specific errors instead. So i upgraded to v2.0 and this error is thrown now. I run the commands DBCC CHECKDB and DBCC CHECKCATALOG on my databases both on my machine and the s ...Show All
Visual Studio 2008 (Pre-release) Problem with Listview, XAML and hover
Hi, I have a program that is done in XAML with C# code behind. I have a ListView that is employing the GridView layout. I need to be able to detect the ListViewItem over which the mouse is hovering so that I can make another form pop up (similar to a ToolTip) displaying information relevant to the user contained in that item. The ListView is instantiated in XAML, so the GetItemAt event only allows me one argument, index. I would like to be able to use mousePoint.X and mousePoint.Y to get the item that the mouse it currently over. I tried this event handler: grdUsers.AddHandler(ListViewItem.MouseEnterEvent, new MouseEventHandler(Tip_Opening)); however, it doesn't give me the ListViewItem as the sender, but, instead, gives me the ListView it ...Show All
Visual Studio Team System TFS Event XSD and XML files
Hi All, I found that for few events, the schema definition files (XSD) and XSL files missing in the directory "....\Services\Transforms..." . I am doing some customization in notification services which you can subscribe for all the available events....for this because the schemas are missing, i couldn't call the event to subscribe... Is anybody already created Schemas for the following events and XSL file also, then please share with me or point me how to proceed BranchMovedEvent NodeCreatedEvent NodePropertiesChangedEvent NodeRenamedEvent NodesDeletedEvent ProjectCreatedEvent ProjectDeletedEvent Thanks, Kathir Hi Michael, Great. I am happy to see your post on this.... I thin ...Show All
Windows Forms Include the parent control when a child is cut / copied and pasted.
Hi all, This is the final step in what became a rather involved process. The big picture is that I need to present a container control at design-time which does NOT clip its children. So yeah, I want for instance a child button control to be able to draw beyond its parent's bounds. I've gotten it to work by implementing an "envelope / hub" mechanism, where the hub is the above-mentioned container, and the envelope is its parent, another container which sizes itself to envelop the hub. When the user needs to "float" (ie. un-clip) the child button, it gets re-parented to the envelope and now has free reign to paint over the hub's bounds. All that to say, I have one final problem: when the hub is cut to clipboard, ...Show All
SQL Server "Microsoft SQL Server 2005 Datamining Viewer Controls" feature pack
Hi, I downloaeded "Microsoft SQL Server 2005 Datamining Viewer Controls" feature pack, and tried to run the dataminingviewerclient.exe. When i view my local time series data mining model, It works well for single series model, but when i load a Microsoft time series model containing multiple data series, an unhandled exception occurs. I post the error message below: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.AnalysisServices.Viewers.TimeSeriesViewer.PreprocessChartArrays(ArrayList rgPredicted, ArrayList r ...Show All
Visual C# C# wrapper for MSMQEvent??
Is there a C# wrapper for MSMQEvent object if so what is it, and how can i use it to have event notification on a MSMQ for a C# application plz help me out Take a look at the System.Messaging namespace (You'll have to set a reference to the System.Messaging assembly. Specificly the MessageQueue Class. MSDN has really good documentationn on the namespace ...Show All
Visual C# context menu on left click in .net 3.0 WPF Application
Hi, I have developed an windows application of WPF in .net 3.0 i am trying to show the context menu on left click on a button. Previously we were able to do this by btnSave.ContextMenu.Show(<arguments>); but now i am not getting the .show method in context menu. Kindly reply me on sachin.chugh@tcs.com or chughsachin@gmail.com Regars, Sachin ...Show All
