LeeroyB's Q&A profile
Visual C# Changing Type during runtime
In response to my previous thread which can be read here , I've decided to create a new thread because although I mention this problem in my previous thread, this is a different subject. To recap, I have a class Shape, which will have many inherited types. In a class Physical, I have a Property which returns a Shape object. Many classes inherit from Physical, and each inherited class will need the capability of allowing the user to change the Shape Type during runtime. I came up with a decent solution, but was wondering if anybody knows, or can think of a better way(s) to solve this: [ BrowsableAttribute ( true ), ReadOnly ( false ), TypeConverter ( ty ...Show All
Visual Studio Express Editions noob question: what do windows applications use as a db?
sorry but I have this totally noob question. I'm completely new at writing windows applications, and want to learn. I have a book (sams learn in 24hours), and it briefly goes over ADO. My question is, besides writing to a flat txt file, what do windows applications use as a database Obviously your standard XP desktop doesn't have a db server, so how do programs save information I'm basically creating a database, but want it to be an installable program, not an MS Access db. But I'm having trouble figuring out what to do in regards to a DB. I see you can use localized db's inside VB, but I keep reading that the user would still need sqlserver express or is that wrong sorry, I must not have been ...Show All
Windows Live Developer Forums I lost my pictures spaces live
I lost my photos blog en my spaces live. I can't see them. what can i do I'd like to erase my espace y edit another one. can i do that HELP me please Romerriera: This forum is for questions and discussions related to Windows Live Spaces development. For questions related to using Windows Live Spaces, try the Windows Live Help Central page: https://account.live.com/HelpCentral.aspx . ...Show All
Visual Studio Express Editions How to code the role function?
Hi, I would like to code the role and change password function instead of going to .NET Administration Tool. Any code sample or suggestion is welcome Thanks If you drop over the the http://forums.asp.net site you will find a group for the membership and security systems in .net 2.0, post you question there or have a read through that group as you will find some good examples of what you are asking. ...Show All
.NET Development .PNG File As a Embedded Resource in Visual Studio 2003
A couple of questions I guess. 1. Is there a way of making a .png file a embedded resource from the 2003 visual stuido editor 2. Once I have made it as a embedded resource should a line like the following retreive the resource correctly this ->pictureBoxLED->Image = Image::FromStream(assembly->GetManifestResourceStream(S"CustomControls.pbOffLED.png")) 3. This solution I am working on contains several projects CustomControls are basically user control forms I have created. Thanks for all you help in advance I'm supprised - I thought this was the same in 2003... unfortunately I don't have 2003 installed to have a look, but I did look in a project originally developed i ...Show All
Visual C++ Sound Played every time I press Enter
Hi, I'm quite new to Visual Studio 2005 and C++. I've developed a Windows Forms Application with the C++ visual studio, and every time I press the Enter Key in the running program, then windows makes a Sound. In some TextBoxes I have KeyPress Events, and in the called funktions I have: " if (e->KeyChar == '\r' )" with e being the System::Windows::Forms::KeyPressEventArgs. but the sound isn't bound to these TextBoxes it occures every time I press the Enter key. I would be very glad if someone could tell me how to deactivate this. Thanks in advance!! Ok I'll answer this one myself, for whoever is interested. I discovered, that you only have to set the Handled property to true, like t ...Show All
SQL Server Merge Join or Union All
Hi, I am trying to normalize data using the unpivot transform. I have to unpivot using more than one key so I have a multicast feeding into two unpivot transforms then into a sort transform. This is where my problem starts - I have tried using a Merge Join (inner Join) transform but dont get the expected result. My original data looks like this: Pk_ID Choice1 Choice2 Feedback1 Feedback2 10 a b x y After the mulitcast - unpivot - Merge Join, the expected result is: (pk_newID is an identity) Pk_newID fk_ID Choice Feedback 563 10 a x 564 10 b y ...Show All
Visual Studio Generate .chm file based on my own .htm or .doc...etc files
Hi, Is there way in sandcastle to generate the .chm not only based on .dll,exe.. but, based on my own .htm, .doc, ...etc Thanks, Naveen I have placed all my htm files inside html folder which got created by sandcastle but, it doesnt consider the .htm which i have created. Seems to be its ignoring the additional .htm file placed. Thanks, Naveen ...Show All
Windows Forms Treeview dragdrop event ignores exceptions! HELP
Hi, I have a windows.forms application in C# using a treeview with dragdrop capability, however I have found when an exception occurs in the DragDrop event and is unhandled, .Net ignores it (instead of showing the exception dialog) Attached I have some test code where I explicitly throw an exception in the DragDrop event, nothing happens! Any ideas thanks Brian public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void treeView1_DragDrop( object sender, DragEventArgs e) { throw new ArgumentException (); } private void treeView1_ItemDrag( object sender, ItemDragEventArgs e) { DoDragDrop( "!" , DragDropEffec ...Show All
.NET Development downloading/reading source code from websites
I just got visual C#, had been using java, and am stuck trying to figure out how to read the source code from a public website. In java it was... URL yahoo = new URL(Site); BufferedReader in = new BufferedReader( new InputStreamReader(yahoo.openStream())); String inputLine = in.readLine() I then read the strings from that source code to extract the daily data I need(don't need help with that part). If someone could just post a few lines of code that would get the source code from a website into string format, it would be much appreciated, thanks. Hi Sven, I am pulling out my hair. I have done the above and it works perfectly except I don't get the whole site. I ...Show All
.NET Development Update statement
why isit i am still able to get a successful update for a row when there is not such a row. ie try to update a row where id=10, but there is no id10 and im still able to get a success reply. what is wrong LPlate wrote: i shld have found the solution to my problem. but i do need to know how i can perform a check on another table before i perform the update on this table. how will the sql command be like eg. will be reading user input table 1 , table 2 i wanna check on table 1 whether (a and b) exists and if exists, i will den update table 2 user input. Research INSTEAD OF Update triggers Adamus ...Show All
.NET Development strange problem with loading an assembly using custom AppDomain
I'm trying to load assembly files using a custom class, which was created through a custom AppDomain. Here's my Main code block: AppDomainSetup setup = new AppDomainSetup(); setup.ApplicationBase = @"C:\test"; setup.ApplicationName = "test"; setup.PrivateBinPath = "bin;plugins"; AppDomain domain = AppDomain.CreateDomain("MyDomain", null, setup); General.Loader load = (General.Loader)domain.CreateInstanceFromAndUnwrap("Loader.dll", "General.Loader"); Type[] types = load.LoadAssembly("TestObject"); All this does is setup an AppDomain and point it to "c:\test" and then I set the assembly folders it should look for when loading an assembly. The General.Loader cla ...Show All
Microsoft ISV Community Center Forums Dynamics GP Licensing for developers and customers
Hi, I would like to know 1) if we have a MSDN Premium subscription, as an ISV, do we have to pay another fee or license to develop ASP.NET application using eConnect and the new Web Services/development toolkit for Dynamics GP 9 2) do we have to pay another fee or license to distribute this application as a product 3) If the customer will not be making any development or integration by itself once the product is installed, will he need to puchase/buy licence for eConnect and/or the developement toolkit to use our product 4) if yes, is the a fixed fee or a per user fee 5) If it's a per user fee and my client needs to purchase one license of Dynamics GP Professionnal (even if he only needs GP Standard - That's about 3000$ m ...Show All
SQL Server Adding multiple fields together
Okay hopefully this is quick and easy. I have 3 fields (Annual Salary, Medical, Pension) and I now need to working out Cost To Company which is just adding those three together. I tried to do that in a formula but it doesn't return me anything... This is what I had. =(Sum(Fields!AnnualSalary.Value, "CoreEmployeeData")+Sum(Fields!AnnualMedicalAid.Value, "CoreEmployeeData")+Sum(Fields!AnnualPension.Value, "CoreEmployeeData")) So it should add the 3 records While you are here :), Can you tell me how I can put a currency symbol in the front of these numbers and add the thousand comma delimiter ok, What is the "CoreEmployeeData" section, I would think this is affecting ...Show All
Visual C# Degraded performance in DevStudio
About a week ago I began noticing a sharp decline in the execution speed of the Visual Studio 2006 at all levels. Even in the Editor Window when I make a change the cursor won't move until good 5 seconds later. I checked the CPU usage in the Task Manager and can see that even on small, insignificant cursor movements in the source code editor the usage is up to 13%. Anything more substantial brings it up to 100% in no time. It does not happen all the time but very often. I tried to figure out the cause of it. My app is getting larger but I do not think it is exceptional. The computer is very fast (3.8GHz CPU, Bus 800 Mhz and 2Gbytes memory). What could be the problem Thanks. The Studio has 6 projects. Only one of them is real ...Show All
