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

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

Fiwel

Member List

jackycn
Polina159216
Humpty
Dr. YSG
Deldy
Sreekk
R Raghu
cool714
Odin_dark
Jacksparrow1985
s12
Ronaldlee Ejalu
TechedRonan
xRuntime
stevejebson
Trainwreck
Nightman28
veXed
mcrisf
BrianHks
Only Title

Fiwel's Q&A profile

  • Windows Forms Delay Processing ListView based on a Timer.

    Hi all, I am after a best method approach to solve this, but my problem is that I have a ListView that contains Items based on a location. I have a Location object that is basically a Tree Hierarchy. On the Form I have nudge buttons (left and right) so that the user can move from location to location on the same level. But, when the user selects a nudge button several times very fast, then the ListView Control will get populated for each press of the nudge button. So if the user pressed the nudge button 10 times within 2 seconds, the ListView Control would populate itself 10 times. What I want is a slight delay on each key press so that it determines another key press straight after a keypress then wont process the first keypress, but only ...Show All

  • SQL Server Dimension Design Help: Mix of Parent-Child and List

    Hello Analysis Server Users! I wonder if someone can help me with the setup a dimension that is a parent-child hierarchy first, but the leaves are not joined to the fact table, but instead to another table containing a list of elements for this leaf, and from there fianlly to the facts. Hmm... bad wording and description, sorry. Maybe an example helps: say I got a list of 5 elements a-e that are in a simple list dimension and act as hosts for fact data. Just simple straight list a, b, c, d and e. This list is often used and must be kept, it is stored in a simple straight table in the database. I would now like a group in addition to that, as an alternative, say I want to see grouped together b, c and e. I could do that by a ...Show All

  • Software Development for Windows Vista Using CallExternalMethod activity always terminates a workflow....

    I have created an interface, marked with externaldataexchagne. Then I have impplemeted methods defined in that interface. I have then tried using CallExternalMethod activity to invoke that method, but whenever that activity needs to be executed, it terminates the workflow. Any idea why this is happening Thanks, Marko Vuksanovic. Ok, I have added the FaultHandlerActivity to my workflow (and a codeExecute activity with a line of code that shows a messagebox),.... but how can I get, and display, the information about the error ...Show All

  • Smart Device Development App runs fine on a device but crashes the wm5 device emulator

    I have developed a windows mobile 5 application (c# with some c++ native through p/invoke) that runs aparently without problems on a device. But when I tried to run a debugg session on the emulator (to grab some screenshots for the manual) it crashed every time. The debugger shows that it crashes after trying to execute a default constructor of a simple class. When I commented that part of the code out, it crashed on instantiating a delegate with an event handler... All this happens before any for is loaded and before any native C++ code is invoked. The same thing happens when I run the deployed binary form the emulator. Any ides where to look for the fault ...Show All

  • Visual Studio Installing VS2003 add-in programmatically or using registry file.

    Hi, In my product installation I have to also install VS2003 addin. One way to achieve this is to launch the default set up that is created by Visual Studio 2003. However I want to install the add-in dll not using the default setup. How can I achieve the same Thanks and Best Regards, Vishal To install a VS.NET add-ins you have to: 1) Copy the DLL and the satellite DLLs to the destination folder 2) Register the DLL for COM Interop. This can be done with regasm.exe /codebase or whatever means of your installer to register .NET assemblies (not just ActiveX DLLs) for COM 3) Register the add-in for Visual Studio with some registry entries (check the docs). You can copy the registry entries in ...Show All

  • .NET Development MFC exe Crashes with /clr option

    I have a MFC app that was developed with VC++ 2003 7.1 . I have now upgraded to VC++ 2005 8.0. Eventually I plan on using a Windows Form Control and hosting it on existing dialog. This exe is located on a remote computer (intranet) and I am executing from my computer. 1) First I compiled the project in 2005 and fixed a few errors and am able to compile/run with seemingly no problems 2) I turned on the /clr option and fixed what ever problems and now am able to compile with no errors 2a) now when I run I get a crash. My project settings are: <Tool Name="VCCLCompilerTool" Optimization="0" AdditionalIncludeDirectories=""$(SolutionDir)\common\include";" ...Show All

  • SQL Server understanding 'Assembly blah was not found in the SQL catalog' and workaround

    This is the message I get trying to load the assembly into my database: ‘Create failed for SqlAssembly ‘Microsoft.Adapter.SAP.SAPProvider’ Assembly ‘microsoft.oba.metadata.metadataaccess, version=1.0.0.0, culture=neutral, publickeytoken=… ‘ was not found in the SQL catalog. (Microsoft SQL Server, Error: 6503) I heard one opinion that said that it appears that SQL the CLR Hosted Environment tries to load the whole assembly dependency graph and doesn't find the dependent assembly in its catalog. That is consistent with the restriction of the CLR Hosted Environment not supporting managed code dynamically generated ( http://msdn2.microsoft.com/en-us/library/ms131047.aspx ) My questions are: what is microsoft.oba.metad ...Show All

  • SQL Server looping through table to exec an SP many times

    Hi, If i have an SP called mySP that accepts one parameter @param If I have a table of paramaters with only one column like this: Param1 Param2 .. ParamN How do I do if I want to execute the SP on all the table fields: some thing like this: Exec my SP 'Param1' Exec mySP 'Param2' ... Exec mySP 'ParamN' I want that automatically since the parameters are going to be in a table called myTblParams Notice that I don t want to pass all the parameters to the SP just once but only one value each time I execute the SP since mySP ccepts only one parameter. Thanks a lot for guidelines If I understand you correctly, you want to execute mySP for every row in the myTblParams table. To do this, you could write another sp that has a cursor to l ...Show All

  • SQL Server min server memory option and memory paging

    I have problem with sql memery usage. In same case sql paging the data to virtual memory on disk and relese physical memory. And if SQL relese physsical memory, he dont consider min server memory (MB) option (4012MB), after relesing sqlserv physical memory usage is only 500MB. And after sqlserv restart his memory usage is only about 500MB. Perfmon counters: Pages/sec 1450 %Commited Byte in Use 43% %Usage Total Page File 87% Available MBytes Memory 6480 MB My server is: 9.00.2153.00 SP1 Standard Edition (64-bit) Server memory 8GB sp_configure: awe enabled 0 1 0 0 min server memory ( ...Show All

  • SQL Server What DataType is best ... float, double or decimal?

    I am using sql express 2005 and sql server 2005 with C# 2.0. I am a bit confused about which data type i should be using for several fields. Right now I am declaring all of my fields in sql server as float for everything except for money fields which are using money. When loaded into C# these fields are converted to double and decimal because C# does not have a float datatype. Should I be using Decimal or Double for everything instead Here are a few examples QtyInvoiced (float) - holds the number of items invoice possible values look like this 1.0, 1.25 or 1.5 PercentDiscount (float) - holds a percentage possible values look like this 10.25, 20.50, 50.00 I appreciate the help. Thank yo ...Show All

  • Visual Studio Team System CTP4 and RTM - Problems Expected?

    Most everyone remembers the problems we had when the VSTS went from beta to ctp to rtm, uninstalling in perfect order, searching for special removal tools, etc. Has the Database team anticipated these types of problems and can we expect they will not plague us I'd love to install the CTP4 on my team's workstations, everyone of us build our own databases. But, I'm reluctant to subject them to the same trials & tribulations I had with the early betas & ctps. I do install, repair, and uninstall on my workstations. We are using the setup technology that VSTS used at RTM and making few changes (mostly just new data files). As such, the setup should be good for using on a workstation. If you run in ...Show All

  • Windows Forms DatagridView Columns Property

    Hi, I wanna make a UITypeEditor just like the one DatagridView columns property has. Is there a control or model allready done for that Help is really appreciated. Thanks D See this sample . ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Generating More Random Numbers

    I'm currently using the following code to generate a random number between 0 and 6: Random random = new Random(); int rand = random.Next(6); It seems to repeat some numbers quite frequently though. What I'm wanting to know is if there's a better way to generate random numbers that seems more... random I came across a similar issue with repetitive random seeds. I originally used this to generate new seed, but when I reused it when the code was running, the same seed was being used, and producing the same random figures. Random rdm = new Random (( int ) unchecked ( DateTime .Now.Ticks)); So I eventually replaced with this code, to generate different random seeds when running: // ...Show All

  • Windows Forms how to create a resizable custom control

    I need to create a resizable custom control. I inherit from usercontrol and create an handler for the OnPaint event, then I need to detect when cursor is over the edge of the control (a simple rectangle) and if the left button is pressed and the mouse dragged, resize the control. I read about using drawgrabhandle method but I'mnot sure what this method does. Can someone help me Usually the parent control deals with resizing it's children. I would recommend having the resizing of your custom control be handled in the parent control (or form). The custom control could notify the parent when sizing begins (mouse down at the correct place) and when sizing ends (mouse up). DrawGrabHandle draws a rectangle, esse ...Show All

  • Visual Studio 2008 (Pre-release) How to put a TreeView in a ComboBox?

    Out of curiosity, the other night I tried to put a TreeView in the dropdown of a ComboBox. I wanted to have the item selection mechanism be hierarchical, and whatever node in the tree you select would become the ComboBox's SelectedValue. I couldn't do it in the span of 2 hours. :( I would have thought that such a thing would be simple in WPF since its composite-based approach to UI construction. Here's what I tried: 1) Replace the Combo's ItemsPanel with a custom panel. The custom panel would create a TreeView and display the Combo's Items in the tree. I figured out that you have to set the panel's IsItemsHost to false otherwise an exception is thrown saying that you can't add items to a panel that is an items host. But, then I go ...Show All

©2008 Software Development Network