Jean Philippe Boucher's Q&A profile
.NET Development SerialPort Timeouts
Hello It seems that there is a problem with SerialPort timeouts: For start there is no way of setting the ReadTotalTimeoutConstant and the ReadIntervaTimeout values the way we used to do with Win32. Second,i keep receiving one byte immidiatly after writing something to the port no matter what readtimeout i set. The sample code is: //port settings: MySerialPort.PortName = "COM1"; MySerialPort.BaudRate = 9600 ...Show All
Visual FoxPro empty field
is there a better way of checking for empty fields than select *; from myTable; where field1 = " "; into cursor data1 i need to run a complete check on the database for empty records in every field. How would i check for a 'date' data field Mike Where EMPTY(field1) This will work for all data Types. If you want to check every filled you will need: Where EMPTY(field1) or EMPTY(field2) or EMPTY(field3)... if you want some ...Show All
Visual C# Overloading = operator
Is it possible to use = operator to copy one object to another much like in C++ (using already created copy constructor), so if I write MyObject A = new MyObject(); MyObject B = A; A and B wouldn't point to same object but actually point to two different objects (that have the same state, but are infact different). I understand that it cannot be done OOTB because overload of = must be static method, but I'm interested is ther ...Show All
.NET Development Stateful Connection - C# Client talking to Java Web Service
hello I have created a client in .NET which is calling Java Web Service. I m able to establish the connection and able to access the Java Web Service thru C# / ASP.NET Client. I want the connection to be stateful since the Java Web Service is designed like this but by default the connection established is stateless. Every time a call is placed to the service it is being instantiated where as i want that it should i ...Show All
Windows Forms Databinding, Synchornization of Data Problem
Hello All, I have 2 user Controls. The first one having the text boxes and second one having Labels. all the textboxes and labels are bound to same Table Columns.in the DataTable. When I edit the Data with Help of TextBoxes, the Lables in other Controls are not getting updated. For the DataBindings of TextBoxes I have specified DataSourceUpdateMode as DataSourceUpdateMode.OnPropertyChange. even then my labels in the Second Controls are not upda ...Show All
SQL Server SqlCePeplication.Synchronize
I am attempting to follow the example from VB.NET 2005 on synchronizing and SQL Database and an SQL Mobile 2005 db. I have verified that the PALM device (Treo running WM 5) when the device is connected to my desk top by using IE on the Palm to browse to the shared Folder I set up with IIS and the Configuration Web Synchronization Wizard. The error I get is "An incorrect or unsupported HTTP function call was made." and I have not ...Show All
Windows Forms Serialization troubles....
Hey all, having an issue I can't resolve....I have an assembly, MyAssem, which contains has a class defined as: [Serializable()] MyClass : ISerializable { private string myData; private static Version version = new Version("1.0.0.0"); &nb ...Show All
Visual Studio MsBuild SourceSafe integration
Hi, Can anyone point me towards how MSBuild can be used to get the latest version(s) of project(s) from VisualSourceSafe and perform an automated build process. We are trying to setup a automated build system for our various projects being worked on by multiple developers. So, we just want to take baby steps right now until we identify a process that works for us. -Vish The open source msbuildtasks have VSS support. I haven't use ...Show All
Visual Basic Moving things in a listbox
ok, i have a menu and a listbox, in the form1_load i have: For Each toolStripmenuItem As ToolStripMenuItem In ToolStripSplitButton1.DropDownItems Me .ListBox1.Items.Add(toolStripmenuItem.Text) Next In my menu i have: box1 box2 box3 The listbox displays all of these, i then want to be able to select box1 in the listbox and move it around, say under box3, i also want the changes to appear in the menu, how would i go ...Show All
Windows Forms Can't if (e.Control.TextChanged != null) , throws exception
Hi, I'm trying to respond to the TextChanged event of the control provided by the EditingControlShowing event. (As described in the FAQ) But I can't seem to check if an event has already been hooked up like I normally would. Why is this, and how can I fix it 1 void dataGridView1_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) 2 { 3 if (e.Control.TexChanged == null) 4 { 5 ...Show All
Visual Studio Team System GCHandle exception when using work item interface in web application / web service
Greetings, We are working on a web applaction that uses the WorkItem interface of TFS and we are getting an error that does not seem to make any since. First, the general architecture of the application: ------------------- --------------- | web application |--> | web service | ------------------- --------------- \ / -------------------------- | TFS WorkItem Interface | -------------------------- T ...Show All
Smart Device Development i m new...from where to start!
hello friends i m begineer who has not begin yet. please tell me how to start in mobile development. difference between smartphone,pocket pc, windows mobile 2005 thanx in advance what are you using to develop Visual Studio 2003 or 2005 as there are 2 version of the compact framework v1.0 and v2.0 v1.0 http://samples.gotdotnet.com/quickstart/CompactFramework/ v2.0 http://netcf2.blogspot.com/ ...Show All
Visual Basic Equivalent of string$(X,"X") etc?
Just a quick question - I can't find the equivalent in VB.NET of the old Basic string$(n,a$) function, which would return a string of n a$'s, eg string$(5,"A") returns "AAAAA" Thanks v much, Thanks, yes, but I what I wanted to do specifically was to check if a string (of unknown length) was all zeros. In old qb I would have just said If a$ = string$(len(a$) , 0).... It seems a bit cl ...Show All
Visual Studio Team System Possible to detect use of enum.ToString()?
Does anyone know if it is possible to detect the use of an enum's "ToString()" method The reason I ask is because we have started obfuscating our code using Dotfuscator, and of course because that renames the enums, it plays merry hell with any use of enum.ToString()! It'd be great if FXCopy could detect such usage. Also, I guess we'd need to detect enum.Parse() and other reflection-style access. Any help would be much appreciated! ...Show All
Visual Basic Blair Allen Stark
Here is the problem I am working on. It asks me to use the method CalculateCharges, but I don't fully understand how to do this or how it works. I would be grateful for any input. Lab Problem III A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period ...Show All
