-
- Implimenting user controls - Missing assembly reference?
by dbuchanan
- 6 Replies
- Last post
by dbuchanan
- I am new to user controls.
I created a user control (of severals controls) in my project so that I can use the same pattern of controls on multiple forms.
After building, it was automatically added into my toolbox. I dragged it onto my form.
When trying to assign text to one of the labels the control contains I did not get intellisense. Here is my code
HIP2007.ctlCustProjContr1.lblPr
-
- [Method] How has Click Once done a update?
by Fabulous
- 0 Replies
- Last post
by Fabulous
- Hello everybody,
Actually, I m working in the process which permits to deploy an application(dotnet c#) in a network directory or web server.
The goal of this process is when a file like .dll is updated in a project, this file is put in the delivery directory (IIS server, or directory in the network), and all the manifests are checked and updated.
From the client PC, I wan
-
- Keypresses in picture box
by Speedie
- 4 Replies
- Last post
by Speedie
- i have a small app where users can draw shapes in a picture box using the mouse. I want the 'delete' key, when pressed to delete the current shape. But there is no way (that i can see) to be able to listen to key events for a picture box. Any ideas around this
-
- Treeview and stretch images
by TSalm
- 2 Replies
- Last post
by TSalm
- Hi all, I'm using images with differente size, but their size is stretching when displays... Is there a way to display images in a treeview by their original size TIA, TSalm
-
- set the number of rows taken from the table to dataset
by taigar
- 1 Replies
- Last post
by Ken Tucker
- how can i set the number of rows to be taken from the table at the db (it contains 200,000...) and put to the datatable
i need to show 500 on my datagrid, and load more if the user choose to.
-
- Saving contents of a graphics
by prog.gabi
- 2 Replies
- Last post
by prog.gabi
- Is it possible to save (and restore) the contents of a graphics Graphics.Save only seems to save the properties, such as transfromations, but not the contents. See the example in Visual Studio help under Graphics.Save. My aim is to construct a vertical line cursor on a graph and move it with the mouse. I know how to get the mouse position, but in order to move it I need to restore the picture to w
-
- How do I delete a datarow from a databound listbox?
by Robotuner
- 4 Replies
- Last post
by Luc Morin
- I would have thought someone had already asked, but I couldn't find the anwer. I have tried:
1. deleting the datarow directly: dr.Delete(). That seems to work because it is removed from the listbox, but later when I update my database, the dr.RowState for that row is correct, DataRowState.Deleted, but I can't get the record key to delete it from the database because it has already been removed!
-
- tab control itemsize property (setting in code)
by cybercrypt13
- 3 Replies
- Last post
by Mattthew
- I'm still fighting with how all these class objects are laid out but I'm stuck again on something that would seem simple but indeed is not.
The tab control has a property for itemsize that has a height and width field. I want to set these values but for some reason they are read only so trying to do something like: tabcontrol.ItemSize.Height = 2 won't work. It would seem the obvious direct
-
- Datagridviewcolumn backcolor
by toneho
- 5 Replies
- Last post
by toneho
- Hello:
I'm trying to specify the backcolor for a specific column in a datagridview (defaultcellstyle.backcolor). However, the color is only applied if the datagridview is selected by the user. How do I change the color so it displays whether the dgv is selected or not Thanks much.
-
- Partially Colour DataGridViewRow
by Tony Williams
- 3 Replies
- Last post
by Tony Williams
- Right here's the situation: I've developed an application which is an electronic shift log for the company I'm working for. At each shift the shop floor guys use my application to log events that happen (various details plus an input time). I use the input time to calculate the duration of each event and I have a total duration for the entire shift. The datagridview displays a single shift with
-
- help with publish
by shimshon
- 2 Replies
- Last post
by shimshon
- hi all.
we are publishing our application as "Available online only" with Clickonce.
but we dont want the application to check for updates when its started, and we dont want to see the irittating animation.
can we skip this check
-
- Using variable on multiple forms
by Korsten
- 9 Replies
- Last post
by xr280xr
- Hello,
Maybe this is a stupid question but i'm stuck here.
I have a Visual Studio 2005 C# PPC program and I have some data I want to use on multiple forms.
Like it is now (this is my test program):
I've got 2 Forms: Form1 and Form2
Form1 has a datagrid and a button
Form2 has a textbox
The Datagrid on Form1 gets it's Data from a Database. I can also save the Data I need
-
- Moving ClickOnce Apps to Different Servers without using Visual Studio
by Sean M.
- 7 Replies
- Last post
by Kunal Mahajan
- I need to package a ClickOnce application into an installation package that will be installed on different web servers than where it was originally deployed. I have seen the post that discusses using MSBuild and a Bootstrapper file to change the Installation URL and Setup.exe, and that works great! The problem I am having is that the application has an app.config file containing connection informa
-
- Virtual ListView crashes on VirtualListSize
by maakus
- 9 Replies
- Last post
by Kevin A. G.
- Example: - listview with 20000 virtual items - RetrieveVirtualItem() feeds some dynamically created items - scroll to the end of the list - set VirtualListSize to 200 (via a button click for instance) You'll then crash internally with an ArgumentOutOfRangeException exception (here at index 200). Nothing helps to avoid this. Really odd. The crash happens somewhere in ListViewItemColl
-
- PropertyGrid custom UITypeEditor help
by John Glover
- 4 Replies
- Last post
by John Glover
- Is it possible to specify a UITypeEditor for a particular data type in a PropertyGrid at runtime I'm using a PropertyGrid to display and edit objects from a core library which I cannot change; so I cannot apply the appropriate attribute decorations to tell the PropertyGrid to use my custom UITypeEditor. However, it seems there should be some way that I could instruct the PropertyGrid to use a spe
-
- ContextMenuStrip in DataGridView
by יו
- 4 Replies
- Last post
by ?????
- How can I do a contextMenuStrip that open when I click with the rightclick on the RowHeader of the DataGridView
-
- Control layout
by YMaod
- 1 Replies
- Last post
by RizwanSharp
- Hi,
I'm building an application and I would like to use my own made gfx for my controls and form.
I've placed an example to make it more clear what I mean: http://users.pandora.be/ymweb/example.jpg
How can I do this on existing objects like sliders and buttons
Best regards,
Yannick
-
- WinRar and C#
by Eli Gazit
- 4 Replies
- Last post
by EliGazit
- Hi
Does anyone knows a component that allow adding WinRar functionality (compress and extract) to C#\VB.NET code
I've tried to use the Microsoft Zip examples both the compression rate is very poor (X10 than WinRar).
Thanks.
-
- windows installer
by arkiboys
- 1 Replies
- Last post
by Bob zhu - MSFT
- Hi, I have created a windows service in .net 2.0 Ran the InstallUtil.exe and can now see the windows service in services window. Now I have modified the code in windows service. Built it with success. Ran the instalUtil.exe but fails. Is it necessary to uninstal first and then instal again for each build Thanks
-
- Commit data in the datagrid
by Flea#
- 3 Replies
- Last post
by Flea#
- I have a datagrid that returns rows of data. I want the user to be able to type in the cell and change the data. As soon as they leave the cell (by either hitting tab or enter) I have code that updates the database. My problem is, I can't get it to commit the change before the event fires.
I read other posts and people were talking about calling the EndEdit() method, which I tried to do,
-
- Default value in a combo box
by KabirPatel
- 6 Replies
- Last post
by Christopher Payne
- Hi,
I have a combo box in a user control that is populated from a SQL server table in the Load event of the control. It is as follows:
private void ctl_Load(object sender, EventArgs e)
{
cPopulate objPopulate = new cPopulate;
cmb.DataSource = objPopulate.Load();
cmb.DisplayMember = "ID";
cmb.Text = "Please select an ID";
}
-
- Adding buttons/tabs to a ToolStrip/TabControl in my custom user control all this in design-time
by Nazgulled
- 8 Replies
- Last post
by Nazgulled
- I have this custom user control that has a ToolStrip and a TabControl and I'm adding my own designer to the user control so at design-time I can automate some actions. The smart tag panel as a verb called "Insert New Page", this verb is going to add a button the ToolStrip and a Tab to the TabControl every time you click on it. Well, part of this works, the other part, doesn't. When you c
-
- OpenIcon
by moorelg
- 2 Replies
- Last post
by moorelg
- The documentation for OpenIcon says that it will restore a window to its previous size and location. This isn't happening - it is restoring the window but not to its previous size. Is there something extra that needs to be done when calling it from C# The ReturnValue indicates success. [DllImport("user32.dll")] static extern bool OpenIcon(IntPtr hwnd); ... IntPtr wHandle = process.Main
-
- GUI/Application freezes on webBrowser.innerHTML += myLargeHTMLString
by DavidIsCoding
- 8 Replies
- Last post
by DavidIsCoding
- Hello everybody on the MSDN forum
If have been looking high and low for a solution to this problem, but so far with no luck.
My problem is that, I use a webBrowser control to display a report in a windows forms application (a report editor). I want to be able to add an arbitrary amount of data (user imported data files parsed to HTML) to the webbrowser.document.body.firstchild.innerHtml
-
- Painting problem . That's Weird !!!!!
by Pr.wa'el
- 8 Replies
- Last post
by Pr.wa'el
- Hi. I have weird problem . I have a windows Form with no border ( FormBorderStyle = None ; ) .
Then i draw Form border in Paint method as following : -
Code Block
Private Sub PaintBorder( ByVal sender As Object , ByVal e As PaintEventArgs)
Dim l_LeftTitle As Rectangle = New Rectangle(0, 0, ( Me .Width / 2), 22)
Dim l_RightTitle As R