klez's Q&A profile
Visual Basic Need a background popup (a new concept)
Hi, Hope u all seen the popup displayed in Skype messenger or yahoo messengers, that this user signed in and u received a mail..... These popups wont affect the program which is currently in use and the popups act as a background process. I need to design such a kind of popup in VB to display alerts on particular period of time. THIS POPUP SHOULD BE DISPLAYED EVEN THOUGH I MINIMISED THE FORM. For example, eventhough when i was typing in a textbox, this popup should get displayed automatically if it suites the display criteria and this should not get focus and this shouldnot affect me typing data in the textbox. Please ...Show All
Visual Studio Any Practical Limits on Model Size?
If models are each stored in their own XML file, what is the practical limit on the number of objects in a model We are considering moving an existing application generator into DSL. The models contain thousands of objects. Hi DRB, To be honest, its probably not terribly practical to code this up using the current CTP as you'd have to completely replace the serialization scheme by hand and also get into managing multiple docdata objects. This is an area we're actively investigating for a future CTP. Sorry if I gave the impression that this was a "now" thing as opposed to a "future" thing. ...Show All
SQL Server Merge replication broke after SQL 2005 Evaluation upgrade to Enterprise
I'm try to upgrade SQL Server 2005 Evaluation with tuned up and worked merge replication. - I'm insert disk with licensed SQL Server 2005 Enterprise, start installation - in process, indicate instance for installing, in list of options appears I see option "ugrade" - All passes fine and go on: After upgarde I'm get completely broken merge replication! Moreover, such feeling that certain strange troubles with SQL Agent: all points context menu in Replication Monotor - disabled and if I try to start replication manually through jobs - too failed - with some error "agent shutdown" ! I'm try to build "clear&q ...Show All
Windows Forms What do I need for Avalon?
Hi, could anyone tell me what I need to start using Avalon I have XP with VS 2005 Beta2 installed. Do I then just need the 'Indigo and Avalon Beta1 RC' download or do I also need the WinFX SDK, or is it the longhorn SDK Thanks for your help Graham Hi, In order to locate the templates, start VS2005 IDE and expand the language say C#, you will find a separate entry for Avalon. and separate Avalon Projects listed there. Indigo comes as part of a new Namespace called System.Messaging.Indigo as well as System.ServiceModel Here are some samples: http://www.therhogue.com/WinFX/ Regards, Vikram ...Show All
Windows Forms coding dtls section of rpt.
Hi, I would be grateful for some help. I am trying to make certain fields visible and invisible on a report depending on the value in another field. The code I am using below throws an exception saying that the field is not a valid object, can anyone help. Or instruct me as to how I may achieve this. dim prodType as crystaldecisions.crystalreports.engine.re ...Show All
Visual C++ DirList ActiveX usage problem on localized VS .NET
Hi, As I know, VS uses DirList ActiveX component for showing some properies (see VC++ Linker's "Additional Directories" for example). In our integration we used the same approach. We crteated a dialog with DirList ActiveX on it. Here is the fragment from rc-file (part of DIALOGEX section ): CONTROL "",IDC_SLE_PATHLIST, "{442502BA-D873-4a37-9F19-3E38C42A3DDB}",NOT WS_VISIBLE | WS_TABSTOP,6,68,190,59 Guid belongs to DirList ActiveX. All works fine on English OS and VS .NET (we used VS .NET 2003). The problem occured on localized versions of VS (we checked German, Japanese and Chinese versions). Th ...Show All
Visual Studio Team System Code Analysis Error #0001 occurs
Hi If I apply to the assembly A attribute InternalsVisibleTo, then CA#0001 occurs. Invalid assembly strong name: <AssemblyName>,PublicKey=<Public Key> As I understood this is really invalid assembly strong name, because there should be PublicKeyToken, not public key, but InternalsVisibleTo demands PublicKey. So I thing FxCop shouldn't treat this string as assembly name. Thanks for your answer, Nick I don't use standalone FxCop, so I can't answer your question ...Show All
SQL Server Executing a package from within a C# program returns failure everytime
Hi All, I am trying to execute a package (programmatically) that is stored on my local disk using the information that is provided on the following page: http://msdn2.microsoft.com/en-us/library/ms136090.aspx This means, I am using the Application object and the Package object to actually load the package using the path to it. So my code looks something like this: ----- pkgLocation = @"<package_path>/Package1.dtsx" ; app = new Application (); pkg = app.LoadPackage(pkgLocation, null ); pkgResults = pkg.Execute(); Console .WriteLine(pkgResults.ToString()); Console .ReadKey(); ...Show All
Windows Forms Performing search on dataset
I am a big novice when it comes to ADO.NET and VB.NET so forgive me if I am making this hard to understand. I have a dataset that has 100+ rows and 12 columns. My table is named "DsInventory1.Inventory" within the dataset. I am looking for a brief coding example or resource to learn how to loop through each row and check to see&nbs ...Show All
SQL Server Migrating Registered Servers between EM 2K and 2005 SSMS
I have a couple of hundred servers buried in many Groups using win & sql auth. - i'm looking to capture all those settings and import it into SSMS - i see in SSMS that i can create a *.regsrvr XML file to import settings but that apears to only support 2005 to 2005 migrations - is there an undocumented feature i'm missing here.... Thanks Phil In my own research i did put together an VBA script that repicates the format 2005 is looking for in a *.regsrvr xml file and dumps in my 2000 EM settings but it seems like SQL 2K5 should support this on its own.. ...Show All
Visual Studio New Editor or Not?
I want to add a new argument to a recipe that will basically present a drop-down panel to a user allowing them to select one or more values from the drop-down panel. These values would then be used as input in the creation of a new project item. How would I go about doing this Would I create a new editor and attach it to the wizard field Or, is this done through creating a new Value Provider Dead easy - dont need a new editor simply create a new Converter, which is a class derived from TypeConverter in your package, and assign to your recipe argument. override the m ...Show All
Windows Forms role-based authorization
Hi, I'd like to introduce role-based authorization into my windows app. After signing in to the app, the user should be able to access only functions that are enabled based on his/her role. I want to do this by disabling some menu items and toolbar buttons based on his/her role. .Net Role-based secuirty caught my eye, but I am not sure how to use it to dynamically enable/disable menu items and toolbar buttons because I don't want to hard-code what roles are allowed to access a given menu item. If you know how to deal with it flexibly, please let me know. Thanks. Hi. Please see the below l ...Show All
.NET Development ASP.NET page layout in Whidbey beta 2
I have a quick query, and I would welcome any observations... Does anyone find ASP.NETpage layout in Whidbey Beta 2 very difficult. For example, in VS 2003 you just dragged controls - textboxes, dropdownlists, radio buttons, etc etc and placed then where you wanted to on the page, and they stayed there, both in the developer environment and when the page was run. With Whidbey beta 2, I am spending HOURS trying to neatly lay out a page Am I missing something Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP. ...Show All
Visual Studio Express Editions ListView doesn't show on form
I'm trying to create a ListView through code and add rows from a dataset to it. The code builds and runs but doesn't display a ListView on the form. It is getting data as I've walked it through and seen the ListViewItems getting added. Here is my code. Anyone have a suggestion Thank you dsItems.Clear() ItemsTableAdapter.Fill(dsItems.Items) Dim dtable As DataTable = dsItems.Tables( "Items" ) Dim ListView1 As New ListView ListView1.Columns.Add( "ItemDate" , -1, HorizontalAlignment.Center) ListView1.Columns.Add( "ItemText" , -1, HorizontalAlignment.Left) ListView1.Items.Clear() Dim i As Intege ...Show All
Visual C# How to handle cancelation of a file selection by a user, in a helpermethode
I’m trying to design a standard methode that returns a SqlConnection to its client. If the methode can’t find the standard file for whatever reason, it should open an OpenFileDialog form with which the user can select the correct file. My problem is that when the OpenFileDialog opens, it is possible that the user selects the cancel button. This means that the standard methode will not return a correct SqlConnection object. This will then call an exception in the client methode that I can handle, but I can’t define if this exception is due to a cancellation by the user in which case I don’t need to warn the user but just nee ...Show All
