chakravarthy_b's Q&A profile
Visual Studio 2008 (Pre-release) WPF: How to Close Parent Browser Window of WPF windows application
Hi, I have WPF windows application deployed over network. When I run this application, framework opens the browser window and hosts this application in browser. In my WPF application I have provided a <Close> button which is suppose to close my application along with parent browser window. On <Close> button I close my application using System.Windows.Application.Current.Shutdown() Now the problem is, my application get closed, but the Browser Window which hosted my WPF windows application does not get closed. Browser window remains alive with fucus on it. Please let me know, how I can close both, application and Browser using <Close> button in WPF windows application. Thanks, Mahesh Declare the HTML fi ...Show All
SQL Server Report Title
I have a report with three datasets and I would like the report title to adjust dynamically based on the column width of each dataset's report. I would appreciate your help in making this change. ...Show All
Windows Forms Fade in/Fade out
I'm making a ribbon UI control which is coming along quite nicely. However, I face a problem in that I can't figure out how to acheive the fade in/fade out effects the ribbon groups feature. How do I do it Is there some kind of non-form control that supports opacity Found a solution using ColorMatrix: http://vb-helper.com/howto_net_blend_animation.html ...Show All
Visual C# Assign a bmp resource to a bitmap variable
I create a resource bitmap as bmp. I can not assign this resource bmp to a Bitmap variable. What I would like to do is change or swap between two bmps every second in a picturebox image. thanks in advance for your help and time, Edward ok the problem was that the image was not embedded as a resource. After changing it to be embedded as a resource, everything worked fine. Once embedded, the resource name will be in the format of, generally, : applicationName.filename.ext if its in a folder (1 folder deep): applicationName.folderName.fileName.ext remember, the folder name and filenames are case sensitive ...Show All
SQL Server SSRS 2005 Exporting a report to .xls containing a subreport
Does SSRS 2005 have the issue fixed as to when the user exports a report to .xls format and the report contains a subreport In SSRS 2000, if there was a subreport in the main report, and the user exported the report to .xls, then it would just display an error message. Thanks! So, basically, in 2005, the .xls format export still does NOT work for the subreport It works with Crystal Reports XI, but I'd rather stay with SRSS.....oh well...bummer. Thanks! ...Show All
Visual Studio Team System Tracking recurring taks (eg. meeting) - best practice
Hi, What's the best practice for tracking recurring task, for example, meeting with customer, through TFS Do we need to add new task every time we go to the meeting, or shall we use same task for all meetings Regards, Rasinec Ninoslav I would suggest using the same task and making a log of discussions in its history. After each meeting, the task can be resolved and a scheduled job could be written to activate those tasks at regular intervals if they are not active already. ...Show All
SQL Server query engine error
Can anyone tell me why I am getting this error when I try to view my report: Query Engine Error: '21000:[Microsoft][ODBC SQL Server Driver][SQL Sever] Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <=,>,>= or when the subquery is used as an This is a problem in the SQL-query. Like the error says, the query has a subquery that returns multiple values (more than one row and column). Subqueries like that can't be in the column list or after the listed operators. Make sure that the subquery returns only one value. For example, next query won't work, as the subquery would return many rows (assuming there are many rows in the Suppliers-table): SELECT Pr ...Show All
Visual Studio Express Editions View source code!!!
Hey, how can i view the source code on a webbrowser ok. 1) did you navigate to a webpage first in the webbrowser Me.theWebBrowserControl.Navigate(" http://www.microsoft.com ") 2) did you do this to display the code in a textbox after the page was loaded Me.theTextBox.Text = Me.theWebBrowserControl.DocumentText remember, you have to wait until the contents of the webpage have been loaded in order for you to view the source/code of that site otherwise you will get nothing, as you currently maybe experiencing. Select the webbrowser control in designer view. View the events (lightning icon in the properties window) and double click "documentCompleted" to create the document completed event so it will ...Show All
Visual C# Differences between 2003 and 2005
Apologies if this is a FAQ - I'm sure it is but couldn't find the answer. I use C# under VS 2003, and am going to upgrade to 2005. Can someone point me to some doc on what the major new features are that I'll be getting after I upgrade Thanks! - Dave Here's a list of what's new in Visual Studio 2005 . If you are specifically interested in what's new for C# 2005, here's that documentation too. Genevieve Orchard - C# Documentation Team ...Show All
SharePoint Products and Technologies text is not formatted correctly in MOSS 2007 survey
Hello. We are using MOSS 2007 surveys, but we have found that if a question holds linebreaks, the breaks (newline) will not show on the question. It will show if i would edit the question, but not when a user responds to the survey. It seems to me that this is kinda weird, that a survey can't take new lines. It seems that the line feeds are save in the database, linefeed are converted to \n\r, which would be line feed and carriage return, so it should be there. Does anybody have a solution to the problem. Mats Months ago when I hit this same issue, our MOSS experts told me that I should use InfoPath Forms instead. They suggested that is the direction Microsoft prefers. If so, why ...Show All
Game Technologies: DirectX, XNA, XACT, etc. "The project type not supported by this installation"
Any clues as to the cause of this error whenever I open templates Thanks for the reply. Sorry for not explaining it fully, but it actually occurs both when I try to open a project, or create a new project from one of the provided templates. I've tried reinstalling several times too, but with no luck. :S ...Show All
Visual Studio 2008 (Pre-release) Listview memory leak :-\
I think listview have a memory leak since my application keeps eating memory... I'm making a little task manager which updates itself each 1 second. I bind a bindingList to a processView processView is a listview. blprocesses is bound the processView listView blProcesses = new BindingList<Processes>(); processesView.ItemsSource = (IEnumerable<Processes>)blProcesses; Here is the xaml i used for the listview <ListView DockPanel.Dock="Top" Name="processesView" Loaded="on_processViewLoaded"> <ListView.View> <GridView AllowsColumnReorder="True" ColumnHeaderToolTip=& ...Show All
.NET Development Help trying to Insert to Access DB with error No value given for one or more required parameters.
I am trying to delete all the quotes from a csv file and then grabbing each line as a row in Access' database. Right now I am stuck after hours of research about the error: No value given for one or more required parameters. I have tried using @companyName and also the question mark. Here is the code that give me the error: Public Sub InsertLine(ByRef line As String()) Dim dbname = "dbase1.mdb" Dim dbpath = Server.MapPath("access_db") Dim commandStr As String, dbcomm As OleDbCommand Dim conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ dbpath & "\" & dbname) conn.Open() commandStr = "INSERT INTO [Contactsdb] ([company ...Show All
Visual Studio 2008 (Pre-release) Simple arithmetics in XAML
Hi everybody. I am wondering, if there is an easy method to use simple arithmetics in XAML without the need to go into code-behind for every simple calculation. I.e. I would like to write things like this: Width = " {TemplateBinding ActualWidth} *1.1 " or Margin = " - {TemplateBinding ActualWidth} *0.1/2 , - {TemplateBinding ActualHeight} *0.1/2 , 0, 0 " Is this possible in some way Thanks, Michael. Thank you very much for this mighty converter. This is a very useful extension for XAML design! I had to change a bit in order to make the number styles consistent, but now it works very well; including the margin code. The changes to the Convert method are as follows: us ...Show All
Visual Basic DLL Creation
I want to create a DLL for editing HEX Data I want that if it is referenced for editing any bytes you need write this line: WriteB (File , Seek, Byte) File= Files to open with FileStream ( Imports Sytem.IO is necessary obviously) Seek= For moving the pointer in a offset Byte= Byte to write in the Offset Now if i want to edit a byte i need write this code Dim str As New FileStream(OpenFileDialog1.FileName, FileMode.Open, FileAccess.ReadWrite) str.Seek(&H18D, SeekOrigin.Begin) str.WriteByte(CByte("&H" & ComboBox3.Text)) And i want to create a Function in the DLL Imports System.IO Public Class Class1 ' Start Function Public Function Nome_funzione As CallType ......... ...Show All
