Vijay Guru Prasadh's Q&A profile
Windows Forms Problem with modal forms
hi, i created my own dialog, which is opened with ShowDialog(). thus a modal form is shown on top of the calling form. but when the calling form is not on top (other windows overlaying it) when the modal form is shown, it's rendered behind the calling form. not even clicking on the calling form brings the modal dialog to front. only clicking the modal form itself (when a part of it is visible) displays the form. that looks like a bg for me. is there a workaround for the bug thanks in advance! This may happen if you have forms with the TopMost property set to True. Or if you pass an argument (the owner) to ShowDialog... ...Show All
Visual Studio Crystal reports and .net
I am trying to create a .net app to run a crystal report and keep receiving an error when I try to login into the report. My crystal report is already created and is using a stored procedure that is run on a SQL server. I am attaching my code and the error that I receive when debugging. Any help would be appreciated. Imports System.ComponentModel Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports Everbank.Utility Public Class Form1 Inherits System.Windows.Forms.Form #Region " Windows Form Designer generated code " Public Sub New() MyBase.New() 'This call is required by the Windows Form Designer. InitializeComponent() 'Add any initialization after the Initiali ...Show All
Visual Basic I Need Help With Drop Down List Boxes
i was wondering if someone knew how to set drow down list boxes = a value in the table that is pulled up by the main drop down list box. I have a tracking No ddl that is sopposted to populate the entire table with the values for that record in the table. i have it where it will fill in the text boxes but the other ddls in the table are being filled by other tables that are f-keys in the trackingNo table. I now need the trackingNo DDL to select the right value for the other tables. here is the code for the ddlTrackingNo and see if that helps you help me... Please any help is welcomed.... Thanks, WoFe Private Sub ddlrackingNo_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ddlTrackingNo.Selecte ...Show All
Visual Basic Calling a sub and NOT recieving focus to the sub caller
Hello, and I am trying to write a program that hopefully in the future will sell (That's just background info, not the problem) so I'm not going to be super-duper-specific about the program. The program will do very basic authentication (simply retrieving a user list from the registry and comparing it to the user-supplied username) and will call a sub in another form when the user is authenticated. I've got the authentication to work, but is there a way to call a sub in another form and give the other form focus (ex. call Form1.MySub from Form2 and give Form1 focus until the user closes the form or another form - just an example) If someone could help, that would be great! Sure, on the first form you have ...Show All
Windows Forms Tab Control
Dear friend I had tab control in which 6 tap page,in each tab page number of control which is bind to the dataset. When i retreive data from database, merge logic is used to get data to the dataset which is binding to all the control in the tab control. The value get update properly to the dataset, and values comes proper to the first tab page control, But the value in the 2 and 3 tab pages not getting updated. It only get updated when i active that tab control page. Problem is when i retreive data and click on save button.In save Procedure i had written code for validation in which i m checking text value it show me Blank/empty. To save the value i have to click on all the tab page control and then click on save button. ...Show All
SQL Server How do I write an OUTER APPLY without a table function?
I'd like to select the last unshipped order, or if none is open, the last shipped order, for each customer. I noticed that all the examples on line for OUTER APPLY involve table-valued functions, but I have read (in a book I don't have here) that a subquery can work. The following shows what I want, but it isn't valid syntax: SELECT c . CustomerName , oa . OrderNumber , oa . Status FROM Customers c OUTER APPLY ( SELECT TOP 1 CustomerID , OrderNumber , CASE WHEN ShipDate IS NULL THEN 'due ' + CAST ( DueDate AS VARCHAR ) ELSE 'shipped ' + CAST ( S ...Show All
.NET Development Set User Authenticated Programmatically
Hello I'm not sure if this is the right forum so excuse me in advance. I'm developing a ASP.NET 2.0 C# Website having custom Membership, Role and SiteMap providers using the Login Control. This site should validate the user both through the login control and automatically when a specific key is set. The usage of Login system is perfect, the Membership.ValidateUser is called , the Login events raise correctly and the SiteMapProvider renders the correct items. The problem arise when I get the key; with this key the sw is able to get the user credentials but I'm not able to instruct the ASP.NET that the user is valid and let the Role and SiteMap providers work as they do when Login control is used. I tried to call directly the Mem ...Show All
Visual Studio Express Editions Favorites in webbrowser help!!???
ok im making a internet browser and i added the addtofavorites option and a favorites drop downlist these are the codes im useing Private Sub Favorites_DropDownItemClicked( ByVal sender As Object , ByVal e As System.Windows.Forms.ToolStripItemClickedEventArgs) Handles Favorites.DropDownItemClicked WebBrowser1.Navigate(e.ClickedItem.Text) End Sub Private Sub AddToFavorites_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles AddToFavorites.Click Favorites.DropDownItems.Add(WebBrowser1.Url.ToString) End Sub and when i add a favorite it gos right and everything but when i close the app and reopen all my favorites are gone how do i ...Show All
Software Development for Windows Vista ASP.NET - how to use WWF
Can anyone provide me with some guidance here, Totally new to WWF and was seeking some advice on the following: How do you call a Workflow App from an ASP.NET app E.g. On a button click on an ASP.NET form, how do you fire up a workflow at that point, passing in some data and then leaving the workflow to do its bit Just a conceptual view would be great for me, or- any examples in VB please. Thnx You have a couple of options - Take a look at these samples: http://wf.netfx3.com/files/folders/technology/entry841.aspx http://blogs.msdn.com/tomlake/default.aspx http://wf.netfx3.com/files/folders/rules_samples/entry8431.aspx Thanks, Kushal. ...Show All
SQL Server 2005 Management Studio Slow to start in some cases (have disabled certificate check)
If I open SSMS from the start menu it opens instantly. If I double click on a sql file in explorer it takes about 10 seconds for it to open (either in the existing instance, or a new one if one is not opened already) . If I try and open it by double clicking on a sql when visual studio is stopped at a break point, it takes about 20 seconds. How can I speed it up I'm bit confused why do you perform a RDP on that computer to open the files, apologies if I'm wrong. See this http://www.sql-server-performance.com/faq/ f=144 is any hlep. ...Show All
Visual C++ Intercept the PASTE message
Hi: I want to know how to intercept the event which is generated when the user do : CTRL+X or a paste. I don't find a message like SC_PASTE in the documentation. Is there any message related to the Clipboard Thanks. A.B. Use SetClipboardViewer http://msdn2.microsoft.com/en-us/library/ms649052.aspx , and handle the WM_DRAWCLIPBOARD message. ...Show All
Software Development for Windows Vista SQLDMO - AppVerifier error
Hi, I'm using SQLDMO.dll library in my project and it seems to cause AppVerifier errors. 1. while unloading ( both versions of SQLDMO - from SQL 2000 SP3 and SQL 2005 ) causes AppVerifier TLS error (on Vista RC1 and WinXP). 2. There's an extra error on Vista RC2 while initializing _SQLServerPtr from SQLDMO library ( "critical section has been already initialized" ). Here's sample code: #import "C:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqldmo.dll" rename( "GetUserName", "DmoGetUserName" ) int _tmain( int argc, _TCHAR* argv[]) { HRESULT hr = ::CoInitialize(0); { SQLDMO::_SQLServerPtr spSrv( __uuidof (SQLDMO::SQLServer) ); } :: ...Show All
Visual Studio 2008 (Pre-release) Middle/Common Biz Tier
I'm trying to prove out an idea. The goal is to provide a physical tier for my biz logic, however I want to enable/open this tier to .net client and other non-.net clients (Java and CFMX)...basically tcp and http/soap. So here's my idea... first I tried using .net Remoting.. almost got it working, but the wsdl is spits out doesn't work with CFMX. So now I'm looking at WCF. I have an example working using basicHttpBinding and I can get CFMX to call it, but now I encountered a different problem... actually it may be a take away from .net remoting. When you wire up your own host, you need to specify the type of the class you want host. This forces you to rebuild the host service every time you add a new class. Back in .net remoting you ...Show All
Game Technologies: DirectX, XNA, XACT, etc. What are the recommended books and sites for learning C# so I can then make a game using XNA?
XNA has made game development easy, but to use the XNA framework you still have to be able to develop with C#. You don't have to be an expert, but you do need to understand the basics of Object Oriented development and the general syntax for the C# language. That's great for those of us who are already developers, but there are a lot of people interested in XNA, that are not already developers (and some of them are developers who just haven't given C# a try yet). Every time a new game developer hopeful comes into the forums frustrated because they don't understand the code or where to start, we give them a generic answer about taking some development classes, find some books on C#, check out some C# tutorial sites or point them towards To ...Show All
Software Development for Windows Vista How to add Images like JPG,tiff into XPS Document
Hi , Can any one tell me how images like jpg , tiff can be added into the XPS Document. Thanks in advance for earliest reply. Santhosh Hi , Can any one let me know what is the difference between the Beta 1 & Beta 2 version of the XML Paper Specification. I tried opening the XPS document generated by embedding a jpg image which was openable by Beta 1 version , but Beta 2 version is hangging while opening. Can any one help me out in knowing where could be the problem is. Thanks in advance, Santhosh. ...Show All
