Msiza's Q&A profile
Visual C# how to save a graphics into a jpg file
Now the graphics are painted in a form and i want to save the graphics into a jpg file. Which class will implement that what about ImageConverter class should i first transform the graphics into a image. By the way, i am not sure whether the image class will be useful. thank you Hi, I still get a big black box, here's some of the code I'm using: first my toolbar button for print: if (e.Button == this .tbPrintForm2) // print the validated version of the doc { _bmp = (Bitmap)_currFormImage; pd2 = new PrintDocument(); pd2.PrintPage += new PrintPageEventHandler( this .DrawPanel); PrintD ...Show All
Visual Studio Express Editions how to use a control using a string
Hi All, I want to change the properties of a control, by calling it names. I have several labels in my form (L1...L100 for example) and in the code I want to select one of these label, using a string ("L" & i) in order to modify it property. I can write Activecontrol=L2 But not Activecontrol= Numlabel where numlabel = "L2" But if L2 is a result of a calculation how can I select the proper control. Not sure it is clear ( ) thanks, VSC I dont think the method u said is posible. However, i can give u alternate solution , make a class which inher ...Show All
Windows Forms databind text property of a set of radiobuttons in a groupbox
Is there an easy way to bind the text property of a set o radiobuttons in a groupbox in such a way that the selected radiobutton text property binds to a particular field in a dataset Thank you in advance for your input. Regards, Pedro Costa Probably not in any meaningful way: you'd have to write some code to give you properties&nbs ...Show All
Software Development for Windows Vista Persisted Instance not reloading correctly
Hi, I have a small workflow, with which I am using the file persistence. First the submit event is triggered, the workflow is started and catches the event. The the workflow is persisted and is waiting for the Scan event.. When the scan event occurs, I call workflowInstance.GetWorkflow(instanceId) where instanceId is the instanceId of the persisted workflow.. THen I load the instance WorkflowInstance.Load() Then I trigger the DocumentScanned event But unfortunately it does not go into the workflow.. Normally the DocumentScanned event should be triggered and the Workflow should go to a next state... Would anyone have an idea ...Show All
SQL Server Snapshot agent gives error: line38: Syntax error near 'tabl'
Hi all, I have created a new publisher. There are 997 articles. Snapshot agent has added some of the articles and after that it failed with error Line38: Syntax error near 'tabl' Please help. Could you please post the schema of this table, the sp_addmergepublication and sp_addmergearticle command text, so that I can try to reproduce this error on my side ...Show All
Visual C++ Runtime Library error messageWinword.exe
When I open some Word files, an error message pops up saying: "Buffer overrun detected! Program:...am Files\Microsoft office\Office11\Winword.exe A Buffer overrun has been detected which has corrupted the program’s internal state. The program cannot safely continue execution and must now be terminated. " There is no error report window when the program shut down. There is no time to save the file. I have tried to copy the file, change name, etc.Didn’t work... Would, please, someone HELP ME!!!!!!!! Those word docs may contain viruses Your Word installation may be corrupt Th ...Show All
SQL Server Logging MDX queries in AS 2005.
Hi, I was using the connection string property DBPROP_MSMD_LOG_FILE for getting MDX queries in a log file in AS 2000. But, it looks like this property has been dropped in AS 2005. Is there any alternate approach for achieving the same functionality in AS 2005 programatically Thanks in advance, Santosh. In AS2005 you have way more poweful and robust way to look at any activity happening in your server. Now you can use SQL Server profiler to connect to Analysis Server and see any MDX, or XMLA command executed against your server. Programmatically you can use AMO to subscribe to the trace events. Take a look at the AM ...Show All
Visual Studio Express Editions How can i create Graphics object from CBitmap ?
Hi I want to create a Graphics objcet (gid+) from a CBitmap object. Can u hlep me Thanks. For gdi related questions, please use the newsgroups at http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.win32.programmer.gdi&lang=en&cr=US OTP Thanks, Ayman Shoukry VC++ Team ...Show All
.NET Development how to "UPDATE a VIEW"
anyone could tell how i can update a view in vs my dataset has tables and views but views doesn't show any update method please help me ! There are AddNew and Delete methods on DataViews, and you can change the existing data view the DataRowView methods. http://msdn2.microsoft.com/en-us/library/system.data.dataview.addnew.aspx http://msdn2.microsoft.com/en-us/library/system.data.dataview.delete.aspx ...Show All
Visual Studio List of Days
Hi, Can anyone from this community can help me or suggest a way on how to list all the days in a month in a report or query thanks alot... ...Show All
Visual C# How do I multiply a number by pi
Hey, I'm currently programming a calculator application and I have found myself stuck on multiplying a number by the mathmatical value of PI. The number shall be inputted in to a textbox1 and the result shall be shown in textbox2. Does anyone have a solution to this All replys are appreciated regards Liam Thanks, I'm not that experianced would you mind putting it in example for me. As I am not aware of how to use this sorry if this sounds a little lame. regards Liam ...Show All
Smart Device Development how can i deny opening start button and close the this minue when opened ?
Hi .. i want deny a start button openning when my application is running Is there a methode or way to do like this , please cheers >> Is this going to be an option in the future Plenty of people want to make smart device apps which run in 'kiosk' mode, which is not as easy to do as you might think ...Show All
Windows Forms how to customize datagrid row based on data?
I am binding a table and a datagrid. The table has, amongst other things, a boolean field which will be false if the data in the row is in error. When this happens, the row should get a red background (or bold text or whatever), and the accompanying text field must become read-only; ie. the user is not allowed to edit the text if it&nbs ...Show All
Visual C# Connecting With C#
Hi, Any body now the connection with MySql And Postgere Sql in C#. plz Help me. U can connect to MySql using MySql Managed Provider. U will find the assemblt at www.mysql.com . Downloa the assembly add reference to ur project. Or You can use OleDB Connection Provider to connect to MySql or PostGRE. Regards, ...Show All
Software Development for Windows Vista view Cancel handler / faults cause code-behind change
This is first time I use WWF designer, one thing make me uncomfortable is that when I switch to Cancel handler view or Faults view, all the sudden , the code-behind got changed. -- The logic added is the logic to enable the cancel/faults . Well, if it's default why not enable them from the beginning. Again , it's not a big deal, just usability. Hi Walter, This is a known issue and we are working on it. Thanks, Chethan ...Show All
