Baskaran9324's Q&A profile
Windows Forms Gridview rows conditional colouring
Hi I need to color rows of a gridview based on the values of column in gridview. So if the column has value A that row needs to be green if it has value B then the row needs to be in red and so on. How can I do this, via code or otherwise Thanks Regards Yahya Tom, This is the Windows Forms section ... you'll need to post the question in the Web Forms ...Show All
Windows Forms Cannot inherit form from inherited form
I am using VB dot net and have a base form which is then inheriten by other forms. I also have another base form that extends on the orignal base form. When i attempt to create a form base on the extended base form i get a message when i try to view the form. --------------------------------------------------------------------------------------------------- "an error occured&n ...Show All
Windows Forms Designing a WinForms application.
Such an embarrasing question, but i've been working in ASP.NET for so long that i've lost grasp with Forms design architecture. I'm designing an application using WinForms 2.0. The screen for the application will keep the same structure throught the App. For example, a user will create a new customer. Then he might want to create a new employee, so will click the "employee" button. This won't fire up a new employee form, but will display the employee screen on the mainform where the customer screen was just showing....a bit like having a Tab Control in the centre of a form and having an Employee Tab and a Customer Tab. Then buttons to the le ...Show All
Visual Studio Express Editions 3d games?
Well. you know if I creat a 3D graphic, is it possible to "move" then render the graphic in real time with Visual Basic Express or are there easier solutions to make EASY 3D games Thank you! Keehun Nam VB is not usually the language of choice for creating 3D games. Here's a tutorial on games programming in VB.NET: http://vbprogramming.8k.com/tutorials/main.htm ...Show All
SQL Server Device error or device off-line ???
Hi to All when i m trying to execute following code backup database web to disk = 'c:\inetpub\wwwroot\backup\mybakup.bak' with format I m Getting Error like : Server: Msg 3201, Level 16, State 1, Line 1 Cannot open backup device 'c:\inetpub\wwwroot\backup\mybakup.bak' . Device error or device off-line. See the SQL Server error log for more details. Server: Msg 3013, Level 16, State 1, Line 1 BACKUP DATABASE is terminating abnormally. This error is Generated only when i m trying to access folders within "wwwroot" but not in any other folders , even command runs success fully for "wwwroot" folder . !! ...Show All
Windows Forms How do you guys work with VS.NET like this? CONTSANT DESIGNER ISSUE??
Nearly EVER TIME I open a form, the designer is unable to load the form with weird & mysetrious errors (see sample errors below). How is anyone supposed to develop like this To try and resolve the problem, I have to try any of these: 1) Close the form and open it again 2) Close form, recompile solution, open form 3) Close visual studio and open up project again Again, this is 80% of the time I try and open up a form inside Visual Studio 2005 by double click the form (even right after a successful build). I am not exaggerating. This has brought our teams productivity to a near stand still and is completely frustrating. What are we doing w ...Show All
.NET Development Best Place To Locate Connection String and Other Initial Information?
New guy here...thanks for your patience ... I have a console application I'm building w/ .Net 2.0, C# and SQL Server. When the application starts I would like it gather some "initialization" information. Maybe a couple of items like its name, log file location, etc. I definately need a way to provide it w/ a Connection String so it can log in to a named SQL Server with either WAM or a user id/password. I'm familiar with the idea of using a config file for my application. I've seen the .Net 2.0 stuff on AppSettingsReader and other items. I'm wondering what's the preferred practice to store a ...Show All
Smart Device Development TextBox Readonly gray background
(Using Compact 1.1) When setting a textbox to readonly the background becomes gray. How can I avoid this Is there a neat trick I can use I tried creating a class and subclassing TextBox and overriding OnPaint but this does not work on 1.1. Are there any other options I also tried setting the control readonly to false and enable to false but then the font is gray. Thanks, When I first looked I could only find answers relevant to .Net 2.0 or the full version. But I actually found the answer I was looking for myself. All I need to do is use a Lable !!! Couldn't be easier... I mean is the c ...Show All
Visual Studio Team System Problems with Branching
We are running Beta 3 Refresh and are having problems branching (which worked ok in Beta 2). I created a new folder and then clicked on my main folder (with multiple sub-folders underneath) and clicked Branch. I then choose to put the branch in my new directory I created. It then states: "Preparing to Branch..." and sits there for over 1/2 and never does anything. I then clicked "Cancel" and it sits there for another 30-45 minutes saying "Canceling..." and then I receive an error that states: "Visual Studio Team System Command Canceled". You can only click ok, which then brings up: "Error Command Canceled" I was able to successfully branch a ...Show All
SQL Server How to avoid user delete column
Dear all I would like to ask one sql question , it's that possible to use statement delete my columns select * from tablename where columna = '--delete from tablename ' ALTER TABLE <table_name> DROP COLUMN <column_name> See also: http://msdn2.microsoft.com/en-US/library/ms190273(SQL.90).aspx That article has an explicit example for this: B. Dropping a column The following example modifies a table to remove a column. Copy Code CREATE TABLE doc_exb ( column_a INT, column_b VARCHAR(20) NULL) ; GO ALTER TABLE doc_exb DROP COLUMN column_b ; GO EXEC sp_help doc_exb ; GO DROP TABLE doc_exb ; ...Show All
Visual Basic 3 Questions about Panel component
Hi all, I just change to .net from vb6. There are three question about Panel component drove me mad. 1. I try to use drag and drop change the Panel position inside of winform. I can start drag by these code Panel1.DoDragDrop( Panel1 , DragDropEffects.Move) But I don't know what to write in Form1_DragDrop sub. to drop panel1 in the right position 2. Drag effect. In VB6 there is a g rey edge no fill rectangle for shape component when dragging it, that shape will move when drop . VB6 Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single) Picture1.Drag vbEndDrag End Sub Private Sub Picture1_MouseDown(Button As I ...Show All
Visual C# How can I join two image file into one file?
I intend to present text by image , for example text abc , I present by drawing three image "a.jpg","b.jpg","c.jpg". Now I want to create a file "abc.jpg" as a result of joining three images. Can you help me with some code demo Thank you very much. seigo wrote: http://www.codeproject.com/useritems/JoinImages.asp Thank seigo , it works ! its simple with your help , but its difficult without help . It took me a lot of time . Thank seigo again! ...Show All
Visual C++ Hided classes
Hello. In this moment i'm developing a little framework with DirectX, which is formed by a series of class which have got public and private members. Now if i compile the lib and use it into my project, the compiler is able to see public and private members, while i'd like to hide private members. Is there a way mabye with precompiled headers Other things VincentITA wrote: Hello. In this moment i'm developing a little framework with DirectX, which is formed by a series of class which have got public and private members. Now if i compile the lib and use it into my project, the compiler is able to see public and private members, w ...Show All
SQL Server Authentication errors after backing out changes for forms authentication
We attempted to run the custom authentication sample from the RS samples. We had issues and attempted to "back out" our changes - being stupid, we didn't back up our config files. "How hard could it be " Well, 8 hours later, we're out of answers as to why we can't run RS anymore. Yes, learn from our mistake. We're hoping someone can help us with the following. When going to http://localhost/Reports , I get the following: System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.R ...Show All
Visual C++ Control parallel port in C++
hi Anyone of you can send me the complete code to control the data pins(2 to 9) of parallel port using VC++.I want to get complete code with an example. Yours sincerely Umair Here's a class. But getting full control over the port, you might need a special driver. http://www.naughter.com/parallelport.html ...Show All
