dumian's Q&A profile
.NET Development data multiple bursts?
Hi. This is a question I've been meaning to ask but then sometimes able to resolve it by adding a small delay before sending the next message. I have a server/client app client connects and sends data via the network stream. .. this .theNetworkStream.Write(bytesOfData, 0, bytesOfData); this .theNetworkStream.Flush(); Thread.Sleep(140); //small delay this works fine when sending 1 piece of data at a time, but when sending it in a loop, sometimes the data is sent properly whilst other times the data for some reason is recieved at the server end in 1 big string, instead of chunks of data, even with the delay from the client. When recieving data on the server, I am doing ...Show All
Visual Studio Express Editions Networks & Service Pack 2
When I tried to install VB Express on a computer in my lab, it asked me to install Service Pack 2. Now I'm getting an error and the internet is really slow. After talking with the tech guy, he told me that Service Pack 2 is not good for networks. Is there anyway around this I've never seen that before or even heard SP2 was bad for networks! I personally disagree with that but lets not go there. What is the error you are recieving on the computer that HAS SP2 and installing VBExpress ...Show All
Windows Forms Winform standards for UI Design? Help.
Hi there - we are doing the switch from ASP.NET to Winform/Smart Client development. The main thing we are struggling with is the proper ways to design the user interface...i.e. standards for design, layout, etc. Can anyone help with this....I know that 2.0 will have some new design features, but we want best practices - guidelines. Thank you Kelley Bryant Hi, The following article on MSDN Mag offers an excellent starting point: http://msdn.microsoft.com/msdnmag/issues/02/08/AdvancedBasics/default.aspx You can also download TaskVision - sample with source code to demonstrate best practices for Windows Forms based applications: http://www.windowsforms.net/Applications/application.aspx Page ...Show All
Visual Studio Team System Managing Deployment across the Enterprise
Are there any suggestions or recommendations of ways to manage a database deployment using Data Dude. It seems as though the Schema Compare tool works on an all or nothing basis. Consider the following scenario: Team A check out a number of objects for development. Team B check out an object, modify it and check it back in, but do not wish to deploy at this stage. Team A check in, perform a get latest version and run the Schema Comparison tool to create an upgrade script. The tool will pick up the changes made by Team B (and possibly others) and include these in the deployment script. It is possible to skip those objects that aren't part of your project, but this seems like an arduous and error prone way of managing the rel ...Show All
Software Development for Windows Vista Listener for Remove/Add audio device
Hello, is there anything available to receive an information if an audio device (e.g. an USB device) is removed/added from/to the system (Visual C++ Express) Thanx, Micha. The IMMDeviceEnumerator class has methods that allow you to register for notifications on audio device arrival and removal, that should allow you to do what you want. ...Show All
.NET Development Define an XSD relation to columns in XML?
Looking for some hints about an XSD format that would translate the XML below back into a table: <Column INDEX= "0">ColA_Name</Column> <Column INDEX = "1">ColB_Name</Column> <Row> <Cell INDEX = "0">DataA1</Cell> <Cell INDEX = "1">DataB1</Cell> </Row> <Row> <Cell Index = "0">DataA2</Cell> <Cell Index = "1" >DataB2</Cell> This represents the table: ColA_Name ColB_Name DataA1 DataB1 DataA2 DataB2 The key here seems to be getting the "INDEX" attribute recognized as a reference, but I haven't had any luck establishing that in an XSD. So far, the XSD that seems to make the ...Show All
Windows Forms How to remove the foremost column of DGV?
Hi, In the datagridview, there is one foremost column, when you click the cell of that column, it will select the whole row. If you click the top cell of the foremost column, it will select the whole table. Can anyone please guide me how can I remove this column. Thanks a lot! Best Regards, Yee Boon. Look at the RowHeadersVisible (or ColumnHeadersVisible) properties. Kind regards edit: added link ...Show All
.NET Development Display data retrieved from a datasource in a label
Hi all, can someone tell me how to display some data from a datasource into a label control Thanks you cam use as follow DataTable TB = TBC.GetTableA(); BindingSource BS = new BindingSource (); BS.DataSource = TB.DefaultView; this .label1.DataBindings.Add( "Text" , BS, "ID" , false , DataSourceUpdateMode .OnPropertyChanged); ...Show All
Visual C++ RUNTIME ERROR
Environment: Visual Studio 2005 Language: C++ /clr Type of aplication: Console I am experiencing a very strange and theoretically impossible situation. My application runs fine under IDE, both in Debug and Release mode, but when I run the release version from the command prompt, I get an error. Aside from the fact that I probably made an error in my program, in this situation the very purpose of the debugger is void if it doesn't detect it! And it is very strange that exactly the same application, with exactly the same inputs, performs differently when run inside IDE or by its own. I know that troubleshooting my program will then be very difficult. I am reluctant to pass all my program because it is fairly large and complex. ...Show All
Visual Studio Tools for Office possibly code group error but not sure
hello, i am gettin this error can any body help me, description :- i am creting excel vsto and have to add in my cars4u project this project usse data acess layer and enterprise library from microsoft. successfully created strong name for all dll's in my main project and then follow the steps of excel-vsto the whole project successfully build and then i install the excel-vsto through setup created but before startup gives errors for customization assemblies and that is the detail. Could not create an instance of startup object cars4uOfficeTools.Sheet4 in assembly cars4uOfficeTools, Version=1.0.0.0, Culture=neutral, PublicKeyToken=234324357668. ************** Exception Text ************** Microsoft.VisualStudio.Tools.App ...Show All
Visual Basic Help Needed with VB6 Data Type to VB05 Data Type Conversions
Hello, I'd like some advice on solving a problem having to do with data type size changes when moving from VB6 to VB05. Specifically how do I convert the VB6 data type to the VB05 data type A simple one is VB6 "Integer" (2-bytes) is a "Short" in VB05. With VB6 the "Date" (8-bytes) appears to be (7-bytes) in VB05 (My data on its size seems to vary). With VB6 the "Currency" (8-bytes) is replaced with "Decimal" (16-bytes). My current project requires me to read a binary file made up of an array of different VB6 data types using a VB05 based program. I created a new Structure with VB05 data types and read the binary file. My data appears corrupted due to the differences in s ...Show All
Visual Basic How to detect/capture left or right mouse click
I tried the my.computer.mouse thing, but no luck. Thanks. I keep getting an acess of shared member violation. Anyway, it would be nice to know if the numbers generated by a different system are the same. use instead If e.Button = Windows.Forms.MouseButtons.Left Then MsgBox( "Left" ) Else MsgBox( "right" ) End If ...Show All
Visual C# A little confused.
So I was writing a class that takes it so when you click and hold the mousedown on a control the whole form will go with the mouse. Well, I came across something weird. I get the initial coordinates and translate them via: mousex = Form.MousePosition.X - Panel.PointToScreen(Panel.Location).X; mousey = Form.MousePosition.Y - Panel.PointToScreen(Panel.Location).Y; Then I have a simple timer, that takes the mouse position - thesevalues and move the form there. Well I'd think it would work smoothly. However it doesn't... it was 4 pixels off. So I wrote in a simple thing that added 4 pixels on the above 2 lines of code and it worked perfect. I recently came back to this and decided to write my own function for putting the coordi ...Show All
Audio and Video Development how to play samples in iHDSim
mY pc has 512MB RAM, DISPLAY ADAPTER(intel(R)82845G/GL/GE/PE/GV Graphics controller). Do i need to install any other SW/HW to play samples in iHDSim. ...Show All
Windows Forms User Control resizes when placed on form (VS 2005)
My user control has a text box 292 pixels wide, when placed on a form it grows to 344. Is this a bug or is there a way to prevent this. I'm using VS 2005 Thanks Jeff When you create your usercontrol For the textbox 1)set location of the text box to 0,0 2)set the margins of the text box to 0 for the usercontrol, 1)set autosize to true 2)autosizemode = grow and shrink 3)margins to 0 then the size of the textbox is equal to the size of usercontrol you build your project when you now place your user control on the form, you should see the size of the textbox is the same ...Show All
