amou's Q&A profile
Visual Basic Opening a text file externally
Hi, This is a simple question. I wrote a text editor specifically designed for the use of some data files i use. Now what i want to do is open the data file extenrnally from the windows explorer into my program. I will assign the extension to the software manually and on a later stage do it in a registry command. At the moment when i open the file (which is a text file, with a .DAT extension) in my program nothing happens. The program opens but the text file does not load. Is there a parameter that i should add when loading the program Thanks Just to make sure I've understood: When you doubleclick a DAT-file, your edito ...Show All
Windows Forms Source code for the Objects should be included
All the source code would be nice I am particulary interested in the inherited textbox that Provides the Percentage complete if that is indeed how it was done. I need to do something similar with DAYS but I notice that none of the objects in the OBJ directory have included Source Code Colin that helps a lot I looked for it as a  ...Show All
Visual Studio Express Editions Error "Object reference not set to an instance of an object" when add a master page to the solution.
hi Error popup "Object reference not set to an instance of an object" when add a master page to the solution.This error comes up only when I have checked "Place code in separate file". I have uninstall and reinstall Visual Web Developer 2005 Express Edition Beta 2. It seems that adding a code behind causes this problem. thanks Adrian hi all I have upgrade to Visual Studio 2005 Professional Edition and the problem is fixed Adrian ...Show All
Windows Forms Hittest in treeview control
Hello , is there any way to hittest a treeview control in C#.net . I have seen it in datagrid . MFC tree control also has hittest functions but i couldnt find any functions for hittest in treeview . The problem is the tree should collapse when clicking the + sign of the parent but it shouldnt collapse when u double click the label of the pa ...Show All
Visual Studio Express Editions Newbie: Form problems
Why is it that I will loose all of the labels, textboxes, and everything off of a form. I have built an application with about 50+ forms, certain forms will lose the information in them (in the design view only though). If I build and run the app, all of the textboxes and labels are there, but my toolstrip buttons are...not visible, even though they are fully useable. I have noticed that the forms that this happens on are all have two extra files now. for instance, there is a form1.vb, then a form1.resx, and a form1.designer.vb. does anyone know why this happens and what I can do to prevent this from happening in the future Thanks in a ...Show All
Visual C# Where is Object Test Bench in Beta2 (VSTS)?
I have installed VS 2005 Beta2 Team System - the full suite. And I can't find Object Test Bench any where. I tried right-clicking on the classes in class view, I tried right-clicks on the Class Diagram's classes there is no entry in the context menu to invoke a class or method. I am using the C# Windows Forms Project as well as looked inside a C# Web Project. Is there a registry tweak to enable this feature Or VSTS version does not ship with the object test bench Regards, Saurabh Nandu Sometimes we have to accept the consequences of our decisions. Choosing to learn VB.NET when C# is _clearly_ the better language is not their fault. " ...Show All
Software Development for Windows Vista LockProfile of IStreamBufferSink
I am working timeshift function in Windows vista. I have to use IStreamBufferSink::LockProfile function. But it is failed in Windows Vista. In DirectX C++ MSDN, it is written that This topic applies to Windows XP Service Pack 1 only. How can I do for use LockProfile in Windows Vista Pls, help me. soga... but my project is old vc6 project, and there will be a lot of errors if I build with new sdk (for new sbe.h)......... so I think to just use "run as admin" will be fine....:~ ...Show All
Visual C# Resizing
I have the following issue: When I want to resize he form and its controls. Does Autosize handle it all , or do you have to code all sizes manualy Ancher property changing to None does a bit but when I make the form smaller controls get hided in "Nowhere". It has to automaticly change the position and size.. ...Show All
Windows Forms InvalidOperationException: Cannot call Invoke or InvokeAsync
I have a tabcontrol that has several tab pages most tab pages contain a seperate datagrid. The datagrids datasources are not set until runtime. When closing the application and switching between tabs and moving between forms I recieve the following error InvalidOperationException: Cannot call Invoke or InvokeAsync ... I have seen people complaining of this issue& ...Show All
Visual Studio 2008 (Pre-release) What is the best way to send large data from WCF service to Client
Hi, What is the best way to send large data (500MB data per client) from SQL server to the client machine via WCF service with NetTcpBinding and without RM 1. Use dataset and Buffering : Problem I found with this scenario are Memory utilization (Buffer size per client will be large and it can not handle many clients: outofmemoryException 2. Can we use dataReader with streaming/chunking (an Example will help a lot) ...Show All
SQL Server OLAP Connection in c#
Hello, I'm trying to connect to my OLAP Cube with a c# project. This is my code: private void Page_Load( object sender, System.EventArgs e) { ADODB.ConnectionClass conn= new ConnectionClass(); conn.Open(ConfigurationSettings.AppSettings["connection_string"].ToString(),ConfigurationSettings.AppSettings["user_conn"].ToString(),ConfigurationSettings.AppSettings["password_conn"].ToString(),0); try {A DOMD.CellsetClass cs= new CellsetClass(); cs.ActiveConnection=conn; string szMDX=""; szMDX += "SELECT "; szMDX += "{[Measures].members} ON COLUMNS,"; szMDX += "[CAMPAGNE].[Dim CAMPA ...Show All
Visual Studio Tools for Office Why is a hidden VSTO document grabbing input focus?
I use a number of command line tools to manipulate Word Documents with attached VSTO 2005 assemblies via COM Automation. I am having issues with these VSTO documents grabbing input focus, despite running in an invisible Word instance. Automating non-VSTO 2005 documents (i.e. VSTO 2003 docs or "regular" Word docs without any customization assemblies) do not exhibit the same issues. I am aware that the VS 2005 Debugger (xxx.vshost.exe) sends messages to Word whilst it is running, and this can result in momentary loss of focus to the debugged instances of Word, however I am experiencing these symptoms when running a release build o ...Show All
Visual Studio Team System Work items seems to use sAMAccountName as key to the AssigneTo field.
When assigning work items to people the dropdown list displays a list of sAMAccountName . In our case these are very none informative - they don't give a clue to the persons name as it consists of random letters and digits. Is it possible to get it displayed as givenName , middleName , sn or something other more readable When hovering over a user in the team project permission dialog a tool tip displays some other field from AD that is of some help to us in that case. Something similar would be nice for the AssignedTo field. Regards Christer Yes, we recognize this is a problem for some organizations and a ...Show All
Windows Forms DataGridView leaks due to insuficent ToolTip cleanup
We have a control in our application that derives from the DataGridView control. I've spent all day tracking down leaks in our app using the SciTech profiler. I believe that I have found a leak in the DataGridView that occurs through the internal DataGridViewToolTip class. When the grid is setup to use tooltips and the first one is activated the underlying ToolTip coomponent is created and part of that initialisation is to figure out what the top level control is and attached a handler for the ParentChanged event to that control. Later on when we dispose of our DataGridView derived control, we can the base class dispose method (i.e th ...Show All
Smart Device Development Non full screen width Soft Input Panel
Hi I have a SIP that I've made for PPC2003 with eVC4 which is only displaying on half of the screenwidth. The rest of the screen width is shown as transparent, so that inputfields on the left side of the SIP is visible. When trying the same dll with PPC2003SE or WM5.0, the left side of the SIP is not shown as transparent. Otherwize the SIP works perfectly. Any idea what I can do to fix it Can send screenshots and code if it will help explain my problem. hi, To get the full screen, use GetWindowRect() API to get the rectangle of the window size and call the InvalidateRect() API to update the ...Show All
