Robin P's Q&A profile
Windows Forms Why does the taskbar lie???
Ok here is the question, I have an application running in c# 2.0, the application has a main form called mainfrm, i show mainfrm from program.cs by calling Application .Run(new Mainfrm () ); So far so good, the Mainfm opens another form by using newfm.show(), the newfrm has showintaskbar set as true, so it will show. So here is the bit that windows\winforms gets wrong, when i click on newfrm in the taskbar and then click on the mainfrm window, the newfrm button is still selected in the taskbar, ie the button is still shown as depressed in the taskbar, if i then click on the newfrm button in the taskbar the newfrm form minimizes. My problem here is that the user clicks on the button to maximise/active the window, since the progr ...Show All
SQL Server .Net Framework error message when starting SQL 2005 Management Studio
Has anyone ever recieved an error when starting the Management Studio "Unhandled excpetion has occurred in a component in your application. "Input String was not in a correct format" I click continue and I can still use the manager;however, it gets annoying. The details of the error are very long and too much to add to this thread. Any ideas never had that but I would probably start by repairing the .NET Framework and see how that goes would be nice if you could post the error message, even if it is long ...Show All
.NET Development Download Of Binary Files??
I am trying to download files in VB 2005 Asynchronously (To avoid UI JAM) , I need to HTTP POST the filename to the server and the file is being supplied as server response. Pls. guide. This is what I am currrently using but its OK only for Text, Html files. Public Sub PostData(ByVal strURL As String, Optional ByVal POST1 As String = "") ' Declare a variable named client of type WebClient. Dim myWebClient As WebClient ' Instantiate a WebClient object and assign it to the 'client' variable. myWebClient = New WebClient ' Add handler to process theWebClient's DownloadProgressChanged events. AddHandler myWebClient.UploadProgressChanged, AddressOf UploadProgress ' Add handler to process theWebClient's DownloadComple ...Show All
Visual Studio On Dual Boot XP/Vista, VS 2005 partially installs on VIsta, but breaks part of XP install
Weird as it may seem, On Dual Boot XP/Vista, VS 2005 partially installs on Vista, but breaks part of XP install. On the XP partition (C:) running VS 2005 with SP1, when I try to create a WebService, it says that it cannot find its path (D:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\Web\VisualBasic\1033\WebService.zip\vstemplate) my first reaction was ... ON D ! ! Sure enough, it was not there. Yesterday I (tried to) install VS 2005 Professional (same CD as for C:) on the D: partition running Vista. First I tried to see how Express Developer worked, and it seemed okay, so I tried VS 2005 Pro. I used the same CDs as for my original installation in 2005. At a certain point the installer asked me ...Show All
Windows Forms Binding multiple controls at once
Hi! I would like to see a feature that would enable me to bind multiple controls at once to properties in my businessobject. For instance, say that I've put 10 textboxes on a form. Which I want to bind to properties in my businessobject, e.g. first name, last name, address, etc. for a customer-object. Then I would want to select all these controls and hit a "Bind all..." button which would bring up a dialogbox that had two lists in it. One list would contain the "Find property"-standard databinding dialog and the other would contain my properties on a specified businessobject. The simplest way would be to just drag-n-drop the control to the matching property and voila... Another feature could be a "Quickbind all... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My control component
Hi! Please look at my component control that i've finished few hours ago :) I'd like to hear comments and suggestions on it, so i can improve component :) Those of you who interested follow the link: outback.front.ru/ControlComponent.rar ...Show All
SQL Server ATL & MFC vs SSIS
Hi All, I'm trying to call ATL COM component with MFC support from SSIS Custom Component, but I can't show netiher the GUI (MFC Property Sheet) neither to call methods from my ATL component. There is no error or at least Inteligense Studio doesn't report errors. What I'm doing wrong Thanks in advance! Regards, Svilen Varbanov Wow, there's really not enough information here to know what's wrong. What errors are you getting How are you attempting to call the ATL code Why The question is really unclear, so the answer will likely be muddled. You should generate a primary interop assembly that you then reference and call in your script. Kirk Haselden Author "SQL Server Integration Services" ...Show All
SQL Server Open url in a new window
hi, I got a problem with reporting services 2005. I have to create a link activated by clicking on an image. In the image navigation properties I inserted the link in "jump to url" but the problem is that no new window is opened, the url is opened in the initial report page. I tried to use jscript this way: javascript:window.open("myurl","", "scrollbars=yes,width=800,height=600,left=0,top=0"); but in this case the url opens in a new window but a blank page is shown in the report page. How can I solve this problem and open the url in a new window without changing the report page Thanks in advance and sorry for my english Adding more info to above. On my development machine (XP/SP2) ...Show All
Windows Forms Put a glass panel over form while processing?
Dear all What i would like to achieve is placing something like a glass panel over the form while is doing some processing and show a proress bar. Little something like that , which would informa the user that something is happening:) Any ideas or advice Is there any code examples Cheers Why not use another form rather than a panel. Set the opacity to 1%, give it the same text, size and location as the form doing the processing. You could also make it TopMost if you wanted to be really annoying. ...Show All
SQL Server Are we not able to edit stored procedures in SQL express?
Have sql 2005 express installed. Running a database for a DotNet Nuke site Opened Microsoft SQL Server Management Studio Express. Navigated to CASPORTAL\Databases\DotNetNuke\Programmability\Stored Procedures\dbo.AddUser Right clicked dbo.AddUser and selected "modify" This allowed me to paste the additional code into the right hand window/pane, however when I try and save this it wants to save it a seperate file /query. Is there something I don't understand am I not able to edit the original stored procedure Hi, thats a common minsunderstanding. Hitting the disc symbol will save the data, what you will have to do is to execute the stored procedure within this pane. T ...Show All
Smart Device Development Deploy Problem
Hi, I have a mobile device project which is referenced to another project. both projects includes some external files. When deployed these files are included in the bin folder but when i deploy only the files from the mobile device project is deployed to the device. how can i configure so that it deploys files that is included in reference projects as well regards, rnv I'm not suggesting making copies of these files in another project, I'm suggesting adding original files. You would only have one copy of each file so if it's changed in one project it will be changed in another because it's the very same file. To do so choose “Add as link” instead of normal "Add "in “Add existing item” dialog. ...Show All
Visual Studio Unable to debug unmanaged C code
Hi, I have a solution in VS2005 that comprises of a main vb.net project and an unmanaged C DLL, the linkage being via dllimport. I have my vb.net project set to allow debugging of unmanaged code and my C project set as mixed, but no matter what try I cannot get the source displayed when I step into the C DLL. Any ideas I don't recall that it said why it failed, however I did manually add in the location that the dll is built to which include the pdb file. What files will it try to load I can't check the screen until tomorrow now infortunately. Given that there is no error, or the error is not obvious what would be the next steps, what sort of file needs to be generated to contain the s ...Show All
SQL Server Importing Online XML file into SQL Server 2005 tables – no data transferred
Does anyone have any great suggestions on how I can import an online XML file into an SQL 2005 table So far I tried to accomplish it with SSIS Data Flow Task where my source is XML Source (Data access mode: XML file location; XML location: URL, Use inline schema = True). This set up properly identified the columns to be imported. I used Copy Column data flow transformation task to load data to OLE DB destination table that has same structure. When I run the task it does execute with no errors, however the table remains empty. It looks like I am failing to read the actual data. Do you have any suggestions I am willing to go around this approach with stored procs/com/you name it – just make it work! ...Show All
Visual Studio Tools for Office Filling out word template using VSTO and C#
Hello I'm pretty new to VSTO and working with office documents from the programming side of things. What is the best way to fill out an existing word template, eg. with customer and product information using C# The whole process need to run in the background of a larger applikcation creating different documents containing different information. Can someone point me in the direction of samples or walktroughs explaining how to do this. I have searched a bit, but not really found what I was looking for. -- Sparre The simplest way is with the VSTO Bookmark, which allows you to set text strings in your document programaticly. Here's an article that covers the VSTO Bookmark, among other Word programming ...Show All
Visual Studio 2008 (Pre-release) How to get reference to UIElement that has been loaded dynamically using XamlReader
I have converter class that loads in Dynamic UI. I have tried using this.FindName( ) to get a reference to one of my new UIElements but the result is only null. It only seems to work on UIElements that are static that haven't been loaded at runtime. Any ideas Rod If the object returned from XamlReader.Load is also a UIElement (or any other kind of DependencyObject), you can do this: UIElement fooElement = NameScope.GetNameScope( returnedObject ).FindName("Foo") as UIElement; More generally, XamlReader attempts to register names with a name scope. If the root object in the Xaml implements INameScope, that will be used. If not, but the root object is a DependencyObject, XamlReader will ...Show All
