Ashraf's Q&A profile
Visual Studio 2008 (Pre-release) ScaleTransform for all the controls of the grid at SizeChangedEvent of the window
Hi, I was wondering if anyone knows how can I aplly the same ScaleTransform to all the controls of the grid while a window resizes. Appreciate your help. I can't bring up an example just yet, but this is what you'd want to do: 1. Define a LayoutTransform for the main Grid. 2. Determine a "default" size, or a size the window can be that will not scale the grid. 3. Bind the ScaleX to the Window.Width / DefaultXSize ...Show All
.NET Development COM+ Transaction error in ASP.NET
Hello, I'm working in an ASP.NET application wich uses COM+ transactions and Enterprise Library. I finished and tested the application in my machine which runs WinXP and everything was working perfectly. Then I deployed the application in a Windows 2003 Server and I started to have serious problems and I'd like to undestand why this is happenning. Every time I modify something in my application directory(dlls, th ...Show All
Visual Basic How do I calculate the appropriate font size to fit a string within a given area?
I'm working on an application that displays multiple buttons that resize themselves when their container size changes. I've added a handler (AddHandler MyButton.Paint, AddressOf PaintMyButton) In the PaintMyButton routine, I'd like to paint a text string on the button that fills the button face regardless of the size of the button. I'm using the e.Graphics.DrawString(). The problem is calculating the appropriate font size as the button siz ...Show All
Visual C# Accessing an Array using Propery
Hi, I am using properties for Setting and Getting data values, such as, public string ModuleExists{ get{ return moduleExists; } set{ moduleExists = value; } }//end public string ModuleExists How would one use the above concept if the moduleExists is an array of values Thanks Jeff public string[] ModuleExists { get { return moduleExists; } set { moduleExists = valu ...Show All
SQL Server Excel orientation/page break problems
We're using RS 2000. All our reports have header/body with 2 cm margins (the header has a background colour and text box labels at left and right hand sides) - the layout, pagebreaks etc in HTML, printing, PDF formats are fine, but when exported to Excel the right hand side of the header (and the final data column of the body if it is close to the right margin) is always split onto a separate page. The spreadsheet has the correc ...Show All
Windows Forms Make a DataGrid show realtime data when underlying values change???
How do I get a DataGrid control to display the real values of the object it is bound to I have a custom class rather than a dataset, but it should work the same. I use the SetDataBinding method of the DataGrid to create the bin ...Show All
Windows Forms "truely" Transparent Control Paints Funny
Hello, (long post) I have worked this problem for quite some time now with no luck. I was actually at Tech Ed last week and just missed Shawn Burke. He is the gentleman that everyone said could help me. Nobody else had any answers. ...Show All
Visual Basic Problem with Socket?
It is possible to create a client/server system with sockets without having that to define an IP to connect itself to the server I have a system in vb6 but I am not obtaining to translate into net 2005 Thanks Bottom line is no. You could rephrase the question: Is it possible to send an e-mail to someone without knowing their address Having said that, you can 'broadcast' messages to everyone: this is really only useful to ...Show All
Visual C++ How to receive CListCtrl header notifications
Visual Studio .NET 2003 & MFC. I want to receive HDN_ENDTRACK header notifications in my CListCtrl-derived object. So far, I have not had any luck. I've read some threads on the Internet that suggest that it's not so straight-forward. Note, the other header notification that I am catching (HDN_ENDDRAG and HDN_DIVIDERDBLCLICK) seem to work. Any suggestions would be appreciated. Hmm, that's pretty much what I did as well. My listctrl is ...Show All
Visual Studio Express Editions Type or Namespace can't be found when it truly exists
Hi, I have a problem with using a dll reference that exists, but can't be referenced in code without an error 'The type or namespace name 'xxx' could not be found.' If I create a new project, and include a dll reference (the db4o dll actually) in my project. I can then include it typing 'using com.db4o;' and everything works. However, I have an old C# project that has the same code but it referenced an older version of db4o.dll. So I deleted tha ...Show All
Windows Forms Bug in C# only in Windows 2003 .NET framework 2.0
Hello, I am encountering a bug, and I can't figure out what it is causing. I am catching all what I can, but still it exists. The funny is that it is only available on Windows 2003. Here is the output. Can someone help me finding/killing this bug Thanks. ESTAN See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.ArgumentO ...Show All
Visual C# Tackle exception if .Net not installed
Hi all, How to catch exception when .Net Framework not installed in client computer, and show a message box "Dotnet framework not installed". Thanks. Normally you have the login in your setup that will lookup all the requirements and if some are not installed yet you install them. If you want to create an setup that will do this, there is a great article in the MSDN Magazine of october 200 ...Show All
Windows Forms Controls on tab pages
Hi, I have a tab control and several tab pages within it. I have a set a controls like buttons, textboxes etc... that I want to appear on each of the tab pages. I want the same set of controls to appear on each of the tab pa ...Show All
Visual Basic Datagridview bound to empty table, esc edit fails on first row?
Trying to understand how the Datagridview control works, I have bounded it to an empty table. If I begin edit of any field in the top row and "esc" the edit on this fisrt row I get an unhandled exception message "Current cell cannot be set to an invisible cell". My guess is, the control is trying to move to the row above the top row which, obviously, it should not. This occurs even if I do not have any code wathsoever i ...Show All
Windows Forms How to char array convert to string?
How I can convert a char array to its string equivalent. For example, see the VB.NET source code: Option Explicit On Option Strict On Imports System Module Module1 Sub Main() Dim chrM1(10) As Char &n ...Show All
