Dmitry Poltaryonok's Q&A profile
Windows Forms COMBOBOX VS DATAGRIDVIEW - resizing and positioning!
Hi! I have both combo boxes and datagridview on the same form. Combos are not inside the datagrid. They are outside On the top of datagrid aligned in a horizontal line. Each combo is aligned with its own column from datagridview. But... When I resize (to the right) let's say column 3 the combo which is positioned with column 4 doesn't move right as it should. I found out how to resize a single combo if a single column resizes, ...Show All
Visual Studio 2008 (Pre-release) Missing ORM Features
Hi, Been playing with the preview and saw in the doco that mapping inheritence is not supported. This is fundamental to an ORM. Without it polymorphic queries are not possible. Not only this, but all ORMs I've worked with (Persistence, TopLink, Versant, Hibernate, NHibernate) support the standard 3 ways of mapping inheritence to a relational model. This is equally important because alot of legacy schemas out there use a combination of the ...Show All
Visual Basic How to keep a control Loaded
I have a TabControl and it has three tabs. When I click between these tabs all the controls in the clicked tab are reloaded. This makes the program seem like it lags. I have seen other program that contain more tabs and even more controls but the tab transition is flawless. I think it's kind of ridiculous that some of my controls even reload at all; like my labels. None of the properties for my labels ever change so they don't need to be loaded ...Show All
Visual Studio Team System How many days left?
How can I tell how many days we have left before the 180-trial edition expires Trying to plan our upgrade and don't want to be left with a version that is expired. Marc would know, and he says that there is no easy way to tell: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=441447&SiteID=1 ...Show All
.NET Development Getting truncated data on sockets
Hi, For some reason I am recieving truncated data on socket I am listening to. The data sent is 41Kbytes but I only recieve less than 10Kbytes. I dont know why. The buffer size I have defined is also very large Private SocketDataBuffer(100000) As Byte This line iRx = workerSocket.EndReceive(asyn) in the following code always returns less than 10K bytes. Any ideas Public Function ConnectTradeAlertSocket() Dim _s ...Show All
.NET Development receive fax on modem
hi i use visual basic 2005 how i can receive fax using my app and send agin if there is example it;s better try http://msdn.microsoft.com/library/en-us/fax/faxportal_9nol.asp for documentation on the fax service API and the Microsoft TSPI. You will need the FAX service SDK which is available with the Platform SDK. ...Show All
Visual Studio Team System "AvoidNamespacesWithFewTypes" in Code Analysis
The help on this topics indicates that the casue for this warning is: "A namespace other than the global namespace contains fewer than five types." I get such a warning in a namespace that has 11 types defined in it (10 classes and one interface). So why am I getting the warning which seems to apply only for namespaces having fewer than five types Is that a bug in code analysis I'd take a closer look at your binary. Are you not using any s ...Show All
Windows Forms Calling an event within another event in C#
This is an interesting question. If I have a form A and a form B; I have an event in form B that I need to call in a button event in form A. We are assuming they are in the same namespace, etc etc. How can this be done Nevermind. You just didn't write it all out. I was talking about the constructor. You have a form object being passed, but I was talking abou ...Show All
.NET Development ArgumentOutOfRangeException when running .Net 1.1 compiled code on .Net 2.0
I want to use a .Net 1.1 compiled control/component from .Net 2.0 . I added the <.Net 1.1 component> as a reference to my .Net 2.0 Project (on VS 2005 beta). I am calling most of the object methods without a problem, but there is this one method that fails with the following exception: Exception : System.ArgumentOutOfRangeException Exception Message : Ticks must be between DateTime.MinValue.Ticks and DateTime.MaxValue.Ticks. P ...Show All
Visual C++ Software controlling mouse in WinXP
Hi, I've been trying to write a program in VC++ .NET which controls mouse movement in WinXP. Sadly I'm a little lost as to how I should achieve this. All I want to be able to do is to set the position of the mouse cursor to an arbitrary place on the screen. I was hoping there was a straight forward system call I could use to fake a mouse interrupt, but I haven't had much luck finding that. Does anyone know how this is done, or if the approach is ...Show All
Software Development for Windows Vista Workflow compiler error: "Attribute 'Class' not found on the root activity."
I have a console app that programmatically builds a workflow. It creates a sequential workflow object, adds activities (implemented in a separate DLL) to it, serializes the generated workflow definition to a XOML file, compiles the XOML definition to an assembly (DLL), and executes the workflow (we are building a prototype here, so at this point everything is done within one program). It seems to work, but there is one ...Show All
Visual Studio Tools for Office VSTO and Windows application
Hi, I'm plannig to use the VS Tools for Office to print a worddocument direct from a windows application. For example: my Windows application use the filesytemwatcher to wait for a new text.txt file. If there is a new file, my application has to put some parts of the text.txt file into a new worddocument and print this doc-file. Can anybody tell me how to do this Is there an example available You ...Show All
Visual Studio Express Editions Starter Kit Code Review?
Does anyone at Microsoft review the code for the starter kits I understand they are designed to demonstrate how to develop a fairly simple application start to finish and not the inner workings of an enterprise level client/server distributed system. But if you are trying to demonstrate techniques to beginning programmers and give them the ability to extend an application, don't you think the application should be well designed, extremely w ...Show All
Windows Forms using ListView order by name?
Hi. I have an app displaying different processes in a ListView form but I cant choose how to order them, etc. like Task Manager does when you can order the programs by name or like Explorer can order the files after size and so on. How do I do that in ListView Sincerely: Jonatan Nilsson http://support.microsoft.com/default.aspx scid=kb;en-us;Q319401 ...Show All
Visual Basic searching within text files
I want to know how to search with a text file... I know how to add it using the resources, I just dont know how to search within it. Im making a walkthrough program for some games, and walktrhoughs can be very long... as big as 96kb or more. so I wanna make a drop down with major sections of the walkthough... the problem is I dont know how to search for text within the text file. If anyone knows how, please let me know.. Hi, There was a s ...Show All
