Mainiac007's Q&A profile
Visual Studio SwimLane as custom parent
Hi, I have two unmapped swimlanes. When I add modelelements to these swimlanes via the toolbox items, I override the method ChooseParentShape as follows: public override ShapeElement ChooseParentShape( ShapeElement childShape) { switch (childShape.GetType().Name) { case "ServiceModelComponentShape" : return this .ServiceModelComponentLane; case "ServiceContractShape" : return this .ServiceContractLane; default : return base .ChooseParentShape(childShape); } } All works well until I reopen the diagram, I get following exception "Object reference not set to an instance of an object." during the ElementAdded method of the FixupDiagram class. ...Show All
.NET Development Sort method acts as I hope
I've implemented a comparer class in order to sort a ArrayList. So, namespace Application.Comparadors { public class ComparadorPaquets : System.Collections.IComparer { private Application.Comparadors.tipus_ordenacio tipus_ordenacio; public ComparadorPaquets(Application.Comparadors.tipus_ordenacio tipus_ordenacio) { this.tipus_ordenacio = tipus_ordenacio; } int System.Collections.IComparer.Compare (object x, object y) { Application.PaquetOrdenat paquetX = (Application.PaquetOrdenat)x; Application.PaquetOrdenat paquetY = (Application.PaquetOrdenat)y; return (this.tipus_ordenacio == Application.Comparadors.tipus_ordenacio.ascendent) paquetX.Talla.CompareTo(paquetY.Talla) : paquetY.Talla.CompareTo( ...Show All
Smart Device Development how can i get current process(our application) memory usage in .Net CF2.0
Hi, I want to get current process(only our application) allocated memory usage. .Net Framework, i got one property for current process memory usage(WorkingSet64). Sample code: Process myProcess = null ; myProcess = Process .Start( "notepad.exe" ); MessageBox .Show(myProcess. WorkingSet64 .ToString()); But i searched the same in Compact framework. In openNetCF namespace having some property. OpenNETCF. Environment2 .WorkingSet; This is returning whole free physical memory. can anyone help me . which are the property or method will return current(particular application) memory usage . if available any other API or namespace, please let me know ASAP. Thanks, Raj ...Show All
.NET Development C# + Access Database Problem
Here's my issue. I have a program in C# that creates and track help desk PC tickets.It saves and loads data from an Access database that I created. Everything works great, but I have recently decided that I need to add some more things like the ability to input the date that the customer was called on the form as well. So what I am trying to do is create another couple of colums in the already exsiting database using Access, then create textboxes on the form and have them link to the new colums in the database. The best I have got so far is to create a new database, but I don't want to have to retool the entire form all over again if I can help it. So, my question is, simply put, is there any way to update a Access database already in use ...Show All
Smart Device Development Timers not triggering in "resuming" power management mode
My application relies on some timers which have to trigger when expected. I noticed that when the device is in resuming mode, the timers are not being triggered correctly. After some more investigations I think that there should be a "device" that handles this, since in other power management states (like "unattended"), this thing doesn't happen. Does anyone know which is the device on which I have to call SetPowerRequirement ...Show All
SQL Server Linked servers without MSDTC?
Simply put is it possible Will all transactions that involve a linked server connection by promoted to a Distributed transaction or can you set something somewhere that will keep the transaction 'normal' Thanks in advance. Dave To ensure consistency across the server MSDTC will be needed and automatically involved. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio 2008 (Pre-release) Not able to reference to custom control in another dll (RC1)
After installing RC1 I am not able to initialize custom controls created in another project even by using mlns:customControls="clr-namespace:XYF.Controls.WPF;assembly=XYF.Controls.WPF", although on I can add the same control via code behind but in Xmal it pukes. Also in the xaml if I am creating a name of panel using name="XYX" I am not able to reference them in code behind. Any ideas why it is happening. Thanks Atul Wait, can you compile the project, or is it just the editor that's saying that things can't be found The editor hasn't been able to properly resolve types out of the generic xaml namespaces as far as I can remember, so it underlines them and says tha ...Show All
Smart Device Development deploy with the .exe file
I have finished an application with c# .net cf 2.0 And I build it with the setting is "release" "any cpu", then I send the application's .exe to my user, and the exe file be in the application\bin\release . the user's handset is windows mobile 5 handset. Can the .exe run at the user's handset Is it right of my deploy way Please tell me, Thank you hi CBuilder yes, I will create the cab file. when I deploy my software to a phone which has windows mobile 5, should I add the .net cf 2.0 to my cab project Thank you ...Show All
Visual Basic VB .Net Express ? (not VB 2005)
Is there or was there an express version of VB .Net (2003) available for download. My work PC is stuck at XP SP1 and VB 2005 requires SP2. Stuck That's odd: as a developer, I'm sure you could download SP2. But to answer your question, no. ...Show All
SQL Server Get the variable from Execute Process Task to C#
Hi! I need help with some C# code. I have build a SSIS package with an Execute Process Task. I need to send dynamic variables in to my C# program so I thought it was a good idea to use the StandardInputVariable. How do I get the variable in my C# code Thanks Carl Peter K wrote: Your Main methods parameter collection yes. provided that this functionality has been built into the c# code. ...Show All
Visual Studio Deploying LanguageService ColorableItems on customers machine
Hello, We have created our own entries for text colorizers for our language service. All of this works fine and shows up in the "fonts and colors" area of Tools->Options from development machines. This is because we have the ability to reset our experimental hive, so it will see our changes. From our experimenting, we have found that doing a "devenv.com /setup" will register our items on the target machine after doing the install. However, this command has been known in the past to "turf" a users settings for the entire environment. Is there a better possible less destructive way to make sure our colorizers show up in tools/options kind of along the same line as "devenv.com /installvstemplate ...Show All
Audio and Video Development When is ready picture in pixelbuffer
Is it posible to check for a moment, when the picture is loaded to the pixel buffer and when can i start animation in script At the moment i am using a timer and for a short time waiting, but this is not an exact method. The presentation engine is not allowed to display a "partially decoded" resource, so it won't update the display until the image is decoded. Depending on the player, it may keep processing application ticks during that time, or it may not (off the top of my head I don't know if the spec says either one is required). One option is to set yourself a 0-frame timeout in script so that you will be called back on the next available tick; if the player stalls waiting for the image to load, this will work since ...Show All
Visual FoxPro Create New tables in existing DBC in specified directory or path
I have never used Foxpro before until now. I am able to create a set of stored procedures to create two new tables from existing tables for reporting purposes in a DBC. I am using Visual FoxPro 9.0 for working. What I am trying to achieve: I want the client to execute a stored procedure which will create the two new tables in the same directory (or path where this database currently resides). Issue: The tables are generated successfully but the physical files reside in the wrong path. For example: there is a DBC in Z:\DATA\ABC\ and all the tables are in this path. I want to create the two new tables for this database and make sure the physical files are created under the same folder. Attempted: I have been able to get the client t ...Show All
Visual Studio Express Editions Visual Basic Express edition 2005 freezes during setup.
OK, I just downloaded Visula Basic Express Edition 2005, I've already uninstalled the .NET framework 2.0, and done everything the online instructions tell me too. My problem is this: When I run the setup program, everything goes OK untill the progress bar in the box that says "Setup is gathering the files needed for installation" gets about 3/4 of the way full, then it stops, I thought maybe it was just being slow, so I left it alone for 4 1/2 hours and still no progress, does anyone know what my problem is and how to fix it Here are the manual install instructions. http://msdn.microsoft.com/vstudio/express/support/install/ ...Show All
Visual Studio Express Editions How to make custom controls in VB Express
Hi all, I have actually had some success at this but it works sometimes and sometimes it doesn't. I hope someone here can enlighten me so that I can achieve a consistent result. the problem I wish to create custom controls for use in other application I may make. my current solution Currently I follow the steps outlined below: open VB Express 2005 select the Class Library template add a reference to System.Windows.Forms add a reference to System.Drawing add the line "inherits UserControl" to my class add the line "imports System.Windows.Forms" add the line "imports System.Drawing" add the line "imports System.ComponentModel" customize the user control through both the design and code views save a ...Show All
