PaulCN's Q&A profile
Windows Forms This Database is a Monster
Title: Junior Poster Join Date: Jan 2005 Status: Online Posts: 7 Reputation: This Database is a Monster -------------------------------------------------------------------------------- Hi, I am working on a project that entails one beast of a database. A friend asked me to write a program into which he could catalog all of his cards by sport and then further by player, ...Show All
Visual Studio Express Editions 2 questions...?
hi everyone... i got 2 questions: 1) can i display the datagrid in my program in a better way ..cuz what I've seen that it displays it like a table in the database 2) I've used the listbox and i would like to clear the items displayed in it....for an example i have a button search which will search in the database then displays the result in the listbox....and i have a button Clear which should clear the listbox....so how can i Clear the listbox thanx... bye I believe you are referring to GridView when you mentioned DataGrid. If "better way" mean displaying dropdowns, checkboxes etc then it is possi ...Show All
Visual Studio Express Editions Compile a program as a Microsoft Windows service?
Is it possible to make a program as a Microsoft Windows service I need to know, and now that I look, it isn't available in the express edition. Ouch. . . you might be screwed here. . . Get your server class in a remotable format - that is, in a manner that can be loaded as a .Net Remoting server via a console exe. does that make sense If it doesn't, go through a walkthrough for making a simple remoting client/server. when you can do that, I will give you some code that uses API interop to load it as a windows service instead of a console app. Its in C# though. . . but thats a good thing! ...Show All
Visual Studio Performance in VS vs. outside it
I have a pretty small test program using Windows Forms and one unmanaged function. When I run it in release mode inside VS 2005 it takes about 9% CPU. When I run it outside VS, it takes 2% CPU. Why would running inside VS take so much more CPU time Only a profiler can really answer your question. One possibility is that your application produces a lot of debugging events. Example of debugging events: Throwing/catching exceptions Outputting debug strings (traces) Creating/destroying threads Creating/destroying app domains Loading/unloading modules ...Show All
Visual Basic WebBrowser Navigate Problem
I am writing an application that randomly switches between showing images and displaying the home pages of various web sites. When the timer is triggered, I generate a random number. If it is less than 0.5, I show the home page for a web site and if it is greater than 0.5, I show an image. When the application starts, I create a list of web sites and a list of images to cycle through. The image part works just fine but I am having a problem with the web sites. The first site in the list shows up as expected but when I go to display any of the other sites in the list, the first site continues to show up. I proved the concept in a separa ...Show All
Visual C++ Fatal error when copiling my first program
Ok, I'm just starting to learn C++ because I'm taking a class on Object-Oriented next semester and want to know the background info. I'm trying to compile the source of a Hello World example I encountered in the tutorial I'm using, but it's not working. The code is: #include <iostream.h> #include <stdafx.h> int main () { cout << "Hello World"; return0; } This (with the exception of the stdafx.h inclusion) is exactly what is in my tutorial. I first got an error saying I needed to include stdafx.h, so I did, tried to compile again and got this error messag ...Show All
Visual Studio Unable to find the Visual SourceSafe registry key in SourceSafe.Get Task
I'm trying to get the latest version of my project through msbuild project. I have defined a SourceSafe.Get task (from Microsoft.Sdc.Tasks project) to do that. When I try to execute the task I get the following error: "Unable to find the Visual SourceSafe registry key" I can't find any information about this issue... This is the task in the .proj file: <Target Name="Latest"> <SourceSafe.Get UserName="raul" Password="" Database=""\\amon\dfs\VSS ilitia"" Project="$\Proyectos\MyProject" WorkingDirectory ...Show All
Visual C# Why does Visual Studio 2005 starts to consume 100% of my CPU?
Hello, Sometimes Visual Studio 2005 starts to consume 100% of my CPU. I've tried see if it is when I'm doing something specific, but I cannot put my finger on what it is that might trigger it. It is my first solution in VS 2005, so I have no clue if it's specific to this C# solution. I have a Windows Forms project and a Webservice project in my solution, all connected to a SourceSafe 6 database. This far I've always been editing the Windows Forms project when the CPU consumption has kicked in. I don't even have to build or run the solution for this to happen. If I close VS 2005 and open it again everything will be normal, ...Show All
Smart Device Development how to add Toolbar into menubar created by SHCreateMenuBar?
Hi all experts, After create menubar by SHCreateMenuBar, i want to add Toolbar beside the menu in menubar It's very easy and clair in evc++ 4.0 but in visual studio 2005 it's so stupid cos i spent a lot of time but i couldn't find out. Thank for your instruction. Hi Julien As hinted in your post, I am creating a variable (initialized) SHMENUBARINFO, but I am still not able to get the toolbar in my window. Below is the code I have created..... SHMENUBARINFO mbi = {0}; // We need to create the menubar window mbi.cbSize = sizeof (SHMENUBARINFO); mbi.dwFlags = 0; mbi.hwndParent = hWnd; mbi.nToolBa ...Show All
Windows Forms Control.Invoke blocks on WaitOne while UI Thread continues to run?
I have an application where a background thread is calling Invoke() on a control owned by the UI thread. I'm seeing a problem where Invoke is blocking indefinitely on a WaitOne operation while the main UI thread is still processing the queue (i.e. the UI is still responsive). I'm currently able to reproduce the condition relatively easily and believe it might be a race condition related to the UI thread disposing the control while Invoke() is being called on it from the background thread. I believe this because the only time I've seen the hang is when a trace message output in the control's Dispose method comes between messages output ...Show All
Visual Studio Team System Change priority from integers to strings
I've been customizing the Work Item template in the MSF Agile template. So far I've made good progress in implementing the states (Active, Closed etc) that we currenlty use. For Priority, we currently have High, Medium, Low, Memo but when I change the Microsoft.VSTS.Common.Priority type from Integer to string and added these values, it throws the following error when I import the template: Exception Type: Microsoft.TeamFoundation.WorkItemTracking.Client.Provision.ProvisionValidationException Exception Message: TF26038: Field type for Microsoft.VSTS.Common.Priority does not match the existing type. It was Integer, but now is String. ...Show All
Visual Basic Displaying dates between two set dates
I have a form with two DateTimePicker. the user chooses dates from the two DateTimePicker What i want to do is to show every Friday in between the two dates. Does anyone have any idea on how to do this Thank you! The following should work - it will return an array list of dates between two dates for a given day of week. Function DatesWithDay(ByVal Date1 As Date, ByVal date2 As Date, ByVal dow As DayOfWeek) As ArrayList Dim d = DateDiff(DateInterval.Day, date1, date2) Dim X As New ArrayList For d = 0 To d Dim checkdate As Date = date1.AddDays(d) If checkdate.DayOfWeek = Da ...Show All
Visual C# running unknow methods
Hi, i want to run unknow method with params inside of class. something like this --- public class class1() { function function1; public class1(function paFunction) { function1 = paFunction; } public run(string param) { function1(param); } } ---------------------- i want to call this function pubic void setText(sting paText) { text = paText; } ---------------------- class1 a = new cla ...Show All
Smart Device Development replace wince popup keyboard
how would i go about replacing the popup keyboard in WinCE with one that i have made I can't believe how quickly it takes to answer questions around here. I have figured out my answer. For those of you with similar questions i am including a link to useful code. http://www.pocketpcdn.com/articles/im.html ...Show All
Windows Forms Flash Screen
I am developing an windows application. I want to show a flash screen for 5 seconds, and close the flash screen and load main window. I have put Main method in the Intro Flash form and make the thread sleep for 5 seconds. After that, I am opening Main window. As the Main method is complete, my application terminates. How to design this type of applications Am I doing the correct sequence of methods What is the correct approach to implement this type of application Thanks in advance, C N Mani Ayyanar. Hi, Could you please post the code that showa both your Splash screen and main form Remember that when your first form (Splash Screen) i ...Show All
