Click here to Skip to main content
15,898,924 members
Home / Discussions / C#
   

C#

 
AnswerRe: Where to find an OCR API? Pin
Christian Graus21-Feb-08 20:40
protectorChristian Graus21-Feb-08 20:40 
GeneralRe: Where to find an OCR API? Pin
nirfun21-Feb-08 21:11
nirfun21-Feb-08 21:11 
GeneralRe: Where to find an OCR API? Pin
Christian Graus21-Feb-08 23:23
protectorChristian Graus21-Feb-08 23:23 
AnswerRe: Where to find an OCR API? Pin
DaveyM6921-Feb-08 23:45
professionalDaveyM6921-Feb-08 23:45 
GeneralDatagridView Checkbox Pin
Xerox421-Feb-08 19:35
professionalXerox421-Feb-08 19:35 
QuestionC# -> C++ call issue Pin
Jais Joy21-Feb-08 19:20
Jais Joy21-Feb-08 19:20 
GeneralRe: C# -> C++ call issue Pin
Christian Graus21-Feb-08 19:34
protectorChristian Graus21-Feb-08 19:34 
Generalresize control by code Pin
jason_mf21-Feb-08 19:15
jason_mf21-Feb-08 19:15 
namespace JSearchBar_Jason<br />
{<br />
    public partial class JSearchBar : UserControl<br />
    {<br />
        <br />
        public delegate void JSearchEventHandler(object sender, JSearchEventArgs e);<br />
        public event JSearchEventHandler SearchButtonClickHandle;<br />
<br />
        public JSearchBar()<br />
        {<br />
            InitializeComponent();<br />
        }<br />
<br />
        private void JSearchBar_Load(object sender, EventArgs e)<br />
        {<br />
            JSearchLayout();<br />
        }<br />
<br />
        #region Layout<br />
<br />
        private void JSearchLayout()<br />
        {<br />
            this.BackColor = Color.Transparent;<br />
<br />
            this.toolStrip1.Dock = DockStyle.Fill;<br />
<br />
            int w = this.Width - ButtonSearch.Width;<br />
            this.TextSearch.Width = w;<br />
        }<br />
<br />
        private void JSearchBar_Resize(object sender, EventArgs e)<br />
        {<br />
            int w = this.Width - ButtonSearch.Width;<br />
            this.TextSearch.Width = w;<br />
        }<br />
<br />
        #endregion<br />
<br />
        //????<br />
        private void ButtonSearch_ButtonClick(object sender, EventArgs e)<br />
        {<br />
            JSearchEventArgs jsearchEA = new JSearchEventArgs(this.TextSearch.Text, "web", "web");<br />
<br />
            if (null != SearchButtonClickHandle)<br />
                SearchButtonClickHandle(this, jsearchEA);<br />
        }<br />
<br />
        /// <summary><br />
        /// ?????????<br />
        /// </summary><br />
        /// <param name="sender"></param><br />
        /// <param name="e"></param><br />
        private void ButtonSearchFreeSite_Click(object sender, EventArgs e)<br />
        {<br />
            JSearchEventArgs jsearchEA = new JSearchEventArgs(this.TextSearch.Text, "web", "localweb");<br />
<br />
            if (null != SearchButtonClickHandle)<br />
                SearchButtonClickHandle(this, jsearchEA);<br />
        }<br />
<br />
        //????<br />
        private void ButtonSearchDesktop_Click(object sender, EventArgs e)<br />
        {<br />
            MessageBox.Show("???????");<br />
        }<br />
<br />
    }<br />
<br />
    /// <summary><br />
    /// ???????<br />
    /// </summary><br />
    public class JSearchEventArgs : EventArgs<br />
    {<br />
        private string searchKeyWords = string.Empty;<br />
        private string sourceType="web"; <br />
        private string searchArea="web";<br />
<br />
        public JSearchEventArgs(string keyWords, string type, string area)<br />
        {<br />
            searchArea = area;<br />
            searchKeyWords = keyWords;<br />
            sourceType = type;<br />
        }<br />
<br />
        /// <summary><br />
        /// ???????<br />
        /// </summary><br />
        public string SearchKeyWords<br />
        {<br />
            get{return searchKeyWords;}<br />
        }<br />
        /// <summary><br />
        /// ????????<br />
        /// </summary><br />
        public string SourceType<br />
        {<br />
            get{return sourceType;}<br />
        }<br />
        /// <summary><br />
        /// ??????,<br />
        /// ??,????,??<br />
        /// </summary><br />
        public string SearchArea<br />
        {<br />
            get{return searchArea;}<br />
        }<br />
    }<br />
<br />
 }



"int w = this.Width - ButtonSearch.Width;
this.TextSearch.Width = w;
" of upwards code, it was not contributing.
who can tell me why?
Thanks.
GeneralRe: resize control by code Pin
Christian Graus21-Feb-08 19:19
protectorChristian Graus21-Feb-08 19:19 
GeneralRe: resize control by code Pin
jason_mf21-Feb-08 19:31
jason_mf21-Feb-08 19:31 
GeneralRe: resize control by code Pin
Christian Graus21-Feb-08 19:41
protectorChristian Graus21-Feb-08 19:41 
GeneralRe: resize control by code Pin
jason_mf21-Feb-08 20:00
jason_mf21-Feb-08 20:00 
GeneralRe: resize control by code Pin
jason_mf21-Feb-08 20:12
jason_mf21-Feb-08 20:12 
GeneralRe: resize control by code Pin
Christian Graus21-Feb-08 20:46
protectorChristian Graus21-Feb-08 20:46 
GeneralRe: resize control by code Pin
darkelv21-Feb-08 20:57
darkelv21-Feb-08 20:57 
GeneralVideo Analysis Pin
Boxman21-Feb-08 18:59
Boxman21-Feb-08 18:59 
GeneralRe: Video Analysis Pin
Christian Graus21-Feb-08 19:21
protectorChristian Graus21-Feb-08 19:21 
GeneralRecommend Good books and the C# 3.0, 3.5 Difference Pin
Guhanath21-Feb-08 18:43
Guhanath21-Feb-08 18:43 
GeneralRe: Recommend Good books and the C# 3.0, 3.5 Difference Pin
Colin Angus Mackay21-Feb-08 23:35
Colin Angus Mackay21-Feb-08 23:35 
GeneralRe: Recommend Good books and the C# 3.0, 3.5 Difference Pin
Guhanath22-Feb-08 0:20
Guhanath22-Feb-08 0:20 
GeneralRe: Recommend Good books and the C# 3.0, 3.5 Difference Pin
Colin Angus Mackay22-Feb-08 11:56
Colin Angus Mackay22-Feb-08 11:56 
QuestionHow to align text in Label Pin
D i x y21-Feb-08 18:37
D i x y21-Feb-08 18:37 
AnswerRe: How to align text in Label Pin
Christian Graus21-Feb-08 19:16
protectorChristian Graus21-Feb-08 19:16 
GeneralRe: How to align text in Label Pin
D i x y21-Feb-08 20:11
D i x y21-Feb-08 20:11 
AnswerRe: How to align text in Label Pin
darkelv21-Feb-08 20:08
darkelv21-Feb-08 20:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.