yanivpinhas's Q&A profile
Visual Basic Using & in VB 2005 controls
In VB 6.0 when you place the “&” in front of a letter its underline the letter and the control that has it can be called with the keys “ATL+underlined letter”. In VB 2005 you can do that two but the underline letter doesn’t show up unless you press the ALT key. How can I make that the underline letter show up always In the design shows up but in the runtime it doesn’t unless I press the alt key. ...Show All
Visual Basic what type of collection to use?
I have a collection of type System.Collections.Specialized.NameValueCollection, which is great for getting the value of each item using either the Key or Index. However, I also need to be able to get the Name of a Key using it's index, and this doesn't seem possible with this type of collection. The only way I can see to do it is by keeping two collections going, the second with the name of the key in the first collection, that can't be right! Anyone out there who knows about collections can tell me a better way Thanks While setting up an example of the inherited class I noticed that the namevalue collection has a getkey(byval Index as integer) method which will return the name of the key by index...is ...Show All
Visual Studio Team System Switch MSDN Versions
I know there is about a million licensing post on here but I can't find the answer to my question anywhere. Is there any way to switch from one MSDN Team Edition to another. I have VS for Software Developers but would like to switch to the DB Pro version. The DB Pro version wasn't out when I got my MSDN subscription so it makes sense to me that there would be a way to switch to it now that it is available. How do I go from one VSTE version to another without having to buy VSTS Thanks for the help guys. I was able to do it here: https://buynow.one.microsoft.com/rssc/homePage.aspx tabid=0&storeid=967ffca7-1628-4a77-a64a-c5e8139ec03f&localeid=en-us using the "Change Subscription" option. It ...Show All
SQL Server Scheduled Subscription recurrence
I've read the blogs on setting up a scheduled subscription that fires more than once a day. It blows my mind that you actually have to create a separate subscription for each time you want the schedule to fire in one day. Forget duplicate notifications, how do you handle the resulting duplicate subscriptions (except for the start time) from a subscription management standpoint If we created a scheduled subscription for a user that fired once per hour in our Subscription Management interface, when the user returned to maintain that subscription they would see 24 copies of virtually the same subscription ( ) The only solution I see to this is to create a "dummy" subscriber (with the same E-mail address etc...) that corresponds to ...Show All
.NET Development Help needed:server.transter not working for callbacks
We implemented a web application which use a custom module for authentication. The problem is that the session expires and the first call to the server is a callback, the serve.transfer does not work (the page to which the request is transfered is executed, but the browser just diplays a blank page). Does anyone have a solution to this problem. Any help would be appreciated. If i wait a litle longer after the session expires the login page is loaded, but no pictures or .css files are downloaded. Does anyone know why ...Show All
SQL Server SQL Server Logs - big and unopenable
For whatever reason the SQL Server Logs (found under Management|SQL Server Logs) are fairly large. 'Current' right now is 52.606.607bytes in size, older ones are . This effectively prevents them to be opened from the Enterprise manager. Is there a way to rotate this SQL Server Logs on a higher pace Thanks joey. I was not talking about the transaction log. I was talking about the SQL Server Log, found in Enterprise manager under Management. ...Show All
Visual C# Exporting and Importing RSA Keys in Binary!!!
Hello, RSACryptoServiceProvider class provides 3 different ways to import and export Crypto keys. To and from XML To and from BLOB (Binary) To and from RSAParamters I have worked fine with XML implementaion, I Export and save XML based key pair and use it later when I need. For some reason I want to use Binary implementation, The simplest solution seems that I use following: RSACryptoServiceProvider rsaCryptoServiceProvidesCipher; rsaCryptoServiceProvidesCipher = new RSACryptoServiceProvider (2048); byte [] key = this .rsaCryptoServiceProvidesCipher.ExportCspBlob( true ); now I hardcode this key in the assembly and use it later. Now the problem is what if someone decompiles the assembly and knows ...Show All
Software Development for Windows Vista SqlWorkflowPersistenceService and locking
Hi, Does the SqlWorkflowPersistenceService lock WF instances that are unload from persistance by default From what I am seeing when a runtime unloads an instance from persistance unlocked = 1 and blocked = 1 meaning that the instance is not locked. Can other concurrently running runtimes also unload this instance even if it is executing in a seperate runtime Thanks, Brian Actually this one should also be a good post for your question: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=371851&SiteID=1 Thanks, Kushal. ...Show All
Windows Live Developer Forums Live Alerts & Visual Basic 2005
Hi everyone, I'd like to know if anybody has some sample code using Visual Basic 2005 to send a Live Alert to Windows Live Messenger. I'd like to do some research on this topic but am not really sure where I should start. Are Live Alerts free for business use Thanks, ST Windows Live Alerts is an opt-in system, meaning your users individually must sign-up for alerts from you before you send alerts to them. There is no way to tell the alerts service to push an alert to a list of email addresses. Sorry. :) ...Show All
Software Development for Windows Vista Designer re-hosting and custom activities inside xoml-> NullReferenceException during GetRootActivity()
Currently I'm trying to re-host the workflow designer, who's not ;) But I'm failling with each mdsn code sample when I try to load a custom xoml workflow. I end up with a NullReferenceException during the GetRootActivity() method or I see an empy diagram showing nothing but emptyness ;( I know that there is TypeLoader service available, I've added my assembly to this typeloader before the WorkflowLoader tries to load (create instance of) the workflow and it's custom written activities. I would like to load a xoml based workflow with custom activites inside the rehosted designer, what am I missing Thanks Chris - here are two things I always do to help with loading XAML: Create a "wrapper" ITypeProvider. Th ...Show All
Smart Device Development gwes.exe errors
I am developing and testing a Windows Mobile 5 application. Occasionally, I get the screen "A problem has occurred with gwes.exe". How can I determine if the gwes.exe problem is related to my application, and if related, the nature of the problem (so I can correct) Thanks, Frank Do you see a fairly consistent failure The gwes.exe error is likely an issue with the application you are writing, passing in invalid pointers to system api's will occasionally manifest itself as a gwes.exe error. Do you see this while running in the emulator You may want to attach to your application to see what it is doing at the time that this happens and hopefully that will give you an indication of ...Show All
Visual C# Getting started with Business objects
Hi guys, i m trying to get started with Business Objects, but i m a little bit lost here.. hope you guys can help me out. So far all the tutorials i read on the internet just show you how to make an "employee" or a "product" class, coding that is very simple, and i don’t have any problems using them and even binding them to Windows Forms using BindingLins<T>, etc... i ve been testing it out and it works fine. But right now i m trying to make something that have some relations, and i cant figure out how i am supposed to do it, what i m trying to do is a simple "Order" class that is related with a customer and some products... something like: Order Customer Products So, could you guys help me out with this ...Show All
Visual Studio 2008 (Pre-release) How to use linq with windows form control and WPF controls?
LINQ is a very exciting technology. As of today, I have seen how it can be integrated with ASP.NET. However, I never seen a sample app on how to use Linq with Windows Form controls such as DataGridView and WPF controls. For wpf it has many similarities with ASP.NET web form so I think it is easy to make it work with WPF controls. Any one can point me to some articles or sample applications with regard to windows form control thanks, bill Also, I can't post the entire code, but here are a few lines of code from something I was working on several months ago that uses LINQ to populate a combo box with shipping codes from a database table: public class MyListItem { private string _text; private string _value; ...Show All
Visual Studio Team System One team project or multiple ones for a large product?
We have a large product that has a generic core product. This core product has multiple versions. The core product is a single Visual Studio solution with many projects in it. There are multiple client specific implementations of the core product. Each of these client implementations is a copy of the core product VS solution/projects with customizations. We currently use ClearCase to manage the code like this: core product v1 v2 v3 client 1 v1 v2 client 2 v1 ......... client1 v1 has files linked to core product v1, and client1 v2 has files linked to core product v2 etc. For source control purpose, I know it's better to setup one single TFS team project with multiple folders (coreProduct, client1, client2 etc) so we can use ...Show All
.NET Development When linking ILASM doesn't set version information
After compiling pure IL code with ILASM my resulting dll doesn't show Version tab on Properties window. It seems that attributes are not used when linking. There is no possibility to use al.exe - it says I can't link files containing assembly but how to produce netmodule from il Marcin But how to prepare such a file What should be inside rc file I don't know what is the exact name of this resource name and can't find any information. ...Show All
