barisrael's Q&A profile
Windows Forms How to read all surviving DataGridView rows subsequent to user deleting rows
This is an embarrasingly simple question to ask, but I'm perplexed and without an answer. I've created a datagridview object in C# and bound it to a simple datatable. The datagridview displays just fine, and allow the user to perfrom all desired functions (sorting, editing cells, and deleting). I provide the user with a "Load data" button to be used once all the editing is done. My intention is to present the table data to the user via the DataGridViewer; allow the user to manipulate it, and simply read through each row in the DataGridView and process it. I don't even need to update the source table. However, the rowcount property is not updated to reflect the fact that there are less rows subsequent to the user deletin ...Show All
Visual Studio Express Editions Need to know if uploading with VB Express app is possible.
Hi I have a copy of Visual Basic Express 2005 and I am currently writing an application that has to upload images to my domain into a specified folder. The problem is that everything I have been reading a researching on this hasnt helped me. I have used "My.Computer.Network.UploadFile" and have also tried the "System.Web.UI.WebControls.FileUpload.SaveAs" and both dont seem to want to work. the latter simply tells me that UI is not a member of System.Web The first one seems to work on pretty much all the methods such as "ping,IsAvailable" etc, but doesnt seem to work for uploading or downloading. My file paths are correct, the server is up and running and I am connected to the internet when I run the debug ...Show All
Visual C# windows services
folks, i have a basic windows service that I want to be started and run an application at a given time everyday. I have the foll..code in my timer's not sure I am not able to start any application through the service..nothing is happening once the service is started..the logs are updated displaying my written messages but the application does not get started for some reason..is there something i need to check..does windows service kick of applications only in the background private void OnElapsedTime( object source, ElapsedEventArgs e) { DateTime curTime = DateTime.Now; DateTime runTime = Convert.ToDateTime( this .targetTime); string formatString="MM/dd/yyyy HH:mm:ss"; if (runTime.ToString(fo ...Show All
Visual Studio Express Editions Saving Entire Forms
How can I simply save an entire form in Visual Basic Express I have created two forms in in my project. One form asks the user to input information in text boxes. The other form simply reads the input in form1 and duplicates the user input. How do I then save form2 as it is Please help! I've been searching this answer for two days. I know it's probably right in front of me. I am not sure about this, I am pretty sure there maybe a way however I would suggest to save any inputs, which you need to load later on, to a file such as Xml or store it in a database or something. maybe try this http://www.codeproject.com/useritems/Save_Data_XML_Winform.asp ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problems with: Detecting if a user clicked on a 3D object
I'm rather new at working in 3d at this level but not exactly new to C# and definitely not new to 3D models... but I usually work with a tool such as Blender, 3DS or Maya. I have my simple mesh object and it displays just fine. When I use the sample code as a guide, I find that I need to make my own Bounding Box... and I understand the process in theory but applying it to the code is giving me fits. **************** Issue1: Using a Bounding Box with the dimentions of triangleBB in the sample causes this: Nullable < float > result = pickRay . Intersects(triangleBB); // Returns NaN regardless of where clicked. That's my shorthand... pasted code with what it results in after the comment.... Question... so why ...Show All
Visual C# how can i serialize a object received from a MessageQueue?
I am sending to a message queue objects of a type "employee" ( a type that i created), sending part executes properly.. i need to know how i can retrieve the objects properly, how can i serialize it back to "employee" type currently i'm using the following code.. it doesnt work.. BinaryFormatter binaryFormatter = new BinaryFormatter (); MessageQueue msgQueue = new MessageQueue (MessageQueueName); System.Messaging. Message msg = msgQueue.Receive(); msg.Formatter = new System.Messaging. XmlMessageFormatter ( new string [] { "System.String" }); Employee emp = ( Employee )msg.Formatter; MessageBox .Show(emp.Name); Hi, Have you i ...Show All
SQL Server ex.Message in debug mode is much shorter
Exception ex.Message I am getting in debug mode calling AcquireConnection is much shorter than the logged message in run time because all the errors come to output window in debug. Is there any way to get all these errors description from exception object in debug time to be able to parse it Thanks. Thanks for your reply and sorry for not making this question clear. Will try to explain what actually I am actually looking for. Below the simplified piece of my code in script task Try connection = connMgr.AcquireConnection(Nothing) Catch ex As Exception 'Dts.Events.FireError(1, ex.TargetSite.ToString, ex.Message, "", 0) MsgBox(ex.Message) Dts.Task ...Show All
Windows Forms Adjusting Panel position and its members creates flashing effect
I have a panel setup for a bunch of buttons and labels. This form stays the same, but the labels change names and the panel centers on the screen after each time the names change. Each time the location of the panel changes location there is an unwanted flashing effect on the panel and labels. There is a background image and the panel and labels flash white. When the background image is removed, the flashing stops (most likely because you cannot see the white on the white background). Is there a way to stop the auto redraw of the panel temporarily I'm programming in C# now, but I also had this problem in Basic. Any help is appreciated. Thanks. Gareth, This occurs because the controls are repainting the ...Show All
Windows Live Developer Forums How to Add PushPin using FindLocation (without providing lat and long)
Hi guys, Just started playing with the API. I am trying to add a pushpin to general points e.g. Cities, Provinces, Postal Codes but everytime I try to the pushpin appears in a totally different point. Any insight would be much appreciated. Thanks K <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> var map = null; var pinID = 1; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); FindTO(); AddPin(); } function FindTO() { map.Fin ...Show All
Visual Studio 2008 (Pre-release) Transformations on AdornedElement are also applied to Adorner?!
Hi, I’m using Adorners on shapes and other controls. I’ve noticed that the Adorner is scaled, when the AdornedElement contains a transformation with a scale transform. But I don't want the Thumbs and the bounding rectangle in the Adorner to be scaled also. Is there an easy way around this, or do I manually have to scale these back again. In ArrangeOverride I might be able to scale down the Thumb accordingly if I find that there is a scale transform applied to the AdornedElement. It might not be that easy with the pen used to draw the bounding rectangle though, since it's no likely that it should be scaled down equally on all sides. Thanks in advance! / Joel There's nothing magical about how an adorner is ...Show All
SQL Server Installing SQL Express 2K5 on a domain controller?
I want to install SQL Express 2K5 on a lightly used second Windows 2003 SP1 DC. I know about the warning not to do this type of install. However, the group is small and their budget does not allow for another server just for one application. With that being said, the error message I keep getting is "can't create local groups......" (I know that you do not have local groups with AD). So, is there a work around to this issue or can someone point me in the right direction as how to install on a domain controller Thanks in advance for your time!!! Andrea, Thanks for the link, however that is the reason for the post. Paragrph 3.10 states " 3.10 Installing SQL Server Express on a Window ...Show All
SQL Server SSIS-jobs fails after installing SP2
On my laptop I've got SQL2005 developper edition SP1 with 3 SSIS-jobs scheduled through SQL-agent. These 3 SSIS-jobs are in fact maintenance plans which are also used on our production SQLServers. These take backups (full, transactional), Cleanup old backups, reorganize indexes, update stats ... One of these jobs runs every hour to take transaction logbackups. After installing SP2 this started failing. When I opened the sources of that job in visual studio It seemed like the unit of thime was changed for cleanup jobs fe cleanup bak-files after 4 days changed into after 4 hours. The backup task for transactional backups which had the property to do that for all databases whas changed into specific databases which no database sel ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Color pulsing cube sample
It's not all mine. I just tweaked some existing code. Still cool though I think and it'll come in handy for my RPG. Clicky . The pulsing is mesmerizing...... Very cool effect and I really think that's a pretty slick idea you had for using it. Very clever and I can really see that being pretty cool in the game. Thanks for sharing! ...Show All
Visual Studio SandcastleGUI
I have been using Microsofts Sandcastle for some time now and it's xml-schemas have driven me nuts.... so I made a small userinterface for Sandcastle. The program is freeware and includes the following features: - Support for online MSDN-links. - Documenting of specified namespaces instead of entire assemblies. - Multiple outputtypes (website and/or .CHM-file). - Custom copyright line. - Custom company logo. - Custom product information. View my website for more information and a download-link: http://www.inchl.nl View generated output using SandcastleGUI: http://www.inchl.nl/help/ Kind regards, Stephan Smetsers stephansmetsers@hotmail.com Hi Anand, I received the followin ...Show All
Visual Studio Express Editions RichTextBox: Change Bold, Italic, Size etc. in a selection
I want to create a text editor using a RichTextBox and the user should be allowed to make parts of the text bold, italic, change font face and size and so on. The problem is: How can I change these properties in a selected piece of text without affecting the other properties Let's say the user typed in: This sentence has both bold and italic words in it. Now let's say the user selects the part " both bold and italic words " and clicks on the button for bold which in this case should change the selection to bold. I cannot use: RichTextBox1.SelectionFont.Bold = True as it is read-only, and I cannot use: RichTextBox1.SelectionFont = New Font(RichTextBox1.SelectionFont, FontStyle.Bold) either, because the se ...Show All
