-
- TypeCodeDomSerializer does not create override function
by Mujdat Dinc
- 0 Replies
- Last post
by Mujdat Dinc
- Hi everyone
I have component has its own codedomserializer derived from TypeCodeDomSerializer. I override the GetInitializeMethod and return a method that is override attribute is set like code below.
protected override CodeMemberMethod GetInitializeMethod(IDesignerSerializationManager manager, CodeTypeDeclaration declaration, object value) { CodeMemberMethod method = new CodeMemb
-
- Displaying two fields in checklistbox
by yonelay
- 6 Replies
- Last post
by yonelay
- Is it possible to display two columns in one checklistbox
For example,
(checkbox) Full Name, DOB
If so, can someone please let me know how I'd like to avoid using datagrid.
-
- ClickOnce Requires 3.0 FrameWork !!!!!!!!!!
by BillyDvd
- 1 Replies
- Last post
by Rhapsody
- I am trying to determine why my "published" ClickOnce (VSTO for Outlook 2003) Project is trying/requiring the 3.0 framework!
I can not require ALL of my users to download this!
I have used clickonce in the past and it did not require 3.0, although I have never used VSTO in conjunction with a clickonce.
Please Help !!!!!
Thanks in advance for your help!
-
- GDI Performance
by Wil Burton
- 4 Replies
- Last post
by Wil Burton
- I am trying to make a mud client. I made a control to do the telnet connections and render ANSI text. It seems to work pretty well except for performance. Right now it is just drawing all the text, which is not what the end result will be. But I am already noticing big performance problems. This doesn't seem that graphically intense to me, but am I going to have to throw DirectX in my application
-
- Is there a way inside the ToolStripMenuItem.DropDownOpening event to cancel the event inside the handler?
by Artie Sluka
- 6 Replies
- Last post
by Artie Sluka
- I have a piece of code that handles the dropdownopening event that will ask the user a choice before opening the drop down menu based on a certain set of conditions. If the user makes a particular choice, is there a way that I can prevent the drop down from actually opening It's a question of polish, as if they make a particular choice they won't WANT the drop down to open =] I've been searching f
-
- encoding iso 8859-1 - read file
by fuddy
- 1 Replies
- Last post
by Ken Tucker
- Hello guys,
I have got a txt file with key-value pairs (in ISO8859-1 encoding). I read it with
String [] entries = System.IO. File .ReadAllLines(txtPath);
and store the entries in a dataset. Dataset is bound to a DataGridView. I want the special characters (\uXXXX) in DataGridView shown decoded. I want to edit them and write them back encoded (the special characters should then a
-
- Activate Form using its Handler
by Pr.wa'el
- 1 Replies
- Last post
by Fábio
- Hi , I use the Old API Function to get handle to the active windows to use it to activate this window from another form . Like Following
Code Block
Public Declare Auto Function GetActiveWindow Lib "user32.dll" () As System.IntPtr
Private Shared intPtr1 As System.IntPtr =GetActiveWindow ()
but i don't know how to activate the for
-
- Change the height of Panel
by tsc
- 1 Replies
- Last post
by Vidhura
- Hi,
I have a user control "Panel", it consists of two panels : "UpperPanel" with height 40 and "LowerPanel" with height 60. How do I change the display size of the whole panel when I click on anywhere of the UpperPanel I intend to show the LowerPanel when I click on the UpperPanel and hide it when I click on UpperPanel again.
Thanks!!!
-
- Label BackColor Transparent Problem (C# or VC.NET)
by Rong Sheng
- 6 Replies
- Last post
by Rong-Chun Zhang - MSFT
- I do not know why, can you help me;
there is a label called lAppName on a PictureBox, now gives the code in Form_Shown Event
this is C# Version
Code Snippet
lAppName.Parent = this.PictureBox;
lAppName.BackColor = Color.Transparent;
here is the C++ Version
Code Snippet
lAppName->Parent = this->PictureBox;
lAppName->BackCo
-
- Refreshing listboxes
by BeaverMan
- 5 Replies
- Last post
by Gavin Jin - MSFT
- hi guys,need help here
currently i'm displaying data from sql server 2005 database using a listbox
i binded a dataset to it and it does display the items i want displayed,but the problem is i do not know how to refresh the list immediately when a data is added to the particular table
any solutions
thanx in advance
-
- Can We Load a COM Dll using LoadLibrary()?
by bkkishore.cse
- 2 Replies
- Last post
by nobugz
- Hai Members,
I have a doubt.
I created a COM Server(Dll) and loaded with CoCreateInstance() in Client Program.
Its working fine.
Now I am trying to load the COM Server(Dll) using LoadLibrary() function and trying to call a function of my Server
using GetProcAddress(). Always it is returning Null.
My doubt is Can we call LoadLibrary() to load COM Dll
If so, please explain me t
-
- OwnerDraw ListView control causes unwanted GDI+ problems.
by David S. Anderson
- 9 Replies
- Last post
by nobugz
- In my form I have 3 toolstrips and 1 status strip I am painting myself. Nothing serious, just a linear gradient on each. Now I am painting my listview control with a gradient as well. however when i try to paint the sizer, it causes the toolstrips to stop validating until i move the form. aka, this line causes the problem: e.Header.AutoResize(ColumnHeaderAutoResizeStyle.HeaderSize); Here is my ful
-
- Display Problem: Unicode & RichTextBox
by Tewl
- 4 Replies
- Last post
by Tewl
- I am having a problem when displaying UTF8 (particularly japanese text) in a RichTextBox. When the client displays the text it appears perfect but when I append more text to the RTB it seems the font has changed. Any text after appears to be smaller. I have tried resetting the font to the RTB after a text changed even has fired but it has no effect.
I am not very good at explaining so here is m
-
- Color control: like colorDialog but not as dialog, on form
by Speedie
- 2 Replies
- Last post
by JDee
- Is it possible to have a color control that displays on a form that is similar to the color dialog Ideally with all web colours on. Does this exist or would i have to code it myself
-
- required help in desiging the architecture for CustomField in a data entry system
by Kamii47
- 3 Replies
- Last post
by Yu Guo ¨C MSFT
- I am working on a data entry system of certain domain.It simply Add/Update/Delete data in some tables.[I also have some sort of user authentication system.]
Technologies are Winform,C# ,[Sql server 2000/2005 not decided ]
I am having two problem in designing the architecture for it.
1,User with certain role can change the layout of the form.[mean change the UI element Flow.]Then All the p
-
- Add/Remove program questions
by dreamfly
- 4 Replies
- Last post
by Rong-Chun Zhang - MSFT
- When I use clickonce to deploy my smart-client app, it will automatically create an entry to the Control panel Add/Remove program list as well as an entry in the Start Menu. Questions below:
1. How can I uninstall the program if the user doesn't have this authority This is the NORM in an enterprise environment.
2. I have a Development and Production version of the app. I will deploy
-
- How to load more than 1 million items in ListView without killing the memory?
by Mark Shen
- 3 Replies
- Last post
by nobugz
- Hi all,
I have a situation here. I need to read a large log file, in general will be more than 100MB, and with more than 1 million lines of text. I need to load them into a ListView to display. The problem I have is: usually after I load everything, my application will take about 300MB in memory. I'm wondering how to free my memory and make it lighter.
Part of my code is below:
using
-
- Assigning the value of the selected cell to a textbox
by jasna
- 3 Replies
- Last post
by Gavin Jin - MSFT
- Hi All,
I have a datagridview named and also a textbox.
If i select any cell in the grid i need that to be displayed in the textbox.
the code
textbox1.text=datagridview1.item(datagridview1.currentcell.columnindex,datagridview1.currentcell.rowindex)
is not working
Could anyone tell me the correct code the above......
Thanks in advance.
-
- Cannot bind data to a listbox inside a user control
by HelenaF
- 2 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I have a listbox that is populated by setting the DataSource property to a bindingSource and displayMember to the value I like to display. This is all done in design view, so I have not written any code. However, if I put the listbox in a user control and do exactly the same thing, the listbox does not display any items. What am I missing here!
-
- Show images on the form and send it to new form.
by Nadeem Alvi
- 13 Replies
- Last post
by DEYADAV
- Hello, I have 1 windows form ShowImages" where i want to display images from the folder. Which control should i use to display it in smaller size in line on the form. Now on the same form i have 1 combo box with display setting as this 1x1 2x2 3x3. so let say if i select 2x2. then when i goto form "ImagePlayer" it has << and >> buttons. This page will display 2 images.
-
- How to call exe of another project in VB.Net 2005?
by Harsh585762
- 14 Replies
- Last post
by the new kid on the block
- I am developing a windows application. In my current project I want to call an exe of another project. I added .exe and vshost.exe of that project in the bin (in that debug folder) folder of current project. And on button click i have written following code - Dim startInfo As System.Diagnostics.ProcessStartInfo Dim pStart As New System.Diagnostics.Process
startInfo = New System.Diagnost
-
- DataGridViewColumn.AutoSizeMode property
by cygnusx
- 1 Replies
- Last post
by Vidhura
- I have DataGridView with three columns.I set the columns AutoSizeMode to Fill.When i add rows to the datagridview at runtime i change their WrapMode property to False through RowDefaultCellStyle property of the datagridview.Set ScrollBars property to Both too.And when run the application and add rows,the bottom scrollbar is not visible if the AutoSizeMode property of the columns is set to Fill.For
-
- How to handle exit command given by OS in my aaplication?
by RKC
- 6 Replies
- Last post
by Cool_Zer0
- Hi All,
If my application is running and shutdown process for windows has started then my application might be receiving exit command from OS. I want to cathc this command and want to perform some activities.
How to do this
Thanks and Regards,
Ravi
-
- Deleting DataSet records from underlying SQL Server using DataGridViewCheckBoxColumn in VS 2005
by OkiMike
- 10 Replies
- Last post
by OkiMike
- Hello,
I am using VS 2005 in which I created a Windows Form on which lies a DataGridView. This DGV is populated by a SQL Data Source which has one table (one SELECT statement) as its underlying source. It looks like:
SELECT
Id_Column,
Name_Column,
FileName_Column,
Description_Column
FROM
OldReportsTable
After creating a DataSet and TableAdapter using th
-
- Copy paste exactly as paint does.
by stalker
- 1 Replies
- Last post
by nobugz
- Hi;
Does anyone know how to implement a paint-like copy and paste. I have two forms with images and I want to transfer a part of the first image to the second one exactly as paint app does. I could implement rubber band selection but have no idea how to transfer through clipboard and refresh the second image as user moves the carried part on the second image.
thanks a lot.