Jallman's Q&A profile
Visual Studio Express Editions Help with MDI Form.
How can i get like a taskbar sort of thing where you click on the button and it shows that form like in this example http://www.winmxunlimited.net/pic11.png The parent form has an MdiChildren property that is an array of Form references to the child forms. You can use that to access members of the child forms like Text and Focus. It's not really necessary though because the MainMenu and MenuStrip classes can automatically put a list of child forms under a menu item. You simply assign the desired item, which would normally be named "Window", to the MdiListItem property and the rest is done for you. The property name is slig ...Show All
Visual C# Thread Question!!! Possible a simple one!
Hi I wannet to understand beter the Thread and so i thought to make a example.. it worked.. but i the Windows Task Maneger my CPU start to runt from 2% to 32% (My CPU is 3.2 GHz and 1Gb Memory of RAM) This is the Code i wrote: (And i know it isn`t quite perfect public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { Thread a = new Thread(new ThreadStart(test)); //a.Priority = ThreadPriority.Highest; a.Start(); } delegate void MyDelegate(string i); public void test() { MyDelegate a=new MyDelegate(th ...Show All
Visual Studio How to: Generate many files from one template?
I have a DSL now taking shape, including generating code that executes properly, and I must say I am pleased with how quickly it has come together. Now I have a secondary goal to fill: producing static documentation from the diagram. I'd like to produce a set of HTML files (one for each instance of the primary classes in the DSL). I don't see how I can do that with the current structure, which allows me to generate exactly one file from each template. Do I need to create a new DirectiveProcessor or TextTransformation class Can you offer any pointers on how to create many files from one template Thanks, Brian. ...Show All
.NET Development Internals of remote object creation
Hi all, When you have a code segment like the following: ChannelServices.RegisterChannel(new TcpClientChannel()); RemotingConfiguration.RegisterWellKnownClientType(typeof(TransactionMaintenance), "tcp://localhost:1235/TransactionMaintenance"); this.transactionMaintenance = new TransactionMaintenance(); I wasn't able to find a link between the type registration and the object instantiation. If you inspect the IL for this code the object instantiation is done with a newobj opcode just as would have been done for a local object. How does the CLR know that it should instantiate a remote class instead of a local one Thanks in advance. Alfred Gar ...Show All
Windows Forms Pop Up Window
Dear all: I am thinking of creating a windows service that I can run locally on my machine to work as a reminder. I just though of having that service, pop up a small window down the task bar. Can that be done in Windows forms My experience is humble in windows forms, I mainly develop in Web forms. Thanks a lot. Regards >I just though of having that service, pop up a small window down the task bar. >Can that be done in Windows forms You can certainly develop a Windows Forms app that pops up a window. I wouldn't do that from the service process though, they should generally not be allowed to inter ...Show All
Visual Studio Team System Web tests recording is disabled.
VS2005TS RTM. When I start a new webtest VS automatically launches IE and I have to activate IE windows myself. The recorder buttons are all disabled (grayed) and surfing around does not result in anything in the project. If I close IE, VS still report "Recording in progress" and I have to click "Stop recording" but nothing reports to the project. Beta1 did work but I had the same problem with CTP August. Hi, can you let me know if there was a resolution to this I'm also having this problem. Darren ...Show All
Visual C++ How to Resize DialogBox in VC++ with Code?
Hi! I want to resize Dialogbox. Should I use from WM_SIZE function How Please Help me. thank. Use MoveWindow Alireza_Izadimehr wrote: Hi! I want to resize Dialogbox. Should I use from WM_SIZE function How Please Help me. thank. ...Show All
Software Development for Windows Vista Event Queue operation failed with MessageQueueErrorCode QueueNotFound for queue
Hi I have workflows that are persisted in sqlpersistenceservice database in state 1 that has eventdrivenactivity with handleexternaleventactivity that listens to ISeller interface event. I changed the code activity inside workflow class that is inside state 5(I have more that 30 states inside workflow, which means that workflows that are persisted didn't execute code activity that was changed). I deployed new version of workflow, and tried to execute handle external activity on persisted workflows in order to transfer them to state 2, but I receive this exception: Message "Event Queue operation failed with MessageQueueErrorCode Queue ...Show All
Smart Device Development VS2005 Emulator - won't go away
As of this morning, everytime try to deploy / run my application the emulator pops up, even though I have "Pocket PC 2003 Device" selected. Last night I was working from home, so I switched to the emulator. But now I can't switch back! No matter what I select it still pops up! In Device Options, the default device is "Pocket PC 2003 Device", as well as on my Device toolbar. Jordan I don't have an answer for you, but if you post this question in the 'smart devices general' or 'smart devices vb and c# projects' forums (which have more focus on using VS) then folks with more k ...Show All
Windows Live Developer Forums Client Error on search call
On a simple search call, I'm getting the error Client Error. Already deleted/regenerated AppId value this morning. I have tried this on my PC where I have web developer express (VS 2005) installed, and on a server that has .Net framework 1.1 installed (created stub using wsdl from 1.1, and compiled with vbc from 1.1). I get the same error either way. Here's what I get for error information. Server Error in '/WebSite1' Application. Client Error Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and w ...Show All
Smart Device Development SQL Query Tool
Are there any tools that I can run sql queries against my server's database via my windows mobile device As far as I remember that is correct. ...Show All
.NET Development System.Threading.ReaderWriterLock acting screwy!
I've got a class that uses a System.Threading.ReaderWriterLock . Hard to tell without seeing the code that calls ReaderWriterLock.AcquireWriterLock(). -- Peter ______ http://www.peterRitchie.com/SortableValueType.snippet ...Show All
Windows Search Technologies Outlook 2007 Beta 2 and EntryID Futures?
there is also a problem when you try to install the WDS with the office 2007 during the installation at the end you get a error saying Access Denied and the installation fails. is microsoft aware of this problem James Hi csdcomp, This is a known issue with the beta. The good news is that there is a workaround available. Please use the workaround only if you are comfortable modifying your registry. Paul Nystrom - MSFT WORKAROUND Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might requ ...Show All
Visual C# Tab control
I have got a form where is tabControl with 2 tabPages. In each tabPage there is an textBox control. What I want is, when I click on tabPage ( 1 or 2), to textBox on this tabPage to be selected (to be cursor in it). Can you help me Ok, you need to listen to SelectedTabChanged event on the TabControl (double click on the control will automaticly give you this event) in the handler you need to write: if(tabControl1.SelectedTab == tabPage1) textbox1.Focus(); else if(tabControl1.SelectedTab == tabPage2) textbox2.Focus(); ...Show All
Visual Basic VB 2005 Ejecting removable media
I'm writing a program that reads and writes to MO drives and I need to be able to eject the MO disk on completion. Any suggestions how to do this within VB2005 would be most welcome. I assume it is that same process as with Zip drives and similar to that for CD/DVD drives. Thanks Using the MCISendString API may be the way to go. The following is an example of opening the CD drive and closing it. Two Buttons on a form with the following code should work. Public Class Form1 Declare Function mciSendString Lib "winmm" Alias "mciSendStringA" ( ByVal _ ...Show All
