lleoneye's Q&A profile
Visual Studio Express Editions form question
Normally form 1 is set to be the first page of our application, is there a way to set form2 to be the first slide of our application in the case where we have several forms Hi Wencey, I'm guessing this is what you're after, but in Solution Explorer, double click My Project. It'll open a new window. You can change the startup form here. Hope this helps, Bort ...Show All
Smart Device Development CeFindFirstFile using VB6
Ok, my first Smart Device project and I've come to a bit of a standstill, trying to find out what files are on the device. Tried the CeFindAllFiles, but from what I have read I don't think it will function in VB6. So, on to CeFindFirstFile and and CeFindNextFile. It all looks so easy. I'm confused as to how you set up the returning information. I keep seeing references to 'CE_FIND_DATA', but what is that all about If anyone has an example or ideas it would be appreciated. Bert You should look at the locale settings of your device. May be the locale settings of your desktop is not compatible with device and RAPI is picking folder names based on your desktop settings. Is your program working with Device Emul ...Show All
Visual C# Converting a string to int
I'am building a console program and need to convert a string that the user types to an int. If I use convert.ToInt32 a get the ascii code for the number but not the number it self. can anyone help me find a easy way to do this, if there is one :) hi Damon the input for my program can be something like this 1-9 7-9 So my problem is that I need to find just the charcters that are actual numbers and use the in my program the code I use to do this looks like this: for ( int i = 0; i < str1.Length; i++) { if ( Char .IsDigit(str1,i)) { int a = Convert .ToInt32(str1 ); Console .WriteLine(a); } } put this code returns 57 if the number 9 is in the string. I use Console.ReadLine() to re ...Show All
Internet Explorer Development ActiveX Modal Dialogs do not work in IE7
Our product is suffering some pretty severe problems because of IE7. We've starting getting calls that dialog windows become hidden. We've heard this is a threading issue. We found out that the problem is actually much worse. Modal dialogs don't seem to function correctly in IE7. You can recreate the problem using VB6 by doing this: 1. Create an ActiveX UserControl project. 2. Add a form to the project (form1) 2. Put a button on the user control (usercontrol1). 3. Add this code to usercontrol1. Private Sub Command1_Click() Dim objForm As Form1 Set objForm = New Form1 Call objForm.Show(vbModal) End Sub 4. Build the project as an OCX somewhere on your hard drive. 5. Find your control's CLSID in regedit. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Registering user GameComponent with GameServices
I'm finishing up work on porting some of my libraries as XNA GameComponents and I'd like to register some features with Game.GameServices . I've tried looking at the IGraphicsDeviceService definiton but came up short. Does the GraphicsDevice actually implement this or is it a separate object the GraphicsDevice privately creates and registers Can someone provide me with an example on how to do this I'd like to see creating the Service Interface and/or object When to call GameServiceContainer.AddService Any events I should create/use Thanks I have create a service to share the sprite batch of my game with its game components. I've created a class called SpriteBatchService, whi ...Show All
Software Development for Windows Vista Unexpected termination of state machine workflow
I have recently encountered an issue with my statemachine workflow, where the workflow is terminating. I have enabled tracing for the workflow. My workflow is signed. My workflow is exposed via web services. The interface and messages used by the WsInputActivity is located in another assembly, which is also signed with the same key. Here is the output of the error information. Does anyone have any idea what might be going wrong Obviously something is throwing an argument null exception, but the where and the why is very puzzling to me. I havent been able to find any information on the objects in this set of exception details: Description: An unhandled exception occurred during the execution of the current web request. Plea ...Show All
Windows Forms "Method not found: 'Void myLibrary.myDGV._SetSource(System.Data.DataSet, System.Data.DataTable)'."
Hi i get this exception while accessing a method in another project, the solution used to work fine until ive defined this: Public Sub _SetSource( ByVal ds As DataSet, ByVal dt As DataTable) Me .mySource.DataSource = ds Me .mySource.DataMember = dt.TableName End Sub Public Sub _SetSource( ByVal o As Object ) Me .mySource.DataSource = o End Sub i only had setsource(o as object) before, then when i've put the second method, that take 2 parameters, i start getting this exception at run time. System.MissingMethodException was unhandled Message="Method not found: 'Void myLibrary.myDGV._SetSource(System.Data.DataSet, System.Data.DataTable)'." Source="Costing" Stack ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2D per Pixel Collision Detection(Scaled texture)
Hi, I have read the article in www.ziggyware.com(http://www.ziggyware.com/readarticle.php article_id=52) about per pixel collision detection method. This method looks great. However, I find problems when I start to implement textures that can changing scale in every frame. In my current algorithm, whenever the scale is changed, I recreate the list that stores the points of silouette. It looks fine if the scale only changes once. But if the scale is keep changing from time to time, the List is also keep changing, making the game greatly slows down. (6xx fps -> 1xx fps for rendering a single texture) Therefore, I am thinking of any other approach without modifying the basic List. I think the first step is to consider how to fill the gaps ...Show All
Visual Basic Client certificate from within a services
Hi there, I have build a windows service wich will communicate to a web service. This web service requre a certificate for authorisation. When i run the services under "local system" it doesn't send the certificate to the web services. If i run the services under a user account it's perfectly, but this is not an option for us. How do make the services send the certificate to the web service when it is running under "local system" Thx for the reply. This example works when running in an (console) application, but when i turn the application in a services. It will add the certificate to the proxyobject but it doesn;t send it to the web-service. It looks like the windows se ...Show All
Visual C# Creating "in memory" Files
Hey Everyone I am writting an application where I want to create a file in memory, that may not be the right term, and then send in via an email to several people. By "in memory" I mean that I dont actually want to have the program create a file that would be on the hard drive. What I want is the file to be temporary but be able to be emailed. Can I do this and if so how Thanks Kenzie You can use a MemoryStream or a StringStream, both of which act exactly like FileStream, but keep their data strict in memory. When it comes time to create the email, you can attach a Stream (of any form) to the message. ...Show All
Visual Studio 2008 (Pre-release) Handling CollectionChanged event in a UserControl which contains a ListBox
I need to add an event handler to my UserControl which fires whenever an item changes in its ListBox.ItemsSource collection. The ItemsSource is an OC - and the ListBox is automatically updating just fine whenever data changes, however, I need to do some custom stuff as well whever data changes. So this should be simple, but I can't seem to find and example of how to do this. Some more details which may be of assistance... The ListBox is bound to the data using the ListBox.ItemsSource property: public void SetItems(object items) { ListBoxInstance.ItemsSource = (System.Collections.IEnumerable)items; } the data class is an ObservableCollection and implements INotifyPropertyChanged: pub ...Show All
Visual FoxPro VFP - Word Integration - Updating Existing Word Macros
I have been updating our word integration as we port our application from fp2.6 to visual foxpro. This means that I need to develop a conversion program that will update all the old template documents that users have. The approach I am researching is that I will create new template documents and then copy the contents of the old template into the new template. Has anyone programmically copies the contents of one word document into the other. This would include text, merge fields, pictures etc. A code snippet would be greatly appreciated. thanks, Stuart I appreciate the information. The problem with this approach is this also brings the old macro information and custom command bars which I d ...Show All
SQL Server Confusion over @@ROWCOUNT test
I have a pair of services. One is an initiator of a conversation, another is a target. I have a pair of message types, one sent by the initiator one sent by the target. I have a pair of queues corresponding to the above services. Both queues have activation stored procedures associate with them. The intiiator sends its mesage to the queue that the target service is defined on. The activation procedure successfully retrieves the message, does some work and then sends a reply message on the same conversation to the initiating service. At this point behavior seems to become strange. Some of the time the send from the target service produces the "zero length message" error and indeed at times the message body is em ...Show All
Windows Forms DataView Sorting
Hi, I have two combo boxes and a DataGridView. The two combo boxes are going to serve as filters for the DataGridView. When the form loads a stored procedure is called to return a number of records to be displayed in the DataGridView. The grid can then be filtered by using either one of the combo boxes. If the selected index changes on either combo box a DataView is created from the DataTable holding the data from the stored procedure and a Row Filter is a applied depending on what the Selected Item Value is. All this works great but the problem I have I need to combine the two filters into one. I.e. if you want to filter the data to show only today’s events and then filter it again to only show a certain type of event. ...Show All
SQL Server Date Parameter and text box question
I have a report that runs transcripts for people. I have a date parameter setup along with last and first name. The date parameter field is used to specify what year (ex. 1/1/2006 - 12/31/2006) to pull the information for. Now..I have a text box at the bottom (Footer) of my report that says something to the affect of "Official transcripts for 2006". There will be times when I have to run the report using a different year other then "2006" in the date parameter field. How do I have the text at the bottom change to reflect the year I'm reporting on If I use dates say in 2004 I need the text at the bottom to reflect that year and not 2006. Can this be accomplished Thx, Bill ...Show All
