Answer Questions
abhishek_6023 GridView beginner
Hi, I have GridView which contain columns id/name/../ state/ ... and I want to get linkbutton at the end of each row which ComandName and Text rest on column "state" so I have no idea how to manage it. do you have some advice please please Im a beginner. If you want to do something to the column "state", Let's say do some custom formatting, you can code a public / protected function that receive state as parameter and return the formatted value For example for C#, the template would be: < asp : GridView ID ="GridView1" runat ="server" AutoGenerateColumns ="False" DataKeyNames ="NOANGGOTA" DataSourceID ="SqlDataSource ...Show All
David Hanak Getting a listview items Handlle (or subitem)
Does any one no how to get the handle of a listview's item and or subitem You can get the listviews handle easily enough but I cant seem to find a way to get the listview's items handles so I can add a check box to some of its subitems. Any help would be great thanks. Did you mean that you want to embed a check box in the list view If it is, I think the following link will help you http://www.codeproject.com/cs/miscctrl/ListViewEmbeddedControls.asp Thanks for that mate, I did get it working using a method close to that but its not the ideal situation. In VB6 you could get the windows handle of the listview controls items and put any control you wish on it, just like how you would a ...Show All
Steven Bone User Control with my event
I've created User Control with my event: public partial class ucHouse1 : UserControl { public delegate void MyEngineHandler(int NewIdHouse); public event MyEngineHandler IDHouseChanged; ... I run this event private void cmbHouses_SelectedIndexChanged(object sender, EventArgs e) { int var_ID_House = (int)this.cmbHouses.SelectedValue; if (IDHouseChanged != null) IDHouseChanged( var_ID_House); } On form where I've added my User Control I work with this event private void ucHouse_IDHouseChanged(int NewIdHouse) { this.MyDataSet.tblCustomer[0].ID_House = NewIdHouse; } All work very good. But when I try to close my form I receive AgumentException in event Dispose of my User Control protected o ...Show All
Sriram Rajamanuri how to set the font of the richtextbox's text?
as I did set the richtextbox's font during i designing it, and when run the application and open a file, and read the file's content into the richtextbox. and then when i input content directly into the richtextbox by keyboard, the file-in text's font is different from the keyboard-in text's I just want them the same font defaultly, how can i do it (Moderator: Thread moved to this forum for better responses) I think RichTextBox uses RTF specification. something not the best, maybe anyone have a better way anyway, thankyou, OmegaMan ! Create a Context Menu where you can have a Paste Special option. Handle the input from the clipboard to copy the text, setup the proper formatting fo ...Show All
Kraven3d Adding Objects Question
hi my Form1.h file is becoming massive now even though it doesnt really do much. On my Form i have a tabControl with 3 tabs and i was wondering if there was a way to create another file to do some adding and removing of objects like textBoxs and labels so it can be used like a subroutine any help or advice would be great. thanks Im using Visual C++ MS VS 2005 Still no help You have to leave all the designer genered code bracketed by #pragma region Windows Form Designer generated code ... #pragma endregion The stuff after that, the event handlers, can however be moved into a separate .cpp file. Just make sure you leave the method declaration in place. For example: In Form1.h: ... #pragma endregion priva ...Show All
Mainiac007 web setup: get selected website chosen by the user in the dropdownlist
hi! I have a vs 2005 web installer setup. When the user runs it, the installation dialog shows. Then, the user can select the web site name from a dropdownlist. i want to recover in a custom action the value (website) selected by the user in the installation dialog. By default, this value is "default Web Site". I want in a custom action to recover the selected value from the dropdownlist. I know i can recover other values such us [TARGETDIR], [TARGETVDIR] , but what is the name of the property which refences to the dropdownlist selected value TARGETSITE ...Show All
Davids Learning Publish ClickOnce project with Team Build?
Does anyone have any examples of how to create a Team Build BuildType that publishes the project similiar to the way you manually do it in visual studio I already have the BuildType created and working (it gets kicked off on a schedule). I've also created a BeforeDropBuild task that does GenerateApplicationManifest and GenerateDeploymentManifest that also works. This was a bit confusing -- when the BuildType is run not through the GUI many of the properties don't exist and most of the examples appear to assume they would. Anyway, these steps work in that the build does not fail. Somehow I need to publish the manifest I suppose, but I can't find any examples of how to do it. I'm not even sure I know the right questions to ask. Any help w ...Show All
n0n4m3 Active Directory
Using Active Directory 5.2 and would like to list all the Computers that have Windows 2000 Service Pack 2 or earlier still installed. If I go into each computer's properties tab, then into Operating System, I can see the service pack level. I would like to be able to print out a list of that information without having to go into each of our 500+ PCs. Or if you know of another way to get this information easily. Thanks, ...Show All
Nightman28 Deploy web app on Win 2003 Server
Hi, I have developed a web application using VS 2005 on my machine. What are the steps needed to deploy it onto Win 2003 Server ie, do I need to Build/Publish Website on VS2005 1st I am not as familiar with VS2005 as compared to VS2003. Thank you for your kind attention Danny. ...Show All
Andrew Crowder A real challenge!
I have a real challenge. My software is basic a front-end for a database that I created in SQL 2005. That’s the challenge: I don’t want to use the "BindingNavigator", instead of this I want to put the code myself to go to next record, first, etc, in the new icons that I created. But this is not all. Here is the biggest difficult. I have "TabControls" too. So when I click, for examle, next record, the application need to show me the next record, not only in the form, but in the TabControl in the same form and at the same time Did I explained clearly Thanks for those how at least will read this. I think people are misunderstanding what you want to do. You don't want to implemen ...Show All
mdemler GridView DeleteCommand Firing Twice
I Have a gridview with a command button for delete defined. On the Datasource for the grid I have a DeleteCommand that runs a stored procedure that takes the ID field defined in grid view control. When the delete command is selected in the gridview the deletecommand stored procedure is called twice with the same ID (I have traced this). I have removed all delete events from the gridview and datasource. I have a FormView that has a selectcommand using the GridViews primary ID. I have autoeventwireup set to true. There is no code being ran before or after deletion. I did have a refresh procedure being ran after delete. When this was active Instead of the same record being deleted twice, the selected record and the record ...Show All
Marcus J Wizard wierdness.....
Can anyone point me to a good tutorial on how to use the SqlDataAdapter configuration wizard I used the wizard to create a dataadapter for a table I had just created. I checked in the advanced options and saw that I should be creating Update, Insert and Delete commands. The SQL I specified in the query builder is "Select * From <TableName>", with the approriate table name in place of the place holder. I tell the wizard to finish and it tells me that it created Insert and Delete commands but it did NOT create an update command. I can go an create my own updatecommand in code but thats a pain compared with the ease of using the wizard. Is there somthing that I am doing wrong to not get the update command to generate proper ...Show All
akjoshi Unable to see TableAdapters from 2nd Project in Web Solution
This is a follow up from a previous problem. I have a strongly typed dataset in 1 project and I am trying to use it in another ASP.NET application. (Common Data Layer to 2 UIs) The Microsoft documentation says I should be able to do this: NorthwindDataSet northwindDataSet = new NorthwindDataSet(); NorthwindDataSetTableAdapters.CustomersTableAdapter customersTableAdapter = new NorthwindDataSetTableAdapters.CustomersTableAdapter(); customersTableAdapter.Fill(northwindDataSet.Customers); The problem I am having is that I do not see NorthwindDataSetTableAdapters, so I do not see CustomersTableAdapter either. This means that I am never able to fill my dataset and use it. When I create the dataset in the App_Code folder of the ASP. ...Show All
Huggable_helen DataGridView Survey
Hello WinForms users, My team, which owns Windows Forms, would like to gather some information about the new DataGridView control that shipped in the .NET Framework 2.0. At the high level, we would like to figure out: - which features of the grid you are using - which features you wish were available - what works well, what does not - what’s the typical size of your grid Any feedback you may have would be welcome. If time permits, you can also mark the features you use in the table below (this is not an exhaustive list, just a small subset): DataGridView feature Used unbound mode databound mode ...Show All
Acoquinar DataView, CType's Expression & Sqlexpress'Database: Compiler Error BC30469-Reference to a non-shared member requires object
Hi all, I got a Compiler Error BC30469: Reference to a non-shared member requires an object referene [in "Dim dvTable As Dataview=CType(SqlDataSource3,Select(DataSourceSelectArguments.Empty, Dataview)"-see the attached 'Default.aspx.vb' below], when I ran a website "RPD-TCE" in my VWD 2005 Express. /////////////////---Default.aspx.vb---////////////////// Imports System.Web Imports System.Net Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports System.Configuration Partial Class _Default Inherits System.Web.UI.Page Public Class DataView Dim instance As DataView Private Function AverageValue( ByVal Conc1 As Decimal ) Dim dv ...Show All
