dr4nra's Q&A profile
Windows Forms datagrid changes disapears when I hit update command of my datagrid row
I have a datagrid with Edit, Update and Cancel Commands. I populate my datagrid with my dataset data. then I do datagrid1.databind in my load event if Not page.IspostBack When I hit Edit on my datagrid, I edit a row. But when I hit Update command, the changes disapear and my original datrow cells contents are displayed again (the same) How do I keep the edited cells after I hit Update Command of my Datagrid row Thanks a lot I agree that it sounds like a Viewstate issue. You may want (or need, depending on the circumstances) to requery the db however that isn't necessary in most cases. Are you using a session variable by any c ...Show All
Visual Studio Express Editions Passing data between multiple forms? urgent help needed
Scenario I have Form1 consisting of a listView control I have Form2 consisting of a chunk of code, that reads items from a folder and lists them in the listView control, belonging to 'Form1'; only i can not get it to work. On Form1, when i click 'Show Form2' i have: Form2 Child= new Form2(); Child.Parent = this; Child.Show(); On the Child form, when it pops up, i want to add items to the ListView control on Form1. how on earth do i do this I can't seem to use. Form1.ListView1 etc... or this.Owner etc... Am i missing something i tried setting the listView in question to 'Public' in the Form1.Designer code with no luck. PLEASE help me ...Show All
SQL Server Right Hand Side Of Report is cut off
I have a table control on a report that is when it is displayed it shows the right side of the report being cut off. If I go to the next page the report displays properly. When I go back to the first page it then displays properly. How can I get it to display properly the first time it is viewed Hi Trish, We are currently facing the same problem so I was wondering whether you already found a solution to this Thanks in advance. Kind regards, Linda ...Show All
Visual Basic Visual Basic 2005 Express IDE Problem
I have not been able to try out the Beta 2. First, I was having problems getting SQL Server to load but I finally was able to get help and resolve that problem. Now I have a problem with the IDE. Whenever I try to launch VB I get an error message that simply says "This program has encountered an error and must shut down". I get the usual options to report to Microsoft or not. When I click on the button to not report everything shuts down and I'm back to the desktop. If I tell it to go ahead and report the same thing happens. I've tried looking at the information that is supposed to be going to MS but it doesn't tell me anything that helps me ...Show All
Visual Studio Express Editions Telling Another Process To Open A File...(???)
Using text files and Notepad as an example... If my application "knows" the path to a file, I can have it opened like this: Process p = new Process(); p.StartInfo.FileName = "C:\\readme.txt"; p.StartInfo.WindowStyle = ProcessWindowStyle.Maximized; p.Start(); Likewise, I know I can search for a currently running instance of Notepad like this: bool pfound = false; Process targetProcess = new Process(); Proces[] runningProcesses; runningProcesses = Process.GetProcesses(); foreach (Process runningProcess in runningProcesses) { pfound = false; if (runningProcess.ProcessName == "notepad") { pfound = true; ...Show All
Windows Forms C# question
What's the equivalent of the below in C#: Private WithEvents MDIControl As MdiClient Thanks Hopefully nobody would write that line of code in .Net... they'd add a reference to ADODB and use: Dim abc As New ADODB.Recordset or Dim abc As ADODB.Recordset = New ADODB.Recordset ...Show All
Visual Basic Rotate an image
Is it possible to rotate a picturebox or an image inside a picturebox Also, is there a way to make the picturebox backcolor actually transparent Setting it to Web/Transparent does not work. Here you go Troy. 'rotate an image Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim RotatedImage As Image RotatedImage = PictureBox1.Image RotatedImage.RotateFlip(RotateFlipType.Rotate90FlipNone) PictureBox1.Image = RotatedImage End Sub 'Call MakeTransparent() with a color to set it as transparent 'or call it w/o any parameters ...Show All
Visual C# How can I get special system directory?
How can I get special system directory I want to know special system directory such as c:\Windows c:\windows\system32 ... what do I do I see the following code from a sample openFileDialog1.InitialDirectory="%SystemRoot%"; // it work well openFileDialog1.ShowDialog(); I think the code should be the below: openFileDialog1.InitialDirectory=Environment.ExpandEnvironmentVariables("%SystemRoot%"); openFileDialog1.ShowDialog(); Why does openFileDialog1.InitialDirectory="%SystemRoot%" work well but the following ... string path=Environment.ExpandEnvironmentVariables("%SystemRoot%\\"+"1.jpg"); //OK string path="%SystemRoot%\\" ...Show All
Visual Studio Express Editions Create User Problem?
Hello Dears; If i create a user in VWD2005, i usually get this error; Password length minimum: 7. Non-alphanumeric characters required: 1. I tried to enter many different passwords with and withour numbers, but invain. Can anybody find the cause Thanks Can you describe a bit more what you are trying to do You might find more help in the ASP.NET forums http://forums.asp.net ...Show All
Software Development for Windows Vista small problem
Hi, While exposing a Workflow via Web Service, in the new Web Service Code file, we used to inherit the WorkflowExample.Workflow1_WebService instead of directly from the WebService base class as shown below. public class Service : WorkflowExample.Workflow1_WebService { } can any one say like "If I want to use two workflows into this Web Service How I have to inherit the Namespaces." In the workflow I am using WebServiceReceive and WebServiceResponse Activities. not sure if I get it, should I convert my sequential workflow to event driven When I open event view of the workflow WebServiceRecei ...Show All
.NET Development Trace-Output hidden behind page-content
I like the .NET 2.0 Trace feature. Unfortunately, the trace-output (normally at the end of the page) is hidden behind my regular page. (I use <Div's positioned in CSS to place elements of the output on the screen) >> Is there a possibility to format the trace-output in a way it is somewhere else in the page >> Can I give it an absolute position >> any other Idea how to omit overlapping of the regular page with the Trace-Output Your help is very much appreciated Beat If I remember correctly it sits inside a div with an i ...Show All
SQL Server Cursor versus Temporary Table
Hi All, I am writing a stored procedure in which I need to read some records from a table which satisfy given condition, fetch the last read record and check its value. e.g. SELECT * FROM TestRequestState WHERE StateId = '11' ORDER BY TestReqNo. I want to read the last record of each TestReqNo and check some values from that row. For this I was thiking of reading the above Select using a cursor and then using FETCH LAST to read the last row into some variable. But this seems to be a round about way and also i have been reading that cursor will slow the execution. IS there any other better way. Should I use temp table instead, ...Show All
Visual C# Can C# runtime code be encripted?
Is it possible to encript a C# executable so that a hacker will have real trouble when trying to disassemble the code in order to crack it Can the C# debugger be disabled for runtime The term you're looking for is obfuscation . There are several tools available to do that, and there've been some discussions on that topic as well: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=192007&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=114489&SiteID=1 ...Show All
Visual C# Regarding Dundas Guage for .NET
I have Dundas Gauge for .NET Version 1.6 [for Visual Studio 2005 ] can I use it with .NET 2003 No you can directly use this .NET 2.0 dll in your .NET 1.1 project. You have to upsize your 2003 project to 2005 or use a older Dundag Gauge control. You have license for the 2005 version so you may use the 2003 version as well as far as i know. ...Show All
Visual Basic fileter one dataset into another dataset
HI, I am trying to filter one big dataset into another dataset based on some criteria such as employee number. I know I can use the datatable.select function, but the function give you array of tablerows and how can I put those datarows into the second datatable can someone show me some sample code Thanks First, select just the rows you want in your datatable by your initial SQL, then you can use the DataTable.Clone method. http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemdatadatatableclassclonetopic.asp Or if you're using the .Select method then NewDataTable = OldDataTable.Select(...) ...Show All
