Jason Bentley's Q&A profile
Visual Studio How to pass Report parameter in ReportViewer Control
Hello Friends, I am using VS2005. how to pass the Report parameter in the reportviewer control I am using ther Remote mode for the report. till now i know that i can set the parameter is using the bellow method. This SetParamters method only accept the parameter like Microsoft.Reporting.WinForms.ReportParameter type. this .reportViewer1.ServerReport.SetParameters(). But can't findout how to pass that parameter in the method. please help me. Nil ...Show All
Visual C++ constructors help
Alright, i'm working on a new application, in wich i need my own TreeNode Variants, with his own information. I made a new struct called InfoStruct in wich i hold my own Information. Next, i create this new class, VCNode wich is a inferred class from TreeNode. public value class InfoStruct { //TODO: Put all the nessesary info here. String^ Name; }; public ref class VCNode : public TreeNode { public : VCNode( String^ na ...Show All
.NET Development Reset XML Declaration using XmlWriter
I am trying to use XmlWriter to create XML. I need to have the XML Declaration to be < xml version="1.0" encoding="ISO-8859-1" >. I tried to set the Encoding in the XmlWriterSettings to "ISO-8859-1". I see the Encoding changes to “ISO-8859-1” in the setting but no matter what I do the resulting XML Declaration always looks like < xml version="1.0" encoding="utf-16" >. I don’t know if this is a bug or a feature. Here is my code: Str ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Transformation of a single object
Hi! I just started learning directx and here is the first of probably many newbie questions. Please, be patient :) How can i transform a single object I used Sample Framwork to load a "tiny.x" mesh and created simple triangle. I can rotate them together (by rotating the whole world) but how can i transform only one object I've got also small problem with my "tiny.x" mesh. It's not so tiny after all :) If i move my camera, so i can see ...Show All
.NET Development Same Membership Table Different Roles/Profiles
Hi, is it possible, using either the SQLMembership Provider, or tweaking it, to have the same Membership table, but having different Roles per application Scenario: Imagine a Company Intranet. I want 1 users table for Intranet. Image i create another application on the Intranet. I want this application to be authenticated against the 1 user store, but this application to have different Role data, and possible different profile data. Us ...Show All
.NET Development VS 2005 DataTable performance problems?
Hi there, I have a app built in .NET 1.1 that I have recompiled in VS 2005. I've noticed that some highly iterative loops are now many orders of magnitude slower in 2.0. My loops process several thousand rows in a couple of seconds in 1.1, and in 2.0 they take about one second per row. Since I don't have a way to profile my code in VS 2005 (I used to use DevPartner for that), I'm guessing that this is caused by the DataTables or DataRows that I' ...Show All
Windows Forms Image size in TreeNode
Dear all, I'm trying to set different images to each TreeNode in my TreeView. I created a large image for my TreeNode and added it into TreeView's ImageList and set TreeNode's ImageIndex. but whatever size of image I used, I always get the little&n ...Show All
Visual Studio Team System Too many versions of VS2005
I like the idea behind Team System, but I must say that I find all these different versions of Visual Studio to be extremely annoying. I work for a small company, where I may very well end up doing both architect, developer and tester work. My VS2005 Team Edition for Developers is capable of doing most of the work, but it does not contain the architect tools and some of the test tools. Buying the Universal version of Visual Studio Team Edi ...Show All
Smart Device Development "AT+CSQ" in vb.net2003??????????
Hi, I'm Trying to use the At'commands for the GPRS modem's management with vb.net2003.Mainly I'm interesting of a net signal's measure,so I use the "AT+CSQ" command.The my program's steps are: 1) API CreateFile makes the com1' handle connect GPRS modem 2)API WriteFile sends the "AT+CSQ" & vbCR command 3)API ReadFile reads ,i.e. changes byte into a string,what the modem send me.All this locked up in a while cycle because the ReadF ...Show All
Visual C# How are Delegates used?
Hi All, What is the purpose of delegate Can't we call the methods directly instead of assigning to the AddressOf (refer my example). Please tell me the real trime implementation of delegate. EX: Private Delegate Sub MyDelSub() Private Sub Button2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim del As MyDelSub del = New MyDelSub( AddressOf DisplayMessage) del. ...Show All
.NET Development Application queries in a xml file
I want's to built a xml file e.g ApplicationDbQueries.xml which will create the name of all the queries file i.e <ApplicationDB> <include Queryfile="customer.xml" Name="Customer" /> <include Queryfile="Sales.xml" Name="Sales" /> <include Queryfile="Product.xml" Name="Product" /> <include ...Show All
Windows Forms Menus
I want to disable and enable my application menus. I know that if my menu caption or text is called 'Create Invoice' and the name is mnuCreateInvoice, I can do this in C# (this.mnuCreateInvoice.Enabled = false) to disable it. Now, asuming the name is in a variable, i.e., ci = mnuCreateInvoice, what can I do to disable the menu now ci.Enabled = false does not work. What should I do I need help. ...Show All
Windows Forms Two Name property of UserControl
I designed form (f1) and placed my UserControl into it. I created new from (f2), which was be inherited from f1. When i exploring the properties (in property window) of UserControl in f2 (properties is disabled for changing), i found(see) two Name properties with one and the same values. What does it mean I think we're looking at a bug here (b ...Show All
Windows Forms Problems setting up data in the Application Data directory
I have an application that I have written in C# 2.0 that I would like to deploy using a Setup and Deployment Project. The application uses data stored in a SQL 2005 .mdf file that I install along with it. Currently, I have the .mdf file installing into the Program Files\Application directory, which works fine for an administrator. What I would like to do is install the data into the User's Application Data folder, or, if they select All Users, i ...Show All
.NET Development Serializing BindingList<T> / PropertyChanged events
I have a BindingList<T> collection that is storing items that implement INotifyPropertyChanged. BindingList<T> automatically listens for the PropertyChanged event for each item in the collection and raises its own ListChanged event. If the BindingList<T> collection is serialized using the binary formatter (say to file) and then deserialized at some point, will all the change notification hooks between it and its contained it ...Show All
