kinggt4's Q&A profile
Visual Studio Express Editions MenuStripItem on sys tray
After looking at this topic here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=381830&SiteID=1 Anyone know how to add some Sub or something for handling each individual MenuStripItem yes, exactly as I said. try this: on your form designer add a notifyicon and a contextmenu then click on the notifyicon to bring up is properties and in the "ContextMenu" select the context menu you just added then select the contextmenu control and on your form will appear a context menu strip. add your items in there once added, for each item you added, double click on the item to make an event for that item you would click on your systray icon (When you right click) do ...Show All
Smart Device Development TAPI lineIntializeEx() Compact Framework V1
I have an application that successfully uses the TAPI functions with a .Net Compact Framework Version 2. I am trying to port that to Compact Framework Version 1 and am having issues. Here are my structure and method definitions: public delegate void LineCallBack (System. UInt32 dwDevice, System. UInt32 dwMessage, System. UInt32 dwInstance, System. UInt32 dwParam1, System. UInt32 dwParam2, System. UInt32 dwParam3); public struct lineinitializeexparams { public uint dwTotalSize; public uint dwNeededSize; public uint dwUsedSize; public uint dwOptions; public System. IntPtr hEvent; public uint dwCompletionKey; } [ DllImport ( "coredll.dll" , SetLas ...Show All
Visual Basic List values in enumeration
Hi, Does anyone know of a way in which I can list all of the values in an enumeration I want to use the enumeration values to populate a listbox. Here is my enumeration: Public Enum Processes ForceVolume PeakAdhesion Slope End Enum Regards, Bob Dim EnumValues () As String = [Enum] . GetNames ( GetType ( Processes )) For Each s As String In EnumValues Debug . Print ( s ) Next ...Show All
Visual Basic Help - How can I runa VB program without runtimes installed
Hi, I'm new here and I was wondering, is it possible for me to run a VB 2005 program using the Framework 2.0 on a computer without the runtime I want to do this because for a project I've decided to make a program but the computer I wnat to run it on and show teh class does not have the necessary runtimes installed. If I'm running it off a USB Flash Drive is it possible for me to do something such as install the runtimes to my USB Flash Drive and have the program use the files from the Flash Drive As you know, this is a school so I'm not allowed to install any software and this is the reason I ask this question. Thanks. Not quite true. Some obfuscation programs will let you embed the framework into the ass ...Show All
Visual Studio Express Editions How to delete selected row in datagridview?
Hi, how do I permanently delete selected row in datagridview as well as permanently deleting it in my .mdb file . Thought of using oledbcommand or something but I am still a beginner in C# so not familiar with Oledb. Thanks. private int sn; private double ps = 60.0, odc = 0.62; private double Q, H, op, odp, pdp; string connectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\FYP\FYP.mdb;User Id=admin;Password=;" ; private void Form1_Load( object sender, EventArgs e) { // TODO: This line of code loads data into the 'fYPDataSet.Pump1' table. You can move, or remove it, as needed. this .pump1TableAdapter.Fill( this .fYPDataSet.Pump1); sn = 1; pump1DataGridView ...Show All
SQL Server XML Source into Recordset ( ADO Enumerator )
In "Data Flow", I am attempting to use "XML Source" to read a XML document into a recordset and in "Control Flow", into a Foreach Loop Container ( foreach ADO enumerator ), where I map the attributes to DTS variables. SSIS allows you to specify the input columns by means of an index number. The problem is you don't know what index value to use for a particular input attribute. It does not seem to be in the same order as the what the XML input is. This is very troublesome. Ideally, you should be allowed to select the value based on attribute name. Has anyone seen this problem Any ideas Is there anyway in XSD to force the parser to return attributes in a specific order Thx. ...Show All
SQL Server SSIS Data Flow task fails to load all text from flat file
Hi Guys, I have a flat file which is loaded into the database on a daily basis. The file contains rows of strings which I load into a table, specifically to a column of length 8000. The string has a length of 690, but the format is like 'xxxxxx xx xx..' and so on, where 'xxxx' represents data. So there are spaces, etc present in the middle. Previously I used SQL 2000 DTS to load the files in, and it was just a Column Transformation with the Col001 from the text file loading straight to my table column. After the load, if I select len(col) it gives me 750 for all rows. Once I started to migrate this to SSIS, I allocated the Control Flow Task and specified the flat file source and the oledb destination, and gave the output column ...Show All
Windows Forms Drawable Items in TreeView
I have a tree view that i want to show some nodes in it. how can i create nodes that can draw themselves without using imagelist in treeview Actually i dont want to use any image index and imagelist. yes , and if you just wanna draw the icons for the nodes and let the treeview do the left a couple of lines can be added to your code: e.DrawDefault = true ; base .OnDrawNode(e); thats it. ...Show All
SQL Server Scale-out on XP in Workgroup?
I'm trying to test scale-out functionality. I have three XP VXC images. All in workgroup, using Administrator as interactive as well as service logins. Administrator has same password on all three VPC images. Is it possible to fun a web farm in this scenario VPC A: SQL Server is installed, functioning properly. VPC B: RS is installed and uses SQL Server on A, functioning properly VPC C: I cannot get this initialized (from VPC B). I used the directions in the July BOL. Using Report Server Configuration, I get below error when I connect to B and try to Initialize C: ReportServicesConfigUI.WMIProvider.WMIProviderException: A connection to the computer cannot be established. ---> System.UnauthorizedAccessException: Access ...Show All
SQL Server SP2 Copy Database Wizard better, but still problems
I installed SP2 today and started transfer databases from our old production server with SQL 2000. The Wizard is much better now when using SMO Online transfer and I succeefully transferred several databases. But I now have three databases with a strange error: Here is one error when I try to copy the database OEWRegister. It seems like all objects are transferred and it fails in the end with: OnError,JABBA,VD-ISP-NET\SQLServer,QUI-GON_JABBA_Transfer Objects Task,{FD7EE38E-70E0-4D01-8E4E-9CC1D44BA7B4},{19F9A272-F90C-446D-BF0E-EA333D06ACD3},2/21/2007 9:06:15 PM,2/21/2007 9:06:15 PM,0,0x,ERROR : errorCode=-1073548784 description=Executing the query "IF EXISTS (SELECT name FROM sys.databases WHERE name = N'OEWRegister') DROP DATABASE ...Show All
Windows Forms How to change the selected value
I need to change the selectedvalue, of the comboBox by passing in the new value in a fucntion but i keep getting object ref not set to instance of an object.....If I change the selected value in the combobox will it change the Display member based on what selected value i pass it...check out my code and see if you can tell me where i am going wrong... public static void DisplayStopDetails( int StopID, string TypeOfStop) { Tracking.UI.MainWindows.StopOrderLegDetailsForm frmStopDetails = new StopOrderLegDetailsForm(); frmStopDetails._StopDetail.StopID = StopID; frmStopDetails.cboStartingPoint.SelectedValue = frmStopDetails._StopDetail.StopID; //frmStopDetails._StopDetail.StopID = ( int )frmStopDetails.cboStarti ...Show All
SQL Server RS2000->RS2005 migration: ignore warning messages and continue
Hello, I am migrating several reports from RS2000. The build process throws several warning messages. I know these warnings can be safely ignore in my case. I just want to ignore these messages and continue. How do I do that thanks Jenny [rsOverlappingReportItems] The line ‘line24’ and the textbox ‘textbox38’ overlap. Overlapping report items are not supported in all renderers. [rsOverlappingReportItems] The line ‘line24’ and the textbox ‘textbox39’ overlap. Overlapping report items are not supported in all renderers. [rsOverlappingReportItems] The line ‘line24’ and the textbox ‘textbox40’ overlap. Overlapping report items are not supported in all renderers. [rsOverlappingReportItems] The line ‘l ...Show All
SQL Server Error when I try connect to a database
Hi! I just have downloaded VWD C# express and get a big problem when I try to connect to a database, I use the SQL data source object and when I'm trying to connect to a database I can't use the INSERT, DELETE and UPDATE object in the database. I now that I have to click to advanced button and click for INSERT, DELETE and UPDATE objects but I don't even can click for that so something is very wrong, but what I use Microsoft SQL server database file as a data source and if I try to use Microsoft SQL server (sqlclient) instead I get this huge error: " An error has occured while establishing a connection to the server. When connection to SQL Server 2005, this failure may be caused by the fact that under the default SQL server does not a ...Show All
Windows Forms GridView with Radio Button
Hi, i am using Visual Studio 2005, (Framework 2.0) How to Display Radio Buttons in GridView. Thanks Please refer to http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnvs05/html/winf_radiobutton.asp Hope it is helpful ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Quadtree project
I have started a Quadtree project. It can be downloaded at http://www.codeplex.com/quadtreeload I would be interested in comments on the direction I am taking on the Quadtree DrawableGameComponent. I have included a test program called JoshGameXNA. But, open the QuadtreeComponentLib solution and just set JoshGameXNA project as the startup project. Excuse my C#, but I'm new to it. Any construction comments are welcome. It's seems you may have to click on "more releases" to get to the "Special Build 0.1.1" project. Not sure why..... Hiya, I tried to open up that solution (QuadtreeComponentLib.sln) try to compile and its still looking for the custom content processor, what I cant understand is both the jpg files in th ...Show All
