Chiarigos's Q&A profile
Windows Forms Handling resolution
Good day, I was writing on a machine with a high resolution machine but after which I switch to a lower resolution, part of the screen is blocked. How do I ensure in C# that ther resolution is always made display correctly Thanks. Regards Alu You can use Anchors to make controls resize themselves with their container. You can also use the TableLayoutPanel to set the size of objects such as DataGrids and multiline TextBoxes as a percentage, rather than a fixed size. If there's still no way to fit everything on the form at the lower resolution, use a tab control to break it up into pages. Ideally, you should set a minimum resolution necessary to run your application, and design your forms at a size that will be usable at th ...Show All
Internet Explorer Development Mouse event handling problem in BHO
I'm building a browser plugin that responds to mouse events; I'm using C#, IE7, Windows XP, and Visual Studio 2005. Having some problems with mouse-click handling. When I get my DocumentComplete event, I register the onclick handler for a few elements on the page and - mostly for debugging - I register the onclick handler for the document itself. That is, I call IWebBrowser2.Document and cast the result to an IHTMLDocument2, then cast that to an HTMLDocumentEvents_Event, then add the onclick handler, like this: IHTMLDocument2 doc = m_pWebBrowser2.Document as IHTMLDocument2; HTMLDocumentEvents_Event docevents = doc as HTMLDocumentEvents_Event; docevents.onclick += new HTMLDocumentEvents_onclickEventHandler(OnDocumentMouseClick); Then I ...Show All
Visual Studio How to get the current model inside my custom tool
Hi, I am creating a custom tool as described herein http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=67666&SiteID=1 . Inside the GenerateCode method, I would like to access my model. More specifically a property from my root domain class. I can access the ProjectItem and I tried the following post http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=111349&SiteID=1 but without any success. Does somebody has a suggestion thx, Hi Christoph The threads you mention are definitely the basic way to go. The other approach is to just create a new Store instance and load your model file again yourself - this approach will work whether the designer is open or not. However, if you ant to go with the in-memory app ...Show All
Visual C++ String Table?
Hello, I have created an empty project, and managed to write some code that will create an empty window... When I was experimenting, I thought that keeping ALL the text within the program in a string table (as a resource)... Would that be good Is that too inefficient Anyways this this the code for the window: =========code============== #include <afxwin.h> class MFC_Tutorial_Window :public CFrameWnd { public: MFC_Tutorial_Window() { Create(NULL,_T("Test Window")); } }; class MyApp :public CWinApp { MFC_Tutorial_Window *wnd; public: BOOL InitInstance() { wnd = new MFC_Tutorial_Window(); m_pMainWnd = wnd; m_pMainWnd->ShowWindow(SW_SHOW); return TRUE; } }; MyApp theApp ; =========code========== ...Show All
Visual Studio Team System Label information when viewing file/folder history
Hi, Can I get label information when viewing file/folder history Thanks, Michael. Not in the UIs we've built for v1. Here's a quick explanation why: http://blogs.msdn.com/bharry/archive/2005/11/18/494439.aspx I've seen some 3rd-party UIs that incorporate label information. I know we also plan to add it in future versions of the product, but I don't think we've decided how it should look yet. As you can tell from the blog post, properly representing labels in a linear history is hard. If you have any ideas, feel free to share them here or on Connect. ...Show All
Visual Studio Tools for Office Errors loading add-ins created with VSTO SE
Hi, I have a problem that was not there in VSTO V3. But now after installing VSTO SE Beta the addins that works in Office 2007 Beta2 CTP are no longer working in Office 2007 Beta2TR. Word Options Add-ins list it under inactive add-ins. In COM Add-ins it says under Load Behaviour " Not Loaded. A runtime error occurred during the loading of the COM add-in ". The errors is not displayed even though the " Show add-in user interface errors checkbox " is checked. If the VSTO project is executed by clicking the debug button the addin work perfectly . The error only occurred when installed by double clicking the setup.exe in debug folder or by right clicking the Setup project in VSTO and installing it. This is true for addins created f ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem using SurfaceFormat.HalfVector2
I've been trying to adapt the C++ DirectX motion blur sample to XNA. This sample works perfectly on my NVidia 7900GT. In my own program I successfully create a "velocity" render target with SurfaceFormat.HalfVector2. Unfortunately something goes wrong with the graphics system when I set this with SetRenderTarget() - the program doesn't hang, it just refuses to render anything after that. This is very strange because I don't even have to use the blurring pixel shader (which in turn uses the velocity render target's texture) for the problem to exist. The act of calling SetRenderTarget() with the HalfVector2 render target seems to cause the problem. If I use SurfaceFormat.Color for the render target the program renders as normal, th ...Show All
Visual Studio 2008 (Pre-release) saving tmodel in uddi services using uddi sdk
I am having this problem while trying to access my uddi service on windows server 2003. I am getting the exception http status 401: unauthorized. I am providing the correct credentials as i am using the same credentials to access the uddi services through web UI and it is workinf fine but i cannot do it programatically. I came to know that i need to set the authentication mode myself programatically for the web proxy but that didnt help either. I am also posting my code to you. may be you can guide me somehow. I will be really thankful. Publish.AuthenticationMode= AuthenticationMode.UddiAuthentication; WebProxy myWebProxy = new WebProxy(); CredentialCache myCache=new CredentialCache(); myCache.Add("e ...Show All
Community Chat Is the new java goin to nail down .net ???
hello guys , One of my frnds told me that the new java is goin to nail down .net.Is this true Regards jr Web Developer www.iitjobs.com nobugz wrote: Java has always had a sizable lead over .NET. I doubt the new version is going to change that unless they really messed it up... not according to Anders Hejlsberg ... http://www.regdeveloper.co.uk/2006/11/14/c-sharp_hejlsberg/ "If I look at where the innovation is occurring, I would venture to say that we're being a bit more innovative these days than is the case in the Java world," he said. "Java has generics, but they chose to do it in a different way where it's really just compile time sugar that goes away, ...Show All
Software Development for Windows Vista Installshield OneClick Web Install does not work on Vista Internet Explorer
We have an Installshield OneClick Web Install program. First IE asked me to install the Macrovision Corporation ActiveX control, I did that. Then I allowed the Setup.exe by Macrovision Corporation. Still it does not work. It gives an error message on the page "Setup cannot run from this web page. Verify you have the correct browser settings, click Refresh, and select Yes when asked to install the InstallShield Wizard". I changed IE intranet settings to low, turned off Protected Mode; still it does not work. It only works if I turn off UAC which I don't want. Let me know if there is any solution to this. Thanks, Sangram. ...Show All
Visual C# Prevent ComboBox DropDown Under Certain Conditions
I would like to display a messagebox and prevent a ComboBox dropdown from opening under certain condiitons. I attempted to set the "DroppedDown" property to false in the "DropDown" event but it seems that the actual drop down occurs after the event is exited. Any ideas/suggestions Unforunately, I need the user to be able to edit the text in the box, but, if it's being edited, not allow them to select another item. That's why I can't just set it to disabled. It's odd I know but that's what's being requested. I guess I can temporarily change the style to simplelist but I hate that it loses the dropdown look. ...Show All
Software Development for Windows Vista Collection of custom type desing time support
I have a simple data class: [ Serializable ] public class SnapshotTableConfiguration { public string SourceTableName; public string DestinationTableName; public string [] ColumnNames; public SnapshotTableConfiguration() { } } And a simple Collection for the data class: [ Serializable ] public class SnapshotTableConfigurationCollection : List < SnapshotTableConfiguration > { public SnapshotTableConfigurationCollection() : base () { } } And a workflow: public static DependencyProperty TablesProperty = System.Workflow.ComponentModel. DependencyProperty .Register( "Tables" , typeof ( SnapshotTableConfigurationCollection ), typeof ( ...Show All
.NET Development My.Computer.Network.UploadFile Fails with a 404 Not Found Error
I am trying to upload a file to my web server in VB 2005. When I execute the following code, I get a 404 Not Found error. That doesn't make sense, considering that I'm uploading and not downloading. My .Computer.Network.UploadFile(strLocalFile, strRemoteFile, strUserName, strPassword, True , 100) For the value of strRemoteFile, I've used the full path and file name on my server, just the path, and finally, just the server address. Nothing seems to work. The FTP code I used in VB6 works fine. Can anyone tell me what's wrong Thanks, Mike Actually, I discovered the problem late last night. I was using http as the protocol instead of ftp. The code wouldn't know where to store the file on the server without a path, unles ...Show All
SQL Server Report Builder and optional parameters
Hi, Is it possible to create optional parameters in Report Builder An *ordinary* parameter is created by marking a filter expression as "prompted". At run-time, the user will be asked to provide a value for this parameter (or accept a default value if it is available). This works fine. What I want is to let the user choose whether to provide a value, or leave the parameter empty. In latter case, the reports should not take the parameter into account and display all available data. Example: I have a list of products grouped by the name of the supplier. I want users to be able to see the entire list, or narrow it down to one supplier only. So I create a free text parameter that will contain a part of the supplier's name. I ...Show All
Windows Forms How can i to share my own assembly?
Hi, i whote a simple component inherited from TextBox class. This component is inside MyTextBox.dll assembly. When i install my application (Winforms/VS2005/C#) on a computer, i have to put my assembly in the same directory. I want put my assembly in " C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 " to it work with all applications, but i tried this and this doesn't work! How can i do to do my apps find my assembly Sorry for my english. Thanks. to share your assembly install it into GAC (Global Assembly Cach) look at How to install an assembly into the Global Assembly Cache in Visual C# to know how to install assembly into GAC ...Show All
