Martin Rajotte's Q&A profile
Windows Forms what is real time client server application?
hi all, i am not sure if it is a right place to ask this question. could you please tell me what is real time client server application could you please give me some articles to reference could you please give me some examples can i realize it using windows form application how examples thanks a lot hi DMan1, if i want to do an application which has a server that centralises data and clients that access it on a realtime bases, how to realize it By using web service, .NET remoting or Message queue Or listener thanks a lot ...Show All
Visual C++ Documentation popup when hovering over a function or class?
I know the function signature appears when hovering the mouse over a function, but is there a way to get comments/documentation to appear when the mouse is hovered over a function or object, like how eclipse does it There are a bunch of applications and addins out there, that may do something similar to this. I suggest you take it to your favorite search engine, since I really don't want to advertise for any addon in specific here at the forum. ...Show All
Windows Forms Values dont change but.....
I have properites set up in my classes like this private bool _IsDirty = false; public int SomeProperty { get { return _SomeProperty set { if(_SomeProperty != value) { _SomeProperty = value _IsDirty = true // which mean the value has changed } } } now i have this in my form closing event because if the user changes information but tries to close the form before he clicks the save button it goes here....When the form loads it shows all the information pertaining to an object...the object properties are all binded to controls on the form so thats where the _IsDirty checks to see which ones have changed.... LoadFormToObject();// this is the binding of contro ...Show All
SQL Server Problem in using EDB
Hi I am trying to make database with EDB. If I include #define EDB and #include< windbase.h > then error comes 'CeMountDBVolEx' no identifier found. If i include #include<windbase_edb.h> then CeMountDBVolEx function successful but CeCreateDatabaseWithProps fails windbase_edb.h" CEDBASEINFOEX DBInfo; the sortspec of DBInfo defaults to [4] ------- this is the old CEDB default n additon, i cannot assign a sort flag to the DBInfo, there are always a Invalid_parameter_error when using "CeCreateDatabaseWithProps" function. what should i do for it. i'll be thankful if anybody solve this problem thnx n regards You should always include windbase.h. Do not include windbase_edb directly. Instead ...Show All
Visual C++ find the datatype
Hi, Is there a function available in VC++ to check if the datatype of an object is string or not. Thanks in anticipation. Warm regards, Hi, U can use typeid operator. This operator returns const type_info& structure. U can use name() method of type_info structure for getting the name of type at run-time. For Example; int a; printf("%s",typeid(a).name()); //This will print int at run-time. In case of run-time polymorphism, We are using base class pointer to instantiate derived class methods. For Example; Base* a = new Derived(); printf("%s", typeid(a)); //this will print Baspr); //this will print Base* printf("%s", typeid(*a)); //this will print Baspr); // ...Show All
Visual Studio Express Editions TableAdapter Query based on a form field
I'n new in VB 2005 Express and i want to do something like cascade listboxes (2 listboxes). The 1st listbox contain colour from a Colour Database Table with one 'id' The 2nd listbox contain car from a Car Database Table with a field called 'colour_id' that have de number from 'id's Colour Database Table. I think you see whaty i whant When i select on the 1st listbox one colour, the 2nd listbox is updated with all of the cars with the 'colour_id' from Car Database Tabe = 'id' from Colour Database Table ------> That's the easy part. The part with lots of problems is to build the Query from the designer way. I'm doing like this: 1. In the Car DataSet, I click: "New" - "Query" - "Use SQL statments" - "SQL ...Show All
Visual Studio Assemply info task must be installed for all developers?
Must the assembly info task be installed for all developers (As the < Import Project = " $(APPDATA)\Microsoft\MSBuild\AssemblyInfoTask\Microsoft.VersionNumber.Targets " /> is added to the project file) Also when I start the app from debug configuration from Visual Studio it modify the assembly info file. Can I only make this happen when I start from Team Build Or will this only happen the first time (I have not run team build yet). I was thinking about modifing my proj file as described in Guatam Geoenka's blog to get the assembly info task to work with team build. What I have done is check in the AssemblyInfoTask as a solution folder and include the files. Then just add this ...Show All
Visual C# Unable to debug C# solutions
I'm using Visual Studio 2005 Pro. This problem is repeatable with archived code on backup discs as well as new solutions. When I attempt to run my apps in Debug Configuration with breakpoints, I get the message: the following module was built either with optimizations enabled or without debug information. D:\Programming\Solutions\******... To debug this module, change its project build configuration to Debug Mode. To suppress this message, disable the 'Warn if no user code on launch' debugger option. Here's a screenshot . This is done with a brand new solution. File > New > Project > C# > Windows/Windows Application > Ok > Build > Run. [update] as par this thread , I've tried restoring factor default settings. ...Show All
SQL Server New install shows nothing when I go to http://localhost/reportserver
I get a page that looks like a directory browsing page and it says Microsoft SQL Server Reporting Services Version 9.00.1399.00 at the bottom. Any ideas report manager URL should be http://localhost/reports you can also select "Reporting Services Configuration Manager" from the start menu -> "Microsoft SQL Server 2005" -> "Configuration Tools" to view your virtual directory settings. ...Show All
Visual Studio VS2005 and VSS6: VS needlessly prompts to check-out solution
Using VS2005 Team Edition for Software Developers and Visual SourceSafe 6.0d (build 9848) I have observed that VS2005 is prompting members of my development team to check-out our solution files from sourcesafe for no apparent reason. My team has several solutions and projects that are organized within SourceSafe thus: $\project1\project1.sln \project1.vcproj $\project2\project2.vcproj $\project3\project3.vcproj The project1.sln includes $\project1\project1.vcproj, $\project2\project2.vcproj, $\project3\project3.vcproj, the latter two being dependents of project1. Every time one of us opens project1.sln, Visual Studio prompts the user to check-out project1.sln. The comments in the check-out dialog say: & ...Show All
Windows Forms I want to Restrictthe user to past the text in the textbox not write in the textbox
I want to Restrict the user to past the text in the textbox not write in the textbox is it possible Thanks I think you posted in the wrong forum. Anyway... There are several way's to do this. It depends on how you will allow the user to past data. 1) You can disable all user input and control the pasting yourself by using the Clipboard class in the System.Windows namespace. 2) you can catch the KeyDown event of the textbox and filter out all the key or key combinations you don't want. And so allow only the right mouse button to paste (or any key combination you allowed) ...Show All
Windows Forms ListBox how to question
Hi all, [C#] I have a method which adds files into a ListBox as follows: foreach ( String file in Directory .GetFiles( @"C:\Files" )) { listBox1.Items.Add( new FileInfo (file).Name); } This statment is run shortly after InitializeComponent(); then I have an event handle the change: private void listBox1_SelectedIndexChanged( object sender, EventArgs e) { : // not sure what needs to be done here myTxtFile.Text = listBox1.SelectedIndex.FileName; // cannot resolve FileName!!! this.CallsMyMethod(); // no p ...Show All
Windows Forms NET 2.0 adds a new Form.Show (IWin32Window) method that is breaking my GUI test code.
NET 2.0 adds a new Form.Show (IWin32Window) method that is breaking my GUI test code. I am trying to invoke the Form.Show() method but since .NET 2.0 has a new method I am getting an ambiguous error since my code is not able to pick the right method. Here is the code block (this is from a book that is less then a year old): public static object StartAUT(string applicationPath, string typeName) { try { Assembly asm = Assembly.LoadFrom(applicationPath); Type typeUT = asm.GetType(typeName); object obj = Activator.CreateInstance(typeUT); /*this the line that is broken */ MethodInfo mi = typeUT.GetMethod("Show", allFlags); mi.Invoke(obj, null); return obj; } catch(SystemException ex){ Console.Write(ex.Messa ...Show All
Visual C# Inheritance, static variables
Let's say that I am creating a program to make catalogue pages. I derived Class LeftCataloguePage and RightCataloguePage from the base class CataloguePage. As I am using many instances of each class with many member variables for catalogue dimensions, number of cells, margin spacing, etc, it would take a lot of time to call all the member functions of each class to change the dimensions so I decided to define static variables in the base class so that the inherited classes will have their own static variables and I will be able to specify static dimensions for LeftCataloguePage and RightCataloguePage seperately, and this will change all the dimensions for all instances of the classes. The problem is that the static variables in each derive ...Show All
Visual Studio Express Editions Question about DllImport?
i'm currently using this in my program. i'm wondering if theres a faster way ( less coding) to do the following coding task. example. [DllImport("<dll name>", EntryPoint = "<command>")] public static extern <command>(etc, etc, etc); [DllImport("<dll name>", EntryPoint = "<command2>")] public static extern <command2>(etc, etc, etc); [DllImport("<dll name>", EntryPoint = "<command3>")] public static extern <command3>(etc, etc, etc); etc...... is there way to just do DllImport just the once. yet still use the seperate public static commands. No, the attribute must be applied to each method. ...Show All
