H.Saber's Q&A profile
Visual C# DataTable + delete selected Rows
Hi I have a data table , which gets populated at the end of a certain transaction with say 30 Rows. Now depending upon the condition the user selects, i wanted to delete certain rows as given below.But the thing here happening is, first time the fifth row gets deleted,the row count is getting changed in the table to 29, which is playing the trick here as we can see that when next delete statement isencountered, there is no row with index 29 which is throwing an error and some times the row which i want to delete is not getting deleted, instead another row with altered index is getting deleted.How can we have a workaround for this situation My intention is just to delete the rows at the specified index from the original output ...Show All
Windows Forms Tab Control tooltip
Hey I am using Visual C# 2005, How do you make it so that if you put your mouse over a tab on a tab control then it will show a tooltip like this: Title of site URL of site So a 2 lined tooltip Thanks :) Well, it is the Tab Control that is default in Visual C# but I amde it so that if you press a Toolstrip button then it will add a tab to the control with a Webbrowser control in it... But even if I have it for just the first tab it still does not show the tooltip...I checked if tooltips was set to true and it is... ...Show All
Visual Basic Nead to pass arguments to an Event
Hi there. I have created a class to handle network trafick. I strugeled a bit with this because the application got stuck when it was waiting on a client. I therfore dug a bit and found a class that would solve this for me. Problem with this class was that it was designed to handle a limited number of clients using an array of threads. I thought that I should rewrite this class to handle the threads in a list instead. I allso had the nead of an unique ID to handle the different connections. I found the datatype GUID and I think this is what I nead. So to my problem: I have a method in my class to handle network messages. It is prototyped like this: SUB HandleIncomingMessage(ByVal pClientID as GUID, ByVal pMessage as String) ok. ...Show All
Software Development for Windows Vista Lack of "go to" functionality in WF
I understand that there is no built-in functionality that allows the workflow to jump from one activity to another one up or down the stream... This seems to be a serious flaw in the whole WF framework... Any comments from the esteemed readers will be appreciated.... That is true of the SequentialWorkflow model - but not of the StateMachineWorkflow model - with a Statemachine you can transition back and forth between different states as many times as you'd like. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't use acceleration on second display ?
Hi everybody, I have a problem with one of my apps running in a multi-monitor configuration. I want to be able to display a fullscreen 3D scene onto the second display, with a standard windowed interface onto the primary one. I can open the second display, using both EnumDisplayDevices and CreateDC but it looks like hardware acceleration is disabled on the second display. Using OpenGL, the Software MS OpenGL implementation is launched in place of the ATI's one. I tryed using or not monitor as part of the desktop. Both doesn't provide acceleration. The machine : . AthlonXP 3200+ . 1GB RAM . ATI Radeon 9800 Pro 128MB running Windows XP Pro SP2 and latest DirectX. Can somebody help me Thanks a LOT by advance !! Julien ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Collision Detection in 2D Games
Hi, So far I have figured out how to get object moving on the screen. I have also figured out how to detect colissions at the edges of the screen. However, I am having trouble figuring out how to detect the collision between two objects. Say for example, two bouncing balls in a 2D game. How can I detect the collision of this two objects I imagine it has something to do with sine and cosine Thanks, Oblivion. This helped me soooooo much, thanks for the info. I was trying to use a bounding box with sprites and had all sorts of problems going through the documentation and trying to figure out an efficient way to mix 2D and 3D vectors.....yeah, I made it waaaay to complicated. This is a great, simple t ...Show All
Visual Studio Team System Build freezing?
I have run a build a few times now, and it is freezing. I am running a custom installshield task that I have wrote. I have to build about 12 merge modules using the ISSABld.exe, it gets through about 6 of them and then while building it freezes. Does anyone know why this happens Thanks. It seems like something isn't wrong ... this is what I do run process. wait for process to exit print output to screen print completed exit class So it seems like this is all it printed out while the process was running...seems like it just quit processing. ...Show All
Visual Studio 2008 (Pre-release) WCF auto-disconnect
Hi, Does anybody know how to disable the auto-disconnect If the Client Application doesn't send any data for long time the WCF disconnect it. I have a WCF console server using the 'PerSession' behavior. Thanks, Alexnaldo Santos i think receive timeout value will decide,How long service has to wait to disconnect idle clients,you can set this value very high to keep session for long time. < bindings > < wsHttpBinding > < binding name = " Binding1 " receiveTimeout = " 00:12:00 " > < security mode = " None " > < transport clientCredentialType = " None " /> < message clientCredentialType = ...Show All
Visual Basic Inheriting from Scrollable Control
I'm working on a custom control where I'm going to handle drawing the entire UI with GDI+. The control class is inheriting from ScrollableControl, and I'm setting the AutoScroll property to True and setting the AutoScrollMinSize to 300x300 pixels, but this does nothing. What I want is for scrolling to happen based on the size of the drawing surface and not on the position of any other controls contained on the drawing surface (since I won't have any). I'm fairly new to custom control concepts, so I'm not sure how to go about this. Any tips you guys could offer would be much appreciated. The only idea I've had so far is to derive the control from the Control class, and then write a ScrollableControl derived control to house that control and ...Show All
SQL Server Unable to install SQl Server 2005 SP2 - Unexpected error
I am trying to install SQl Server 2005 SP2 but it was throwing an unexpected error when trying to install "setup support files". O/s: Windows Server 2003 SP1 Product: SQL Server 2005 Standard Edition Log file shows: +++++++++++++++++++ === Verbose logging started: 2/20/2007 16:05:42 Build type: SHIP UNICODE 3.01.4000.2435 Calling process: F:\SQL2005sp2\hotfix.exe === MSI (c) (74:68) [16:05:42:635]: Resetting cached policy values MSI (c) (74:68) [16:05:42:635]: Machine policy value 'Debug' is 0 MSI (c) (74:68) [16:05:42:635]: ******* RunEngine: ******* Product: C:\Program Files\Microsoft SQL Server\90\Setup Bootstrap\Cache\SQLSupport\x86\1033\SqlSupport.msi ******* Action: ******* CommandLine: ********** MSI ...Show All
SQL Server Differences between 2000 and 2005
Just installed 2005 Enterprise Edition on an XP Media computer... I am blown away because nothing looks familiar to me. Anyone else feel lost Where is the best site for specific changes from 1 version to another... it appears that Enterprise Manager is gone, Query Analyzer is gone, my brain is gone thx Kat I spoke with Microsoft and they said I couldn't install 2005 on a XP media machine. I'm not sure now about the other versions. All versions of 2005 require 2000, xp, etc. Nothing is listed as working with the Media version operating system. I was told I had to upgrade to the full version of XP professional. Nice huh Or I could get rid of all of the programs installed and bring it to another operating system. Oh well, on ...Show All
Visual Studio Express Editions Example of tabbed webbrowsing
Hello, as I have seen a lot new threads about the webbrowser, I thought: "Why don't try it myself " :p So I tried, and I just made myself a working tabbed browser :o I put the source and working example online so you people can have a look how everything works.. Here is the link Please post any questions/suggestions/bugs (I know there are a lot of 'em) here :) Grtz, Tom. tom, the webbrowser is in a tab, in a groupbox, and the webbrowser has focus. The form should not be capturing keydown under that circumstance should it Also there is an htmldocument inside the webrowser. The webbrowser does have a keypreview event. The event looks for other keys such as f1 for help. I commented the whole event out and it made no ...Show All
Game Technologies: DirectX, XNA, XACT, etc. slowing FPS display with timers... how?
I'm new to timers, never used them/needed them so how would i go about implementing this What I need is a timer to display the FPS counter i have every second or so... Jim.Welch wrote: Slightly modified the above poster's post. Basically, you have a class var of elapsedSeconds. That gets incremented by GameTime at each Draw or Update. Then if the incremented value is >= 5 (5 is in seconds here), then you do something or draw something and reset the elapsedSeconds back to 0. The example below flashes a thingy. Like 5 seconds on and 5 seconds off, etc. Code is unteseted and I used notepad to write it so it might not compile as is. float elapsedSeconds = 0; bool displayThingy = false; protected override void Update(GameTim ...Show All
Smart Device Development Cell Broadcast on Emulator
Hi. I am using VS2005 and CF2 to write an application for Windows Mobile 5 Smartphones. Within the application I am using… SystemState.GetValue(SystemProperty.PhoneCellBroadcast) …to get the Cell Broadcast tower name. This application works well on my i-Mate SP5 Smartphone when I enable Channel 50 - the channel that the carriers use here in Australia. Is there a way I can enable a simulated Cell Broadcast for the "Fake Network" on the Smartphone emulator Sorry, but no. The "Fake Network" built into the DeviceEmulator Smartphone ROMs has very limited functionality. Barry ...Show All
Visual Studio Express Editions Delete Rows In Access "VBExprees"
Hi How can I delete rows i Access database My ListBox display values from DataBase, and when I select pretendet item in my listbox and then press the Button, that must delete the selected item with row from "Test.mdb". Thank you Now I'm not sure about the exact syntax - I dont use Access that much but the general idea is here and I would definately advocate using parameters to pass information to a sql statement rather than simply building a string. But general idea is you want to use ADO.NET to create a DB Command object which contains a connection to your database and a CommandText property set to the delete command you wish to run. Then with this you are going to open the connection - running the command object using ...Show All
