RichLeyshon's Q&A profile
Visual Studio Team System VS for DB professionals
I have a simple question. However, I can't find a simple answer anywhere on the Microsoft site in regards to it. We currently have Visual Studio 2005 Professional in our team of developers. My questions are these: Can we download an add-on into this present version to be upgraded to Visual Studio 2005 for DB Professionals If not (which I suspect), I assume we need to upgrade to the Visual Studio 2005 Team Edition for DB Professionals edition. Can someone tell me the upgrade price with and without and MSDN subscription Finally, all I want to know is what are the steps needed to upgrade our current version of Visual Studio 2005 Professional in order to use the software included in the Visual Studio 2005 for DB Professionals ve ...Show All
Visual Studio 2008 (Pre-release) Problem with type of a Binding expression in XAML
Hi all, when adapting the sample of http://fortes.com/2005/10/12/customizing-singlepageviewer-part2 to the actual WPF builds I always get a warning that the type of the Binding expression is wrong: ... <FlowDocumentPageViewer MinZoom="50" MaxZoom="200"> <FlowDocumentPageViewer.Template> <DocumentPageView Name ="PageView" DocumentViewerBase.IsMasterPage="True" PageNumber="0" /> <Slider Value="{Binding Path=Zoom, RelativeSource={RelativeSource TemplatedParent}}"> ... </Slider> </FlowDocumentPageViewer.Template> </FlowDocumentPageViewer> ... Compiling this results in warning: Warning 1 The 'Value' attribute is ...Show All
Game Technologies: DirectX, XNA, XACT, etc. PC deployment problem (may be off topic)
I've just completed a small pc-only xna app for a research group. It's a very simple flight "simulator" in which you can use all directx-compatible gamepads/joysticks. I'm using managed directx for the input, since xna only supports the 360 pad. The installer includes the latest directx runtime, xna framework and dotnet 2.0 framework. I've tested it on four local machines without encountering the problem at hand. My customer gets a 100% reproducible "file not found" exception upon starting the app. He's tested it on three machines. They all have XP SP 2, and he completed the xna framework install etc. The strange thing is that the first thing that shows up when you start the app is a form that doesn't load any ...Show All
.NET Development DataSet Dispose Question
In this example, a DataSet is instanced in (1), which is populated from another DataSet instanced in (2). Note that the Dispose method is called in both cases. Questions: A) What is happening here Two copies of the same DataSet is being copied to the memory B) Is it necessary to call the Dispose method of the (2) DataSet C) Wouldn't be more performatic pass the (1) DataSet by ref to the GetData method D) There's a best practice of this Thanks! (1) Private Sub SomeMethod() Dim ds As New DataSet Dim ob As New SomeClass Try ds = ob.GetData() Finally ds.Dispose() ds = nothing ob = nothing End Try End Sub (2) Public Class SomeClass Public Sub GetData() Dim ds As New DataSet Try ds = ExecuteDataSet ...Show All
Windows Forms Pass data from one Windows Form app to another?
Hello, I have an application that takes command line parameters. I have code within the Main() method that makes sure only one instance runs at a time. The initial running works great. If it is attempted to be run again, it will notice this and not run the new instance thus keeping the original instance still running. That works great too. My problem is, if they attempt to run a second instance of the app, thus passing in new command line parameters to that 2nd instances, I need those parameters to be passed to the original, running application. How can I do this Thanks, Kevin If you're using the 2.0 Framework you can use the StartupNextInstanceEventHandler to get this information. You can use the ...Show All
Visual C# C# how to nest complex data
Hi, I'm trying to set some properties where some are complex and I'm running into syntax issues that I can't figure out. My problem, I have a class called Item, it has properties such as Title, SubTitle, ReleaseDate and Principals. An Item can have multiple Principals, such as Actor, Director, etc. what I'v tried is ////outer class Item. . . private Principal principal = new Principal(); public List<Principal> Principals { get { return listOfPrincipals; } set { listOfPrincipals.Add((Principal)value); //above line cuases this error: //Error Cannot convert type 'System.Collections.Generic.List<Item.Principal>' to 'Item.Principal' } } //nested inner class Principal public class Principal { pr ...Show All
Visual C# Move Directory Across Volumes
I have developed an application designed to copy a directory on the D:\ drive to the C:\ drive, and I recieve a message that it can't copy across volumes using the following line of code: System.IO. Directory .Move( "D:\\WBWU" , "C:\\My Documents" ); Would that work, or am I wrong That's right. I guess one way would be to go through each file and sub folder and copy it that way. It's a bit hard but there is code to do this on these forums. It's to do with security permission apperently ...Show All
Windows Forms Button's default property
Hello, i've migrated from Win32 Delphi to .NET VS 2005 C# develpment lately. I would like to ask, if there's some functionality as a Delphi's button's "Default" property in the VS, please For example, there are edit and button on the form, i want to execute OnClick event handler, when user presses Enter key in the edit control. Thank you for any kind help. If you click on the TextBox and go to the Properties panel, look for a property that says AcceptsReturn. Set this to true to accept a return key. Then in the Properties panel toolbar, click the button that looks like a lightening bolt. That gets you to the control's click events. I think the one for the Return key is Enter. You would put ...Show All
Visual C# low CPU usage.
Hi I'm running an encoding application from my program , the encoding process CPU usage is low, it's starts with 60 and then fluctuate between 10-50. The strange thing is that when I'am running yahoo messenger, it's working fine, 80-90 and constant. Thanks. ...Show All
.NET Development Reflection - Strong Name
Hello, Pls any1 can help to answer my question. Why when ni use Reflection in my Exe to get the path like: Me .m_RunningPath = Reflection.Assembly.GetExecutingAssembly.Location 'including filename and i try to use the Strong Name to verify the Dll. I found that if i'm not using "Reflection" to get the path and direct call the dll, the same way of Strong name will work fine.However if i use reflection,even version wrong it also verify as approved. Is it anyway wrong or i can't use reflection for calling dll in my Exe. Thank you. So basically you want to prevent your EXE from loading Dlls that you didn't build. If you can narrow down where you load the assembly then checking strong ...Show All
Visual Studio Tools for Office ItemAdd handler applied only to last Folder Processed...help!
I want to attach an ItemAdd event handler to each folder within the inbox. Here is the code... namespace OutlookAddIn1 { public partial class myAddin { private Outlook.Items myMailItems; private Outlook.Folders myFolders; private Outlook.MAPIFolder theInboxFolder; private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.NameSpace ns = this.Application.ActiveExplorer().Session; theInboxFolder = ns.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderInbox); myFolders = theInboxFolder.Folders; try //HELP!!!!!! { foreach (Outlook.MAPIFolder _folder in myFolders) { //attach item event handler to every folder myMailItems = _folder.Items; myMa ...Show All
Visual FoxPro Scripting Visual Foxpro Database
I want to generate a database creation script that is Transact-SQL compliant for a Visual Foxpro database. The code generated by the Gendbc program will not run if I execute it in SQL Server for instance. Is there any way I can do this using Visual Studio 2005 Or is there a tool that can facilitate this process I am writing a program (in C#) to dynamically create a SSIS package that will transfer a Foxpro database to SQL Server 2005 Express and will need to generate a script dynamically when the user points to a source Foxpro database. Any ideas Visio Enterprise Architect will also allow you to forward engineer a Foxpro database and create a SQL compliant script. You may also want to look at Stratrafr ...Show All
Smart Device Development Sending and Receiving UDP Broadcasts from IP Address 0.0.0.0.
I am designing a network of small embedded modules each running Windows CE 5.0 and .NET Compact Framework. I have successfully built both UDP and TCP communications routines and are moving right along with the main functionality of the system. I have a "master" node that listens for BOOP requests on port 68. It has a list of valid MAC addresses for my closed system and will send back the appropriate IP address from its database if the MAC address of the sender matches one in the database. It is a closed system and the addresses should never change or expire, so I am just using BOOTP instead of DHCP. My problem is the IP Address of my module has to be something other than 0.0.0.0 to send the BOOTP request and to receive the ...Show All
Smart Device Development Built-in memory access in a MFC Smart Device App (dialog based)
Hi, I want to know how to get correctly the handler for access the built-in memory of a Pocket PC. I was trying this code in Visual Studio 2005 with C++ using MFC, Windows CE and Pocket PC 5.0 SDK: WCHAR szBuffer[255]; wcscpy(szBuffer, L" \\StoreMgr\\ "); wcscat(szBuffer, L"DSK1:"); HANDLE auxFile = CreateFile(szBuffer, GENERIC_WRITE|GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); I dont know if I am using the path and the name of the drive correctly because Im getting the next GetLastError message in execution time: The device is not accessable. Thanks for your time and help. The value of handler that you have specified is returned when there is some problem in accessing memo ...Show All
Visual J# Help me in Java!
Hi all. I am new in java and I interest in programing with J# for Mobile. Can it done with J#. please help me. Thanks. .NET will only run on Windows Mobile devices which have the .NET CF installed. remember - java is a competitor of .NET - .NET of course, leading the way by far. The views expressed are of personal view. ...Show All
