Sabrecat's Q&A profile
Windows Forms Save position in DataGridView after refreshing
I have DatagridView on a form. When user click to save changes I save tham and then re-red data agin to reflect latets updates from database. Question how I can return pintor on current record after refreshing Otherwise user clicj save and find himself on first row of DataGridView. It is really annoyning scrol to old position especially on big table Thanks here we go http://www.dotnet247.com/247reference/msgs/12/62294.aspx just one thing from me this sample create NEW connection to exceture set arithabort on BUT you shoul do it though the SAME connection so here is my sample which works perfect for ...Show All
Windows Forms ContextMenuStrip Problems
Hello Everyone, VS BETA 2 I have a MenuStrip with the standard items. I wish to create a contextmenu dynamically with the edit menu dropdown items in it. Obviously I don't wish to duplicate event handlers and of course I don't want to hard code the creation of the items. Why does the contextmenustrip remove items from the original list when adding them to the contextmenustrip. columnDataGridViewContextMenuStrip.Items.Add Is there any work around just to reference these items without duplicating them for each contextmenustrip I am sure I am missing something.... :-) Also of interest is that adding a seperator to a contextm ...Show All
Windows Forms A question regarding inheritance and interace implementation
Hi, Just out of curious. I have a class B, which is a sub-class of class A. Class B also implements interface I. Both A and I have a method called Update. Now my question is how to implement I.Update in class B in such a way that compiler doesn't give you the following complaint. Thanks. The keyword new is required on 'B.Update()' because it hides inherited member 'A.Update()' If I understand correctly you’ve got something like this... interface I { &nbs ...Show All
Visual Basic IDE pauses after every keystroke. -
Working in a project with 100+ forms, in one particular form I was working in today, there are 18,500+ code lines. I needed to add a couple of new methods, the problem is that the IDE is pausing almost after every keystroke. I have turned off intelli-sense. I have removed all Add-Ins, I have disabled as many things as I can in options, and it is still unuseable.. I have restarted computer, tried in disconnected mode (source safe). Machine is a 2.4ghz Dell Laptop with 2gig ram and 70gig hdd, WinXP SP2, with 20gig hdd space. it has so far taking 3 hours to write 30 lines of code, (between machine reboots, option switching etc), my bosses are ...Show All
Visual Studio Team System How to delete WorkItems?
Hi, Is there any way to delete a workItem created by mistake Thanks Lucas, You cannot delete a work item using Team Foundation. All work items are kept around for auditing purposes. If you really need to remove the work item you could use SQL, but this is not recommended. Ed ...Show All
Visual Studio Text is being cut off
I am using Crystal.Net in VS 2003. Sometimes, the text gets cut off on the right side of a text field. The only thing that I can find in common with all of the text fields that exhibit this behavior is that the data being displayed is actually a text datatype in a SQL Server 2000 database. It just breaks words right in the middle instead of pushing the word to the next line. Is there anyway to keep it from cutting off the text right click on the textfield - format field - common tab, check "can grow" checkbox ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Point where a ray intersects a plane
Hi, Im working on getting my 3D model to move around with the mouse on the screen and i have been trying to find out how to get a Vector3 location for where a ray intersects a plane and so far i can find nothing. If anyone can point me in the right direction on how to do this it would be excellent. Thanks for any help, -Dave Heres the current code im using to pick an object... [code] private bool Intersect( Mesh mesh) { Point cursor = this .PointToClient( Cursor .Position); Vector3 near, far; if (cursor.X < 0) cursor.X = pictureBox1.Width; //this.Width; if (cursor.Y < 0) cu ...Show All
Windows Forms Auto-Updating DataBindings
I scoured the code and I can't seem to see how the Projects combobox is updated when a new Project is added to the DB. I've always done this in the past with a fresh DataBinding and an Invalidate(). I do not see this happening. A reference to m_DataLayer is passed in AddProjectForm's ctor, and the add is made in the btnOk Click ev ...Show All
Visual C# "a" and "§" --- What's this ?
Hi PPl, Have any body got Idea about the special character "a" & "§".what's the usage i found this in a Web Service. It goes here, { strReturn += PwdReader["STAFF_ID"] + "a" + PwdReader["EMPLOYEE_CODE"] + "a" + PwdReader["FIRSTNAME"] + "a" + PwdReader["LASTNAME"] + "a" + PwdReader["STATUS"] + "§"; } And please help me to find this Character in the IDE. Thanks .. a = ASCII Code æ § = ASCII Code§ If you want ...Show All
SQL Server Error "Msg 6522, Level 16, State 1" receives when call the assembly from Store Procedure to create a Text file and to Write text
Hi, I want to create a text file and write to text it by calling its assembly from Stored Procedure. Full Detail is given below I write a code in class to create a text file and write text in it. 1) I creat a class in Visual Basic.Net 2005, whose code is given below: Imports System Imports System.IO Imports Microsoft.VisualBasic Imports System.Diagnostics Public Class WLog Public Shared Sub LogToTextFile( ByVal LogName As String , ByVal newMessage As String ) Dim w As StreamWriter = File.AppendText(LogName) LogIt(newMessage, w) w.Close() End Sub Public Shared Sub LogIt( ByVal logMessage As String , ...Show All
Visual Studio Paint a row
Is it possible to paint a row in the editor For example : I want to aint al the rows that are the declarations of a function. I Is it possible Avi Avi, If you know where the declaration is, you could just put a custom text marker on the text. This would give you a visual display similar to how breakpoints look (although you can determine the color). Would that work for you Thanks, Dylan ...Show All
Visual Basic Please help: convert statemets into PDf through VB code
Hi! I need to generate thousands of statements based on current database and then save those statements as PDf format in some local directory. The whole process should excute in some **.exe file in the background. Dose anybody have good suggestion how to do it Mostly, I will create some window console application to generate those statements which have data filled from database. My question is how can I convert those statements into PDf through vb code automatically and what kind format is better for those stattements before converting them into PDF format either html or word or something else I really apprec ...Show All
SQL Server Object Oriented Data Storage
Hi all, For our current project we have to store many different types of interrelated and hierarchical data items. We worked out an architecture and we prototyped it on a small prototype and it seemed to hold up well. Before I get going I just wanted to make sure that there are not any hidden catches: We are building a CRM/Data Flow process for a consulting firm. The firm offers many different types of services – each broken down into individual accounts that are billed separately, tracked separately etc… There are many different types of accounts. Some have similar fields and some have differing fields. One of the r ...Show All
Windows Forms SQL requirements to Set up Terrarium server
i had difficulties setting up terrarium server. i got the message "Login Failed for user '<user1>' " during server setting up. user1 's login type is under SQL server authentication. . sql server group = (LOCAL) (Windows NT) . password was created for user1 . connection string& ...Show All
Windows Forms Completely stumped... reallly need some help on this one!!
Hi all, I have an app developed in VB.Net which uses Photoshop scripting. In the Photoshop object model there is an object called TextItem which allows you to put text on a layer. One property of TextItem is Position which is defined simply as an Object. It expects two doubles - the x and y position of the text on the layer. When  ...Show All
