Vipul Modi's Q&A profile
Visual Studio Question on reportViewer1.ServerReport.ReportServerCredentials.SetFormsCredentials
Hi, all, I am now developing windows forms and use report viewer to display reports (Reporting Services) to user. Since some users are not domain users but still needed to access to the reports, I intend to use reportViewer1.ServerReport.ReportServerCredentials.SetFormsCredentials in order to control all users using the same windows account to access reports. However, the report viewer always return rsLogonFailed error. Below is my code: ( I can get the report in IE with the following username/password domain by http://100.10.10.10/reportserver but just can't display the report in report viewer using setFormsCredentials with this ac ...Show All
Visual Basic desktop handle..
hi guyz,, is there any way to get a GDC or HANDLE to desktop window using API or any inbuilt function in vb 6 or vb.net .. plz help.. ashish Depending on what you mean by "desktop window", look at the GetDesktopWindow or GetShellWindow Win32 APIs. Just make sure you don't abuse these handles. http://blogs.msdn.com/oldnewthing/archive/2004/02/24/79212.aspx ...Show All
Visual Studio 2008 (Pre-release) Limit foreign-table retrieval
using all kinds of tricks I am trying to retrieve all customers which have orders in a specific year. So far, so good, this works. but this customer object refers to the orders-collection and whenever I access that ALL orders are retrieved. No matter how I try to persuade the object to just retrieve needed rows from the DB, if I access the orders through the parent "customer" object, I fail. can someone provide me with a hint on how to do that here's my current code: var _custs = ( from c in Customers from o in c.Orders’ where o.CustomerID == c.CustomerID && o.OrderDate.Year == 1996 select c).Distinc ...Show All
Visual Basic Access to other forms procedure
I currently have a project that has one MDI container that opens only one form at a time. When switching forms I need to call the current MDI child Save procedure. I would like to call this from the MDI parent. I want to be able to call the save procedure no matter what form is loaded. Please if anyone has any ideas on how to do this it would be appreciated.Current code: Private Sub Form1ToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Form1ToolStripMenuItem.Click Debug.WriteLine( "Form1 Menu Item Click" ) If Not Me .ActiveMdiChild Is Nothing Then Dim ...Show All
Visual Studio Express Editions using windows authentication but having roles specific to the application?
Hi, I am interesting in finding out if it is possible to use windows authentication for a asp.net application, but where the roles are application specific. I want to have administrator role for the application, HRIS superuser, and standard user. The default would be a standard user role unless modified otherwise. Is it possible to use windows authentication, so that a person does not have to sign in separately from already being logged on and authenticated by windows, have the application know who the user is, and have the roles for the application at the application level ( ie not roles from windows signon) If so does any one know of ...Show All
Windows Forms Client Area
Why is it that with Windows.Forms controls, we only have access to the Size of the Client Area but not the Top, Left offset I've been trying to subclass a TextBox and add a Button on the Left and Right side of the text, but there it does not work for the left button which is ALWAYS rendered over the displayed text of the TextBox. ...Show All
.NET Development Modem Communication project
Please help guys, I'm working on a project that requires communication thru a Modem. I need to write code that reads a phone field in a table and then places a call to that number via my modem and delivers a pre-recorded voice message. I have no clue where to start, please help. Please see this forum post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=169106&SiteID=1 There is not currently support for the RAS api or telephony APIs in the System.Net namespace. If you would like to see such support in a future release, please email nclasks@microsoft.com and describe your scenario. We look forward to yo ...Show All
Visual Studio Team System Unable to create a Team Project
Hi, We installed VSTS Beta3 using dual server concept. In first server we installed SQL Server 2005 Sep CTP and TFS Beta3 Data Tier. In the second machine we installed Windows Sharepoint Services(WSS) and then installed windows update for installing WSS SP2 and finally we installed TFS Beta3 Apptier. We then installed VS 2005 RC and then connected to tfs server. We then want to create a Team Project we are getting following error: TFS30177: Team Project Creation Failed Error Insufficient permissions to create a new SQL Reporting Services at VSTSRC. Explanation The permissions granted your user name and ID on the SQL Reporting Se ...Show All
.NET Development How to Define sealed class using CodeDOM?
Hai ....., I 'm using VS.NET 2005 Beta 2. How can I generate a sealed class using CodeDOM. I tried the following method, but its not generating the sealed class; CodeTypeDeclaration theClass = new CodeTypeDeclaration (table.Name); theClass .IsClass = true ; theClass .Attributes = MemberAttributes . Public | MemberAttributes . Final ; Then be sure to add in the public flag as well: theClass.TypeAttributes = TypeAttributes.Sealed | MemberAttributes.Public; David ...Show All
.NET Development how to keep connection live while using httpwebrequest?
hi i am using httpwebrequest and httpwebresponse to send request and get response respectively. i want to keep connection live after sending one request in order to send another request using same channel. so plz help me. HTTPWEBREQUEST.KEEPALIVE = TRUE is not working. Hi I got stuck up with the same thing as what kavitha told .. but the scenario is somewhat different. As the connection is not persistent i cant set the keepalive property. Plus autoredirection is not allowed as its an VPN. So how can i move about Any solution other than settng the keepalive property of request . the other thin ...Show All
Windows Forms problem with aploading files to the project
i have build a little aplication, the application have button, when i click this button files browser opened and i want that the picture file that i selected will uploaded into 'myDirectory' directory that i have created within this application' the questions is how to upload this file how doing this in generally what is the way i winform to upload files in ...Show All
Visual Basic How to make a ProgressBar work like a TrackBar
Pretty much I want the ProgressBar to work much like a TrackBar . I do not want to use a TrackBar though. I want the value of the ProgressBar to equal the position of the mouse, just like a TrackBar . Throw a progressbar on a form and try this: Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .ProgressBar1.Maximum = Me .ProgressBar1.Width Me .ProgressBar1.Step = 1 End Sub Private Sub ProgressBar1_MouseMove( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs) Handles ProgressBar1.MouseMove Me .Progress ...Show All
.NET Development Timeout on connecting to non-existent server
I am trying to make a simple single-server, many client program. When the client starts I would like it to check if the server is running or not. It currently does this by attempting to connect and trying to catch a socket exception. However, this takes a long time to return a negative response if the server is not running. Is there a better way to check if the server is running or not Thanks, Aero In V2.0 of the framework, you can see if the remote machine is alive by using the System.Net.NetworkInformation.Ping class. Given, this does not tell you if the server app is running on that machine, but it ...Show All
Windows Forms help mdi form
i have a main form with a treeview...if i click on a node of the treeview a new form appears (for each node i have a different form)...now i want that when i click on a node, its form appears in the main app and in the same position of others nodes form...how can i do this please help Please note that this forum is for questions related to the C# language. Use the Windows Forms forum for questions related to Windows Forms. You will probably get quicker and better answers over there. I'll move the thread. The starting position and size of a form (any form) is defined by the StartPosition and Location ...Show All
Software Development for Windows Vista Asynchronous Activity sample
Is there any sample to run an Activity Aynchronously in beta2 Hi Ravi, By asynchronously do you mean in another thread If so, then this is not supported - the model is one thread per workflow instance. If you mean something else, please give me some more detail. Thanks, Angel ...Show All
