TwilightBrigade's Q&A profile
Windows Forms What can stop Trace from writing to the listener?
After sometimes when the file gets big enough, Trace stops adding entry to the text file. During my testing the file size varies(100KB - 7MB) when the Trace stops adding to it. Any ideas I did some test as following Trace.Listeners.Add(new TextWriterTraceListener(@"D:\trace.txt")); .... for (int i = 0; i < 100000; i++) { Trace.WriteLine("adsfjsdijfi4ewjklfjioajslkdjfklsdajfkljskldajfijkjkjklafsjdfkdjjjjjjjjjjjjjjjjisafjidjskfjsaklfj"); Trace.Flush(); } but I can't see your problem. could you please paste your code to show your way to reproduce your problem. ...Show All
Visual Studio 2008 (Pre-release) UIElement containing another application's window?
Hello, I've seen the description (in MSDN docs) of UIElement that says: " UIElement can be considered roughly equivalent to a window handle in Microsoft Win32 programming". Maybe I'm taking this too literally, but *could* a UIElement contain another application's window For example, if you've seen the puzzle sample in the Windows SDK (v6.0\Samples\Demos\15Puzzle\Csharp), they do something pretty cool by splitting up different UIElement objects across the pieces of a puzzle, and scrambling the pieces. They have it working for video, some vector (svg-like) animation, 3D cube animation, and a windows form. I was wondering if it was possible to take this a bit further and show, for example, Microsoft Word or even the command-li ...Show All
Windows Forms Customizing DataGridView Selection Behavior
I'm currently trying to use a datagridview to allow the user to select multiple items from a table. While the multiselect functionality will work for what I want. I would prefer to have the program only change the selection of the current cell when a cell is clicked. Or to basically have the program act as if the user was always holding down the Ctrl key for selection purposes. Additionally, I would prefer if I could also restrict selection based upon the value in the cell being selected. Looking around the net, I found vague references to being able to disable the ordinary selection behavior. However I have not been able to find any information on how to actually do this. If anyone knows how to do this, could they point me in ...Show All
Visual Studio Express Editions Sending Page Down to WebBrowser control
I have a VB.NET program that loads a web age into a WebBrowser window and I want to programmatically page down to a section of the page. I can get the page to load fine, it is the Page Down command that I am having trouble with. I tried to activate the webbrowser then send the {PGDN} with SendKeys method. It works intermittantly. The problem seems to be in getting the webbrowser to be actived before I send the {PGDN}. I have tried things like: WebBrowser1.Focus() Me .ActiveControl = WebBrowser1 active = Me .ActiveControl but I see other controls on my form get highlighted from time to time. If i manually click in the WebBrowser then send the {PGDN} it works fine. I even tried programmatically moving the ...Show All
Visual Studio Team System Methodologies & Patterns
Any suggestions on which methodlogies we should choose What is preffered for .NET How successfull are Agile and Extreme Programming in real world Please suggesst some books and/or online article. Thanks. Michael: Thank you very much for the sincere advice, it was much appreciated. I have never worked with any methodologies before and the co. I work for is now migrating to .net from classic asp. Though I have experience with .net I never had a chance to work for a team that used any process. I have couple of friends that suggested Agile and/or Extreme Programming and since we are in the process of migration I thought it would be good to look into methodologies while we are at it. Would you suggest any book on either XP or Agil ...Show All
SQL Server Detect Licensing
Hello I am trying to find out if versions of SQL SERVER 2005 we have installed have full or Developer Licenses. They were installed previously by someone who no longer works here, and we do not the versions on record. We have enough full licenses, so we just want to make sure the correct ones are set up on our servers. Anyone know how/where we can find this information ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DX 10 release
so when is the SDK avaliable to Download. I tried to open the Instancing10 Sample with the SDK. but I get this error "could not initilize Direct3d 10, This application requires a Direct3d 10 class device running on windows vista or later" does that mean i need to install Windows vista ( I will get it soon from MSDNAA) so DirectX10 wont be supported on XP I have the latest drivers for my 8800GTS. ...Show All
Software Development for Windows Vista delay InitializeTimeoutDuration problem
Hi, I have a state machine, which has states A (initial), B and C(final). B has this InitializationState code activity: private void codeActivity2_ExecuteCode(object sender, EventArgs e) { System.Diagnostics.EventLog.WriteEntry("OrderingStateMachine", "Right before delay" + DateTime.Now.ToString()); } It also has an event driven activity, started by a a delay activity. The delay activity has the following initializeTimeoutDuration handler: private void delayActivity1_InitializeTimeoutDuration(object sender, EventArgs e) { Console.WriteLine("Initializing timeout duration"); System.Diagnostics.EventLog.WriteEntry("OrderingStateMachine", "Initializing ...Show All
Visual Basic Passing Optional Arrays to a Sub
In Visual Basic 2005, I am trying to create a sub in a class that takes an optional string(). However, I am unable to figure out how to set the default value. I have already tried: Public Sub getData(Optional ByVal postData() as String = {"", ""}) However, I get an expression required error at the {. Also, I tried the New String(), but then I get the error saying it must be a constant. What am I missing Thanks. Optional Pararmeters require a constant and as a constant cannot be declared as an array you can't do this. Why not use an overloaded function - Private Sub GeData( ByVal postData As String ()) ' my work End Sub Private Sub GeData() ...Show All
Smart Device Development Running MS CRM 3.0 Mobile on emulator
HI all, I am tryying to run MS CRM 3.0 Mobile client to run on a Emulator. I am not sure this is the correct place to put this querry, if not please direct me. I have this setup MSCRM3.0 Server, MS CRM 3.0 Mobile both on single server and the MSCRM3.0MObile Client on emulator. The installation of the client goes through fine, but when i start it and give the needed authentication, it throughs up an error, "device registration failed". Any pointers regarding this one Thanks and Regards Leo You might want to post your query on http://www.microsoft.com/Businesssolutions/Community/Newsgroups/dgbrowser/en-us/default.mspx dg=microsoft.public.crm&lang=en&cr=US where it has ...Show All
Visual Studio 2008 (Pre-release) Method-name included in SOAP-body.
Hi, I'm trying to write a WCF webservice, which should receive messages like this: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Header> <To soapenv:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">[...]</To> <Action soapenv:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">[...]</Action> </soapenv:Header> <soapenv:Body> < ...Show All
Visual Studio 2008 (Pre-release) FindItemWithText in ListviewItem?
is there a way to do it Thanks!! This is a duplicate question. primary question on link http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=737101&SiteID=1 ...Show All
SQL Server Data Lost , Help !!!
i make an application to insert data to sdf file and save it when i colse the application and open it again i find my stored data on the sdf file well and if i closed the application 1000 times i'll find my data ok that's ok and that's not the problem the problem that when i open this sdf file from sql server management studio and make a select on it i don't find any result and when i try to open the db from my application again i found it empty with no data i realized that management studio delete's the data from my db Any Ideas Here the problem that when i open this sdf file from sql server management studio and make a select on it i don't find any result and when i try to open the db from my application again i ...Show All
Visual C# Creating C# dll to be called in delphi
Hi, I'm new to C#. Anyone know how can i create a C# dll which can be called by my delphi program What I did so far was create a new Class Library project. My codes are as below: namespace MyTestDll { public class MainTest { public MainTest() { } public void TestCall() { MessageBox.Show("Method is called"); } } } It was then compiled as MyTestDll.dll In Delphi, i tried using the usual LoadLibrary() and GetProcAddress() function to call TestCall function (in MyTestDll.dll ), but it didn't work. Anyone can help me Thanks! Hello. The problem is that you are trying to call managed code from within unmanaged code and its not going to be qu ...Show All
Visual Basic Form Designer No Longer Loads for a User Control
I am using VB Net 2005. I am in a panic - I no longer have IDE access to a very important User Control. In the Solutions Tree Control the normal icon of the user control has been replaced by a simple blue "VB" code text file. The control istelf runs perfectly when I run my app, but I can't change anything on it with the form designer because it won't load. The control is not listed on my Objects list anymore and it is not present in my toolbox either. All other User Controls load fine into the IDE and work normally. I have no idea how I did this or how to edit my control again. I have been trying to find help for this everywhere and the consesnsus is that this is a bug. I tried copying and pasting, rebuilding with all co ...Show All
