albidochon's Q&A profile
Windows Forms why invoke IComponentChangeService.OnComponentChanging method did not work?
hi all. i now create a custom designer for my custom component Type. and the designer implement IRootDesigner , IToolboxUser.. when i modify the component properties then invoke IComponentChangeService.OnComponentChanging method ,but it did not work why? please help me... thanks. my code like below... MyComponentBase _com = this.Component as MyComponentBase; _com.Names.Add(new Class1(tool.DisplayName)); IComponentChangeService _icc = (IComponentChangeService) this.m_component.Site.GetService(typeof(IComponentChangeService)); _icc.OnComponentChanging(this.m_component, TypeDescriptor.GetProperties(this.m_component)["Names"]); Matt Lin wrote: yes. the desig ...Show All
Visual Studio "Get Latest Version (recursive)" gives list of files for each project
Hi All, We are trying to implement MS-SCC API functions (v1.3) for a SCM. When a solution is opened in VS2003/VS2005 with multiple projects and choose option "Get Latest Version (recursive)" for a solution, SccGet() function is called with list of file for each project. I want to show list of all files in a dialog box. While if "Get Latest Version (recursive)" is selected for a project, it shows all files (including files from directory). Can't distinguish whether SccGet() function is get called from solution node or project node or file node. Any pointers Thanks, Abhay > This raise one more question - How to do IPC communication between MSCCI provider and package Both will be loa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna error
on this .GameComponents.Add( this .graphics); i get this error Microsoft.Xna.Framework.Components.NoSuitableGraphicsDeviceException was unhandled Message="The values used in the attempt to create the GraphicsDevice were invalid." Source="Microsoft.Xna.Framework.Game" StackTrace: at Microsoft.Xna.Framework.Components.GraphicsComponent.CreateDevice(GraphicsDeviceInformation newInfo) at Microsoft.Xna.Framework.Components.GraphicsComponent.ChangeDevice(Boolean forceCreate) at Microsoft.Xna.Framework.Components.GraphicsComponent.OnGameChanging(Game previousGame) at Microsoft.Xna.Framework.GameComponentCollection.Parent(GameComponent gameComponent) at Microsoft.Xna.Framework.GameComponentCollection ...Show All
SQL Server Problem running DTS package from Dot Net
Hi ; When I try to connect to DTS to execute a pkg like so: opkg.LoadFromSQLServer("BNG0193265y661y\TRSQL", , , DTS.DTSSQLServerStorageFlags.DTSSQLStgFlag_UsedTrustedConnection , , , ,"transUser_import") I get the following error: [DBNETLIB]{COnnectionOpen(Invalid Instance()).]Invalid Connection. I have verified the server name and the fact that I can use trusted connection. I also have a reference set to DTS. Supposedly all this is all needed in your code is the above plus the execute method. Any insights would be greatly appreciated !, -- Gordon Was this post helpful to you Mostlikely your instance name is ...Show All
SQL Server Reporting design with dataset and store procedure
we have a report that has many dataset but only one store procedure. is there a way we can do some kind of filter and groups to use one store procedure instead of 6 store procedure for each dataset How about using the same SP with different parameter e.g. Dataset1 pass in 1, Dataset2 pass in 2, etc... And see if you can share the codes in the SP, and differentiate the code ONLY IF necessary ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Starting work on my GUI system
Well, I've hit a wall with my game's development, and since there was no GUI with XNA 1.0, I've decided to go ahead and make my own GUI system. I implemented a lot of mechanics for my game, but I need greater interaction to proceed development in a sane manner. So far I've just implemented the text drawing stuff from scratch. It uses only monospace fonts generated with BMFontGenerator without using the generated .xml file. It's decidedly minimal to use only monospace fonts, but keep in mind two things - 1) my particular game doesn't require anything more robust than monospace fonts and 2) a game's engine should be designed around the game's specifc requirements. Otherwise you're scope creepin. I remind myself constantly not to let cool ...Show All
SQL Server datetime to date
Hi, everybody. I have a parameter from datetime type. Its' values are stored with date and time values together in the database. But I only want to show its' date value to the user. How can I do this If you are using the datetime values as a parameter, the easiest way to do this is to create or modify your parameter query: add a column with only the date value of the other datetime values. SELECT Date AS DBDate, CONVERT(VARCHAR(10), Date, 101) AS ViewDate FROM <<Table>> This query shows also the date in the format mm/dd/yyyy . Then use this query for the parameter: use the DBDate as Value and the ViewDate as label. ...Show All
SQL Server sql query
Hello All, I am using sql server 2005. I have a table with the following data.... Name date time load base Joe 01-01-2006 8pm-9pm 100 500 Joe 01-15-2006 8pm-9pm 100 500 Joe 02-10-2006 8pm-9pm 100 500 Joe 01-15-2006 8pm-9pm 200 500 Joe 02-10-2006 8pm-9pm 200 500 Joe 02-25-2005 8pm-9pm 200 600 Mark 01-20-2006 8pm-9pm 100 500 The first three rows have common data, but for the date. Similarly, the 4th and 5th row are similar to first three rows, but for the "load& ...Show All
Visual Basic Date and Time Format Problem
Question one May i know is there any time picker in VB.NET 2005 which allows user to enter a time The DateTimePicker can only retrieve current time and i think of using few combo boxes to form the format like hour,sec and AM or PM. Apart from that, is there any other way of doing it If i use the combo boxes method, how to parse the concatenation string as time and store in database Question two I allowed user to select a date from DateTimePicker and format the date as the below and store it in database. FormatDateTime(join_date.Text, DateFormat.ShortDate) The datatype of that column i set it to string in order to prevent any format error. One problem is that the time format (DD/MM/YY) appea ...Show All
SQL Server multivalue parameters - is this possible ??
i am trying to build a report that uses multivalue parameters - the report is a simple listing report that lists out a list of cases as a table - the data is obtained from a view which just returns all details for all cases there is no user input for the selection details - am going to be calling the report and passing over the parameter values directly to it. there are several parameters for the report - they all default to "All" for each of these parameters, i need to be able to either use the default value of "ALL" or to enter a list (comma separated ) q1) could i just enter the list as a string comma separated list (rather than as multivalued parameters) and then use this list to filter the data usin ...Show All
Visual Studio Express Editions Use of RegistryKey
I have been looking in the forums for info on RegistryKey and found lots of good info on read/creating/deleting/etc. My question is very basic...Can I use Registry Keys to store flags that one program sets and another reads (at some subsequent time). I basically want to know if a user interface program has set a flag that other programs read and execute some functions based on it. Note that these are not programs running simulataineously, but will query this flag later on. Thnx Well what do you know! ! ! I did use My.Computer.Registry and there is a trick You just can’t put data init. You have to use the CreateSubKey Method. Also please note that this Board’s editor wraps line irresp ...Show All
SQL Server Plase HELP ! SQL ERROR =>> An I/O error occurred while receiving the TDS prelogin response.
i get this error when i try to connect to sql server 2005 developer edition with the latest JDBC. sql string =>> jdbc:sqlserver://localhost:1434;databaseName=c1 Elvis elvis SQL STATE: 08S01 ERROR CODE: 0 MESSAGE: An I/O error occurred while receiving the TDS prelogin response. And the stacktrace is: com.microsoft.sqlserver.jdbc.SQLServerException: An I/O error occurred while receiving the TDS prelogin response. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source) at com.microsoft.sqlserver.jdbc.DBComms.Prelogin(Unknown Source) at com.microsoft.sqlserver.jdbc.DBComms.<init>(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source) at com.microsoft.sqlse ...Show All
SQL Server Same Event Handler for all the tasks in the Package
Hi, We want to develop an error handling process that will log the errors into multiple destinations (eventlog, text files or sql database) depending upon a variable set in the package. Also we want that this errror handling process should be initiated by all the tasks in the package on error. Is this possible Can the same event handler be called from multiple tasks in the package Also in the event handler can we call another package which actually does the error handling. This way we have only one place to change our error handling process in case required. Thanks in advance for your help. $wapnil Select the package name as the "Executable" and use the "OnError" as the &quo ...Show All
Software Development for Windows Vista How to call & pass the parameter to a workflow inside a workflow
Hi I have a workflow inside which i m calling two another workflow simultaneously. The problem I am facing is that I am unable to pass the parameter to the child workflow and also unable to returning the parameter from the child process back to the parent process. Also if anybody have any link from where i can get the sample which can solve my problem. Plz tell me. Thanks Kanhaiya Kanhaiya, Your scenario requires a Request-Response Message Exchange Pattern, where the request sends an information about the sender (in your case, it is the Parent's WorkflowInstanceID) to the Reply (child) Workflow. This pattern (known such as half-duplex communication) is based on the two One-Way connectivitie ...Show All
Visual FoxPro No Connection Sting handle
I cannot figure out why I cannot get a valid handle for a connection I am able to establish in Command Window as well as in a method. The question mark statement consistently returns -1 which means: no handle (error). OPEN DATABASE ("D:\vfp_Projects\Data\d_data\histdata.dbc") CREATE CONNECTION Myconn DATASOURCE "MyFoxSQLNT" USERID "Administrator" PASSWORD "" IF EMPTY (DBGETPROP ("Myconn","CONNECTION","ConnectString")) myUserID = 'Administrator' myPassword = "" STORE SQLSTRINGCONNECT ('dsn=MyFoxSQLNT;uid=myUserID;pwd=myPassword') TO gnConnHandle gnConnhandle ENDIF The connection is being established because otherwise I would have gotten an error at DB ...Show All
