Deuce BOI's Q&A profile
Visual Studio 2008 (Pre-release) Newbie question about WPF
This may sound like a stupid question... but as I don't know very much about WPF I'll have to ask.. Which is better to be used for communication between the logical and presentation layer (WPF) - ObjectDataProvider or an ObeservableCollection... I don't know if I'm the one to answer that but here is a great piece on ObjectDataProvider http://www.beacosta.com/2006/03/why-should-i-use-objectdataprovider.html It may help a little. Later Mike Greenway ...Show All
SQL Server want to turn this sql query into stored procedure.
Hi ya, Here is the query: if (criteria == "All" ) { SqlDataSource1.SelectCommand = "select * from [tblproperty]" ; } else { SqlDataSource1.SelectCommand = "select * from [tblproperty] where " + item + "" + criteria.Trim() + "'" + txtSearch.Text.Trim() + "'" ; } } } Now the item contains any value from a combo box, the criteria would be having (All, =, <,>, like, <>) and txtsearch would be having the exact search field value. How can i transform it into a stored procedure so that I do not have to write 2 procedure plus i would be getting all the values back when the procedure executes Any ideas Without th ...Show All
Visual Basic Get Long FileName From Short?
I get a filename from my forms Load event, via Command() or My.Application.CommandLineArgs() (Both returning the same) How do I get the long filname from a short filename eg. Short: C:\Progra~1\MyFilew~1.jpg Long: C:\Program Files\MyFilewithalongname.jpg1 I have allready tried several snippets from the net, but none of then can handle files from a network like: \\Computer\Shared Folder\My file.mp3 Is there a functional .NET way to accomplish this Wauv! - This keeps getting easier and easier Just another reason, why we love the .NET framework ...Show All
Visual Basic Reusing Forms
Greetings I am converting a VB6 program containing multiple forms into a 2005.net VB program. In the old VB6 program I use a modal form and then I want to re-use the same form but but change some of the labels and make visible a control that was invisible the first time around. In the VB 6 version I was in, say, Form1 and executed the following code: Unload Form1 Form1.Show 1 This re-did the Load event and I used a counter to customize the form in its second life. Is there any way to do this simply in VS2005 VB I think this is exactly what I need. A few Questions from a true neophyte: 1. The Public statements (e.g. Public Class Form2 and Public F as Form 2 ) - are they module level code ...Show All
Windows Live Developer Forums Linked CSS Stylesheet Bug
Virtual earth maps don't seem to support CSS loaded from an external source. I'm not talking anthing tricking here...I just like to keep my website style data separated from the HTML. so if I load my style data using a simple link such as: <link href="mystyles.css" rel="stylesheet" type="text/css" /> the Virtual earth map will just ignore it. If instead I place the style info into my HTML file or DIV tag such as: <div id="myMap" style=" width: auto; height: 100px; position: relative;"> </div> Then the CSS declarations work. Can someone tell me how to workaround this bug You are mistaken. You can quite happily use ...Show All
Windows Forms combobox
Hi, At present I am populating a combo box in winform .net 2.0 It is populated using something like the following method: cbo.datasource=dataTable .datamember= .valuemember= How can I add an empty item in the very first item I tried something like: cbo.items.add("") before the .datasource line, but no change. This is required so that when the form loads, the combobox is populated but no item should be shown. Thanks Have you tried setting the SelectedIndex property to -1 after populating the data for example in c# cbo.SelectedIndex = -1; ...Show All
Visual Studio 2008 (Pre-release) Cannot insert a subclass if it is really stored in a table associated with its parent
Hi, I have been enjoying the incredible advances visible in the LINQ May 2006 CTP. I have followed the instructions in the DLink Designer Doc, creating a table Person with a type (discriminator) column for polymorphism. This table is to store not only persons but also employees, which have an additional property for Managers which of course is really a column of the Person table. The problem appears when I want to insert an Employee. I have created a form with the following partial code: ------------------------ NorthwindDataContext dc = new NorthwindDataContext(); BindingList<Employee> persons; private void Form1_Load(object sender, EventArgs e) { var results = from emp in dc.Persons ...Show All
Visual Studio Help Integration Generated Setup
Hi, I have created a setup program using Help Integration Wizardin Visual Studio.NET 2005. I have created a *.HxS file which I use in Help Integration Wizard. When I use this setup to install Help Files in Visual Studio.NET 2005 it correctly installs it. After uninstalling this setup when I try to run this setup programm again it runs fine but help files are not installed, though one sees the Help Topic in drop down box of Filter. When one chooses that filter it does show a hour glass icon doing something but than it come back showing no help file collections. I have no other instance of help system installed except Visual Studion.NET. Can anyone please suggest what should be done to get Help Setup working correctly Thank you. ...Show All
Visual Basic A question regarding aToolStripButton
Hi. I have a ToolStrip control in which I add in runtime 3 ToolStripButtons. If you see when you move the mouse over the toolstripbutton it appear a border and a background. Anyone have an ideea how can I make this background and border transparent Thanks Avy32, As you described, I create a new form and a ToolStrip control with three ToolStrip buttons on the form in VB Express Edition 2005. when running thhe form, I notice that the default border of ToolStripButton is Black and background color is close to yellow. Then I try to modify some certain properties, however, nothing happens to change the mouse over on the ToolStripButton control. After that, I try to change the ToolStrip control. There is a property called RenderMode, ...Show All
Visual Studio 2008 (Pre-release) Unable to view xbaps
Hi all, Ever since I installed the September CTP of thw WinFX Runtime Components, I've been unable to view any of xbaps that I'd been able to previously. I always get the following error "System.Windows.Serialization.BamlParseException: Error at element 'InstallationProgressPage' in markup file 'PresentationUI;V6.0.5070.0;31bf3856ad364e35;component/installationprogress.xaml' : Unable to find DependencyProperty or PropertyInfo for property named 'FocusedElement'. Note that property names are case sensitive.." That is of course just the first line of a long stack trace. Any ideas Hi Karen, I've just tried mage.exe -cc and still get the same problem. Yes I did have the July C ...Show All
Visual Studio Express Editions thanks renee
y,know I have just been thinking...... there are a lot of nice helpful people on here, who do all they can to help those in need of help or advice.......and I would just like to thank you all........sincerely renee has just walked me through creating a little project which I am very happy with..... it is not finished yet, and we have had a couple of disagreements, and perhaps we shall have some more.....but I would just like to say....thanks renee...for taking the time and effort to help.... it is greatly appreciated cheyenne ReneeC Why do you think that you are not liked the way Dave is You are number 1 on the top 10 list of answerers - even though you do not get paid for it (I initially took it for granted that ...Show All
Visual C# Calling C# DLL from a Java application (or even another C++ or VB app)
I have a C# DLL that needs to be called from a Java application. I suspect that this can't be done directly, but perhaps through a JNI wrapper to a C++ DLL which in turn calls the C# DLL I am looking for an answer that provides the simplest of examples that I can compile and test. (e.g. a C# class with a simple method that inputs one string and returns another....and those inputs and outputs are passed down and up through the layers). Do we need COM involved in this If so, how Sorry for the late response... I'm afraid I didn't get much further than this. I ended up moving on to something else, but will definitely return back to this area at some point. If I do, I'll be sure to try and p ...Show All
.NET Development Generic performance... benefit?
Hi, in every article about generics is written that they improve performance because no boxing, etc. occurs. So I wrote this simple test code and was astonished that the non generic part actually performs a couple milliseconds faster than the generic part About 59.8 seconds for the generic and 59.1 seconds for the non generic (avg. of 10 runs). Am I missing something here [code] using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Collections; namespace ConsoleApplication6 { class Program { static void Main(string[] args) { string s = ""; Test<string> test = new Test<string>("hi"); DateTime start = DateTime.Now; for (int j = 0; j < 1000000; j++) { foreac ...Show All
Visual Studio Team System Migrating from .net 1.1 to 2.0 with VSTS
Hello everyone, I am having an existing application developed on ASP.NET 1.1 platform. I am currently planning to migrate the existing application on ASP.net 2.0 with VSTS. Whenever we create a fresh development project in VSTS.. as per my understanding the TFS stores all the details regding the same.. but mine is a migration project hence.. 1) What all steps i have to take care of for successful migration to VSTS(.net 2.0).. 2) i am concerned about will I get all features of VSTS once i migrate to VSTS what will be happening to my design docs, requirement docs, traceability matrix waiting for your answer. Rakesh I think you've got more than just one thing going on here. 1. Conver ...Show All
Visual Studio Express Editions Getting data out of a database column
I've got a database connection via VB code and i've got my filter ... Does anyone know how to get the data out of record 1 and out of a certain column As you dont say whether you've actually populated your dataset, you mention you have a filter but without seeing code and vague description is difficult to tell what stage your at. A dataset comprises of one or more datatable which comprises of columns and rows collections. To access the value in the first table, first row Dim s As String = x.Tables(0).Rows(0).Item( "Col2" ).ToString Item can be either the column name or you can use an integer value as this is a zero based collection. Dim s As String = x.Tables(0).Rows(0).Item(1 ).ToString   ...Show All
