RaghuramKr's Q&A profile
Windows Forms Forms Transparency not working in .NET2
Hi all I am trying to do a non rectangular shaped form. I have done it in 2003 and worked fine but doesnt work properly in VS2005. I have a bitmap image and set the forms background image to it. I then call the set transparency in code to get round the bug for 32bit color monitors. The background color from my bitmap is removed correctly but i see the background of the form instead. Any idea what i am doing wrong Is there a new way of doi ...Show All
Visual Studio How many install discs do I need?
Just a very basic question regarding installation of Visual Studio Enterprise Architect. I have just purchased an opened(but not installed) copy of VS.net (2003) Enterprise Architect. This is an upgrade version from 2002, and it only has 2 discs; disc 1 and disc 2 (apart from prerequisits, and 3 MSDN discs). My question is this; should there be three discs (ie, am I missing disc 3) and if so, what are the implications for my installation if ...Show All
SQL Server Previous Row Calculations (sql server 2000)
if anyone know a way that you can look up a value from the previous row in a View to do a calculation on (in sql server 2000) for example: expr1=PreviousRow.Expr1/30 + expr2 - expr3 =100 so the next row is expr1=100/30 + expr2 - expr3 =300 so the third row is expr1=300/30 + expr2 - expr3 =100 or tell me if it not possible please and special thanks to Umachandar Jayachandran - MS for help. the seco ...Show All
Windows Forms Top-level forms
My project uses two forms: the first form (frmLoading) appears at the starting of the program. Then I need to close "frmLoading" and to show "frmMain". I use this code to show "frmMain". frmMain* frm = new frmMain(); frm->Show(); And to close "ftmLoading" I use: this ->Close(); But when frmLoading closes, frmMain closes too. And I want to forbade the closing of frmMain, when I close frmLoading. How can I realise it ...Show All
Software Development for Windows Vista tapi32.dll problem while using msdn dvd
Hi there all, We're trying to put togtether a Longhorn machine using the DVD copy sent to us on our MSDN subscription but we are encountering the 'tapi32.dll missing' issue that other have experienced during installation. Everyone who has seen this bug has said it was due to a corrupt download, they re-downloaded and it worked fine but we are using an MSDN DVD copy of the thing Any ideas Could it be something to do with my setup instead or ...Show All
Windows Forms Forms AutoSize
i wantto be do that when i maximize or make fullscreen form, my form and its component automaticly autosize. how can i do with C# The easy way to do this is by using anchoring and docking . In the .NET 2.0 framework you can also use LayoutManagers for advanced layout management. See for instance TableLayoutPanel and FlowLayoutPanel. Similar behaviour is also possible in .NET 1.1, read this article a ...Show All
Visual FoxPro Report Toolbar
Hello Experts A small problem. The main form of my application is set as 'Top Level form'. When I set the ReportBehaviour to 90, the preview toolbar appears but am not able to access it. Whereas the ReportBehaviour = 80 creates its own preview container hence no problem. Any suggestions. Thanks, Jitendra Shahani This is a known bug in the VFP ReportPreview.app. The only workaround that I know of that ...Show All
Visual FoxPro a child form needs 2 clicks to close
I have a form calling a secondary form. In order to close the latter I have to click twice the button that has the following statements in the CLICK method: ACTIVATE SCREEN "CLICK fired " THISFORM . Deactivate () THISFORM . Destroy () THISFORM . Hide () THISFORM . Release () 4 statements are there out of desperation. I tried them separately and in many combinations. I see on the SCREEN that the event fir ...Show All
SQL Server Urgent Help! Error while installing MSSQL2000 Personel sp3
I cound't install the service pack msde2ksp3en to my MSSQL2000 Personel edition. An error box has been occured while i install service pack ( "the instance name specified is invalid" ). How can I solve this problem and install the service pack. I attempted to install service pack 4 but I had taken that error page again. Help me please. Thanx... Hi, do you have any special characters in your servername or ...Show All
Windows Forms Please help - FileSystemWatcher Problem
Dear Experts, I am using the FileSystemWatcher method to watch a folder. When a file arrives it will move the file to a process folder. My problem is when a large file is put in the folder the move command errors with Unhandled Exception: System.IO.IOException: The process cannot access the file "c:\temp\test.zip" because it is being used by another process. Obviously the file has not finished copying to the directory. Is there an attribute on ...Show All
Visual Basic Databinding to a Checkbox
I have a simple form with 2 checkboxes which are Databound to an object, the properties of which are of type boolean. The problem I have is :- I am using the CheckChanged event. When I check the Box, the value of the UI control is correctly changed, but the value in the object does not reflect the change i.e. the Object seems to lag behind the form. If I subsequently click on another control, and then check the values of the control and the obje ...Show All
Windows Forms Windows Forms GUI standards
Does anyone know if Microsoft has any Windows Forms GUI standards Standards such as the size and font of text on buttons, on Window Forms Title bar, message boxes etc... Thanks. You might also want to take a look at this site: http://www.microsoft.com/winlogo/software/tech_req.mspx Read the requirements a software product must meet in order to get the "Designed for Windows XP" Log ...Show All
.NET Development problems casting an object in a listdictionary
hi i'm having problems with a listdictionary i have the following code ListDictionary OnScreenDictionary; //instantiation of the LD, adding objects to it, etc foreach(object o in OnScreenDictionary) { DrawingObject DO = (DrawingObject)o; //do some work with DO } now, i'm getting an invalid cast exception but the object is a DrawingObject so the casting should be ok, but it isn't is there ...Show All
Visual C# DllNotFound Error when using PInvoke on non-MS DLL
I'm trying to use PInvoke to access some C functions within a non-microsoft C/C++DLL (actually the GDAL geospatial image reading library, FWIW). But I'm running into some very strange issues. I'm using Visual C# 2005 Express. First, I can get everything to work, if I use an old binary version of the C++ DLL (built with VS .NET 2003) that I have lying around. The old DLL depends on a few other DLLs, and I put them all in the same direc ...Show All
Windows Forms what error in my code?
private void MoveNode(TreeView src, TreeView dest, bool isAll) { TreeNode root = null; foreach(TreeNode n in dest.Nodes) { if(Convert.ToInt32(n.Tag) == rootNodeId) { root = n; } } if(root != null) { if(isAll) { foreach(TreeNode n in src.Nodes) { if(Convert.ToInt32(n.Tag) != rootNodeId) { root.Nodes.Add(n); src.Nodes.RemoveAt(n.Index); } } } else { src.Nodes.RemoveAt(src.SelectedNode.Index); ...Show All
