Software Development Network Logo
  • .NET Development
  • Windows Forms
  • Windows Vista
  • SharePoint Products
  • Smart Devicet
  • Audio and Video
  • Visual C++
  • Visual Basic
  • Visual FoxPro
  • Game Technologies
  • VS Team System
  • SQL Server
  • IE Development
  • Microsoft ISV
  • Visual C#

Software Development Network >> enron's Q&A profile

enron

Member List

SandeepLohani
steve_thomas
IBRAHIM ERSOY
Paukstis
Ardemican
Michele_T
Peter Feigl
saruna
Buster95127390
XNA Rockstar
danflu
myser59
Robert-UTS
jepptje
ratslav
NozFx
daimaku
JD Prasad
profesacutz
rnadella
Only Title

enron's Q&A profile

  • Visual Studio 2008 (Pre-release) Sorting an ObservableCollection<T>

    I was recently using a List<T> to keep track of my data, but we had to move to an ObservableCollection<T> because it will eventually be used in binding to a UI. I was using the List<T>.Sort(IComparer<T>) to sort the list, but it appears that ObservableCollection<T> does not implement this. Is there a way to sort it or do I have to do that manually It seems odd to have to redo this work that clearly is already implemented in .Net but I can't seem to find a way to do it. I figured it was worth asking about. Thanks for the help. You can write your own sorting logic, something like that: public class SortableObservableCollection <T> : ObservableCollection < ...Show All

  • SQL Server How do I set up a linked table in MSSQL 2005?

    I am new to SQL Server. I have a fox pro database that is part of a vendor's product. I want to link some of the individual tables in the foxpro database in my SQL database. Can someone point me to a tutorial or example on how to do this Thanks! You can access the foxpro tables using the OPENQUERY function example select * from openquery(LinkedServer, 'Select * from foxprotable') Details on setting up linked server and OPENQUERY documentation can be found at the following link: http://msdn2.microsoft.com/en-us/library/ms188427.aspx Also you can try posting your question in the MSDN Forums Visual FoxPro Visual FoxPro General forum. Thanks Suroor ...Show All

  • Visual Studio Express Editions how to get hardware IDs of system

    how to get Hardware ID,serial no,model no of pc Harddisk,Processor,motherboard etc.... you could use WMI for this approach. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=845223&SiteID=1 be sure to add a reference to System.Management and import the namespace. I would also suggest downloading this cool tool which allows you to go through the WMI engine and go to specific classes and get information you want and it also generates VB.NET/C# code for you: http://www.microsoft.com/downloads/details.aspx familyid=2CC30A64-EA15-4661-8DA4-55BBC145C30E&displaylang=en ...Show All

  • Windows Forms How to export data from GridView to plain text file?

    Hi, I need to export data from GridView to plain text file, but I have no idea about this. Does anybody know how to do this Many Thanks. I tried to use this code and I could not make it work.  Where do I put it    I am new to .net.  I and using VB not c# can you rewiter this code in VB   Many thanks for your help.     ...Show All

  • Visual Studio Express Editions error connecting to database

    I am using VC# Express and trying to connect to a SQL 2000 database. The error message when I compile the application is as follows: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) Is there anyway to connect to SQL 2000 with VC# Express or is this a waste of my time. using System; using System.Data; //ADO.NET namespace using System.Data.SqlClient; //Use SQL Server data provider namespace using System.Collections.Generic; using System.Text; namespace Da ...Show All

  • SQL Server 0xC02090F5 DTS_E_DATAREADERSRCUNABLETOPROCESSDATA

    I am moving over 100 tables from mainframe to SQL Server 2005 using SSIS all but 2 tables have worked to some degree. 2 of the packages when executed write 0 rows to SQL Server becaue they are getting this error 0xC02090F5 = DTS_E_DATAREADERSRCUNABLET OPROCESSDATA I have looked at the definitions on the mainframe and SQL Server side all looks good. I have looked at the data on the Mainframe side and there is nothing unusual. The Mappings are simple one to one mappings At one time I could even preview the data while in designer building the package but when the packages for those 2 tables are executed I get the same error. Other tools can read the data. Does anyone know what could possibly be wrong ...Show All

  • .NET Development why webservice are running on aspnet development server: can we change this

    I have a simple query here: I downloaded a sample webservice from microsoft along with a bat file which creates its virtual library on my IIS. Now when i build this webservice, asp development server(by default) gets started and webservice gets published at some other port(e.g http:localhost:94334:/testwebservice) and place(//debug/precompiled..). Now if i want to use this webservice in my windows application , i press add webreference and search for webservices on my computer , there i can't get this webservice. Can somebody please let me know as to what settings needs to be done so that webservice doesn't start in aspnet development server and instead should be created and run inside the IIS. Thanks and Regards ...Show All

  • Windows Forms DataGridView column filled from lookup table column

    I have two tables Company and Status. Company has a foreign key into Status – Status is the lookup table with two columns: ID and StatusName. I need to build a DGV that will provide a read-only list of what is the Company table, plus the StatusName for each record. All DGV columns are read-only textboxes. The Dataset already holds both tables, but not the relationship between them. The DGV columns are already set up to show records of the Company table but the Status column only shows the numeric foreign key value. Any chance I can do this without a database View or a stored procedure Here’s a bit of code. bindingSource1->DataSource=dataSet1->Tables-> default ...Show All

  • Visual Studio Express Editions Removong Projects

    How can I remove projects from MS VB2005 Express Edition. I removed them once before using the Registry, however, I have forgotten that procedure. Any help appreciated. To remove the project from a current solution right click on the project name in the solution explorer and then click remove (as ahmedilyas stated)   To remove the file from MRU list... Edit the registry at your own risk....take a look at Software\Microsoft\VisualStudio\8.0\PrijectMRUList ...Show All

  • Visual C# How can I parse: name="My Value" into a Dictionary? (or other collection object)

    Let's say I have a long string like such: string s = "value=\"Hello World\" value2=\"Hello Goodbye\""; How can I put that into a collection object (eg. dictionary ) so I can access "value" and it would equal "Hello World" (WITHOUT the quotation marks) So... value = Hello World value2 = Hello Goodbye I'd like to access it something like: obj.GetValue("value") and it would return Hello World no worries, in future, its best not to delete the topic (unless its a multiple post) as other users who may have a problem like you had, could find the solution here :-) glad you got it ;-) ...Show All

  • Visual Studio 2008 (Pre-release) Dynamic MenuItems with Images

    I have the following Menu definition. However instead of showing the text of the filenames I'd like to see the actual Images. I can do this by hardcoding the <Image Source=""> inside a <MenuItem> without the binding but I am unsure how to do it with either a Style or Template with the binding. Any help would be awesome. Thanks in advance <Window x:Class="MenuStyles.Window1" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml " Title="MenuStyles" Height="300" Width="300" > <Window.Resources> <ResourceDictionary> <XmlDataProvider x:Key="menuItemData" XPath="Items/Item"> <x:XData> <Items xmlns=""> ...Show All

  • Internet Explorer Development Toolbar Button Handling

    I've added a button to the toolbars. I've implemented it as a COM object. It works. (enough showing off) I'm able to get IShellBrowser and IShellView Interfaces - but they don't really help. ref: http://msdn.microsoft.com/library/default.asp url=/workshop/browser/ext/tutorials/button.asp If your COM object needs to access the Dynamic HTML (DHTML) Object Model of the page that Internet Explorer is currently displaying, you must implement IObjectWithSite . I want to access the html source and the url being displayed. Where can I access this info Check out http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnwebgen/html/bho.asp It shows how to get the html sour ...Show All

  • SQL Server Always Fit-To-Page

    All of the reports we have deployed (over 100) are wider than a standard letter sized page. In order to print them correctly, the Fit-To-Page option must be selected in the print dialog. We desperately need a way to make this automatic. I know our users have killed a forest with the paper printed when they forget to select the option. If anyone knows of a way to make the setting of print options like Fit-To-Page automatic or programmatic please respond! Thanks! Mark Go to Control Panel and go to properties of the printer and click Printing Preferences. For Paper Output, select Letter and click OK. Just try and let me know. Shyam ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Realtime debugging text?

    Hello. All I`d like to do is display crude text somewhere inside the game screen. Can I do this without having to load/use any type of font. The `Print` commands equivelant I suppose It`s just so I can see a variable changing during play. Please excuse this possibly mundane question but I`m fairly new to all this. -Daz. Console.Write() does not add a newline; you need Console.WriteLine() to actually flush a line to the debugger output window. Also note that the text will be sent to the "Output" window in the C# express solution -- not to your game window. If you want to draw text in a game window, then you must use some form of geometry. Either a texture with the alphabet in ...Show All

  • Visual C++ MessageBoxW error

    Hello, Im trying to do a basic Winsock example using VC++ 2005 Express. It keeps coming up with an error to do with "MessageBoxW" and cant convert parameter 2 ("const char [22] to LPCWSTR" What am i doing wrong... Here is the code: #include <stdafx.h> #include <windows.h> #include <winsock.h> #include <stdio.h> #define NETWORK_ERROR -1 #define NETWORK_OK 0 void ReportError(int, const char *); int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmd, int nShow) { WORD sockVersion; WSADATA wsaData; int nret; sockVersion = MAKEWORD(1, 1); // We'd like Winsock version 1.1 // We begin by initializing Winsock WSAStartup(sockVersion, &wsaData); // Next, create th ...Show All

©2008 Software Development Network