Santosh Ransubhe's Q&A profile
Visual C# web browser application crashes when visiting site 'http://felixiamiaow.spaces.live.com/'
Hi All, I just create a very simple application to test web browser control in .net 2.0. In form load event, the browser tries to navigate the above site and then the appliation crashes. Here are details for exception. {System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at Syst ...Show All
Smart Device Development DataGrid coloring (SP1)
Hi, I'm having trouble setting (individual) color for the rows in a DataGrid in a custom DataGridTextBoxColumn. I'm running the SP1 of CF 2.0. I have overridden Paint as shown below, but for some reason the paint method is not used in my own test projects. If I import the same code into the sample from Ilya Tumanov and replace one of the TextBoxColumns with my own it is working ok. Why could this be I've tried to "analyse" the sample code from Ilya, but I haven't come up with something. Thanks, Adrian ----------------------CODE-------------------- SolidBrush color1 = new SolidBrush(Color.Aqua); SolidBrush color2 = new SolidBrush(Color.CadetBlue); SolidBrush color3 = new SolidBrush(Color.FireBrick); protected override v ...Show All
SQL Server Remote Connection to SQL Server 2005 on Windows 2003
Hi Fellows! I am trying to connect a SQL Server 2005 Server setup on Windows Server 2003 and failing. I have checked few other related posts but i think so i am still unable to find the solution. My configuration and problem is following; I want to enable access for my SQL Server to my network as well as through internet using our Fix IP address server. Configurations: Server: Win XP Server 2003 along with VS 2005 and SQL Server 2005 Clients : WinXP Laptops (home addition) installed SQL Server Connectivity tools and Express addition and also community edition of Management Studio for Express edition. I am able to connect the server when i try to use my servername but failed when i try to use ipaddress in the connection. ...Show All
Visual C# Passing a variable to another process
Hi, Im trying to find out how i would pass a value, in this case a string, to another process My app detects if another instance of it is currently running, if it is then it shuts down, but when the user opens a file with it i want to pass the string (filename) over to the exsisting window so it can open before this one shuts down. Any help or a point in the right direction would be excellent. Thanks, -Dave Thanks Mark but i think i would be better of going with ipc. But im having some trouble with it, i can get any of the examples off the web to work, they compile, but i dont know how to pass the message sent to a text box or even a message box so i can see what im doing. I have posted my co ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Highly Optimized 2D Drawing
With the trends in hardware today, would it be worth the effort to render groups of sprites to offscreen surfaces For instance, we have an gui window composed of 9 sprites (All stored in 1 image, and will be rendered in a batch). 5 Of these sprites will every need scaled or tiled to draw the window every frame. Assuming that during the gui windows lifetime it's size and appearance will remain relatively constant, we can render it to an offscreen surface. This would allow us to minimize the scaling and vertex buffer operations to a single blit in future redrawings of the window. Or is it best to constantly push new quads to the GPU for processing like the Spritebatch object currently does The constant pushing of quads would only requir ...Show All
.NET Development Problem using Left() in ASP.NET
I am having problems manipulating strings. I want to take the first 15 Characters from a databind for example: <%# DataBinder.Eval(Container.DataItem, "Reference").ToString().Replace("-", "").Replace("/", "").Replace("(", "").Replace(")", "").Replace(" ", "").Replace(",", "") %> I have used the replace to replace some characters and take out spaces (Although ideally I need to remove all non-alphanumberic charcaters) Then I want to shorten the remaining string to 15 characters I have tried using Left(DataBinder... etc. but this just gives me a compiling error. Can anyone help me please ...Show All
SQL Server Reporting Services Render issues in IE
Hi We are having an issue with reporting services when it is viewed in IE. We can design the report in visual studio and it looks fine, however when we upload the report to reporting services it displays the report incorrectly (shown below) http://static.flickr.com/103/298669551_7395fc946d.jpg When it is print previewed it looks like this (which is the correct layout) http://static.flickr.com/104/298669558_cfd56ffd0e.jpg Any advice would be most appreciated! Thanks Ross Ross, You're running into the differences between the renderers. Designer preview and print preview use a GDI-based renderer, while Report Manager uses an HTML-based renderer. There are some pretty significant differences in the way borders and other ele ...Show All
.NET Development Print word document to specific try
Well I am coding an application using C# for my company which requires multiple printing Word Docs, at a specific Printer of the installed Printers, and at a specific tray. So, i used word object ( Microsoft.Office.Interop.Word) for print the document but i cant see any tool that indicate how to print to specific tray in my printer. There any way to do that or still stay with the same way (word object) Thank's I have searched it brings over of this, but I have not found anything, you can use it I want that there goes out for me the dialogue box that goes out when you pulsate CTRL+P in a word Is it possible (As when you do document.save () the dialogue box goes out of saving) Thanks!!!! ...Show All
Visual Studio Express Editions Connecting to MySQL DB other than .NET
I'm very inexperienced with VB Express unfortunately, and I'm trying to figure out if there is any way to connect to a MySQL other than using .NET like a ODBC driver. My host restricts using .NET to access MySQL, so I'm trying to find an alternative method. Any help would be appreciated. TheMrB, Use the ODBC 3.51 drive to connect to MySQL database and make the correct connection string as follows: Public Const ConnectionString as String = "driver={MySQL ODBC 3.51 Driver}; Server=localhost; Database=**; uid=**; ppwd=**;" The following link shows the MySQL Connector/ODBC 3.51 Downloads: http://dev.mysql.com/downloads/connector/odbc/3.51.html ...Show All
Windows Forms Error code 2869 with Vista
We have our application Setup program created using Visual Studio 2005 (Setup & Deployment project). Our application setup program runs fine on Windows XP / 2003, however we get the following error message when we try to run the setup program under Vista: The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2869. According to the Windows Installer documentation, error 2869 means "The dialog [2] has the error style bit set, but is not an error dialog." I don't understand what the issue could be here Do we need to create/build a separate installer for Windows Vista I receive the same mes ...Show All
Visual C# System.Globalization missing member
Hi people, I am trying to find the CultureAndRegionInfoBuilder member of the System.Globalization namespace, but someones had away with it I'm using VS 2005 and expected it to be there like the tutorials say. I imagine i am not linked to the correct assembly, but has anyone else experienced anything like this What other assemblies aren't i correctly linked to Not that anyone out there will be able to answer that one ;) Anyway, could someone please advise K Cheers for that. I did see this, but i found it odd referencing what is a .NET assembly directly like this without it showing up in the GAC. I just wanted confirmation i suppose. Thanks K ...Show All
SQL Server autogrow of log file possibly cause timeout?
i had a problem with a server instance where an app processing a file and putting the data into the database using a stored procedure was timing out. the app is a service and in the case of errors, will try to process the file until it has been succesfully added data to the database. in the event viewer i keep seeing this message during this timeout period: "Autogrow of file 'mydatabase_log' in database 'mydatabase' was cancelled by user or timed out after 15687 milliseconds. Use ALTER DATABASE to set a smaller FILEGROWTH value for this file or to explicitly set a new file size." is there a possibility that this process was causing my SP to timeout are there any other log or debug files that SQL Express creates that might b ...Show All
Windows Forms Coloring TabControl.
As far as I can see TabControl object has no properties of either Back or ForeColor. Is it possible to assign these properties to this object Another question: TabPage object does have both properties but when you assign a color to it it does not cover the whole TabPage: the tab itself remains gray. Is it possible to give it colors Many thanks. nahguam wrote: Control does have a BackColor property: http://msdn2.microsoft.com/en-us/library/system.windows.forms.control_members.aspx Having said all that I don't think the benefit of being able to change the tab color outweighs the work involved... That's what I am too afraid is the case as well. I greatly appreciate your comments. I will look into the details t ...Show All
Windows Forms how to deploy my vs2005 projects in the old way
the old way here i mean i don't wanna offer my user an installer package because they prefer a zip package so they could just unpack and register just by running a bat or script file. but there are some projects is developed by c#, and some are developed by vc2005 (com dll). could anyone tell me how to achieve this goal ...Show All
Visual C# repeating code
I have about 40 picture boxes arranged in a table of 4X10 (also named to show their location when the first row is 0 ie. the box in fifth row and third column will be called pictureBox53). I want to put images on them according to an array (of 10 on 4) without having to write the code every time for each picturebox. I need something like: for ( int i = 0; i < 10; i++) { for ( int b = 0; i < 4; i++) { PictureBox <i (the variable><b the variable>=pictureBox01 FromChildHandle array; } } Make an picturebox array field on your form (either jagged or multi-dimensional will do), then store references to your picture boxes in those arrays in either your form con ...Show All
