BlackSun 4 Light Poster

hi
u can use GDI+ in c# and implement selection tool with my own i
i used MouseDownevent , MouseMoveevent , MouseUpevent and PaintEvent

declare refernce of Point as start point for ex:
Point startPoint = Point.empty;
Write in Mouse Down event:
startPoint = new (e.X,e.Y);
Write in Mouse Move event
Graphics g = this.CreateGraphics()l
g.DrawRectangle(Pens.Red,startPoint.X,startPoint.Y,
e.X-startPoint.X,e.Y-startPoint.Y);

that`s it
sorry i did not send the code because am work here and unfortunlly i don`t have c# editor :( . and sorry i forget daniweb convention for writting code ;

BlackSun 4 Light Poster
BlackSun 4 Light Poster

Use string functions and try to handel by ur own way

BlackSun 4 Light Poster

You can use "System.Text.RegularExpressions.Regex" class to specify the text format or u can chech the rang of ascii charcters numbers thats will be writen in ur textbox if not send ur exception error

BlackSun 4 Light Poster

u welcome my friend

BlackSun 4 Light Poster

try to write the full path of "car3.car" ;

BlackSun 4 Light Poster

database file or xml file then encrypt it

BlackSun 4 Light Poster

i think it`s better to divide ur programe.cs classes into more than DLL or u can alot of classes in one namspace ; but u can add project1 in solution and adding the project1 namespace in ur certain project the choose ur class ;

BlackSun 4 Light Poster

if u interested to use c# with embedded programming use micro .netframwork and read "Apress - Expert.NET Micro Framework - Embedded programming of microcontrollers with CSharp and Microsoft Visual Studio - 2008" and about mathmatics functions am using to create image procesing simple function"edge detection , RGBtoGrayscale" with c# and matlab C# was great....

BlackSun 4 Light Poster

1- http://www.c-sharpcorner.com/UploadFile/myoussef /CSharpMethodsP211142005232706PM/CSharpMethodsP2.aspx

2- http://en.csharp-online.net/Interfaces_and_Abstract_Classes

3- char ch1= 'a' ;
// need more explanation from u in third question

BlackSun 4 Light Poster
BlackSun 4 Light Poster

nice link rapture

BlackSun 4 Light Poster

hey i didn`t understand u well enough

but u can use selection circle which help the user to clip the eyes boundary then u detect the red color pixels and change it to ur own color ....
and there is camera which make the eyes blue so u can help the user to detect the bad color of the eye and change it to his chosen color ....

BlackSun 4 Light Poster

hi
u can do this

int counter=0;  // global value 
while(true)
            {
               
                if (s[counter] != null)
                {
                    comboBox1.Items.Add(s[counter]);
                    counter++;
                }
                else
                {
                    break;
                }
            }

bye

BlackSun 4 Light Poster

try to check ur smtp server credentials :

client.credential = new NetworkCredential("mail.bezeqint.net","Put Ur Passwords");

BlackSun 4 Light Poster

am just asking why dileeppaul needs this , am not blaming him so u answer me ??

BlackSun 4 Light Poster

no no this is the right thread sorry :D

BlackSun 4 Light Poster
BlackSun 4 Light Poster

hey i wrote in wrong thread sorry

BlackSun 4 Light Poster

why u ask this question ????

BlackSun 4 Light Poster

int[] integers = new int[10];

her u put ur refrence in the stack pointed to integers[0] in the heap

BlackSun 4 Light Poster

rtf control can`t read doc file

use COM components in .net "microsoft word 9 library" so will be easy to handel opening and saving ur own files ...

BlackSun 4 Light Poster
BlackSun 4 Light Poster

search on google "how do i" for c#
this on msdn web site

BlackSun 4 Light Poster

this is claa example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DaniWebtest3
{
    class time
    {
        public static void GetIt()
        {
            MessageBox.Show(DateTime.Now.ToString());
        }
    }
}

so u must declar ur methode public static this means that only the class will acceses this function and u will not create instance for ur class .
read this

bye

BlackSun 4 Light Poster

perfect soft copy

www.skripta.unas.cz/stahuj/ProgrammingBeginners.pdf

authored by BLACKSUN not me he is my master because i learned alot from him....

BlackSun 4 Light Poster

hi
this is asm language forum but i will answer u

- right click on ur project inside solution explorer .
- u will find ADD then pop up menu will appear click on CLASS
- renam ur dll file then it will added in ur project .
- write ur own code and F5 if there is no errors string will appear down on status bar Build Succeded if there is errors it will shown down .

bye

BlackSun 4 Light Poster

i think that too RamyMahrous
use "Manager" to split ur Qresult

BlackSun 4 Light Poster

use this Empleados.numeroemp += 1;

BlackSun 4 Light Poster

hi
this simple example u can set data in combobox
for (int i = 0; i < 10; i++)
{
comboBox1.Items.Add(i);
}
comboBox1.SelectedIndex = 0;

plz follow the advice of "Atenka" and "Ramy Mahrous"

bye

Ramy Mahrous commented: Helps with code a lot :) +5
BlackSun 4 Light Poster

ok man i don`t concentrate well :D
and i will not smoke those Cigarettes again

BlackSun 4 Light Poster

i think this is suppose to ur editor u use
after u assembled the code first u have created obj file then u link it using ur editor to be exe file these it what i do using intel instruction Set using TASM ans MASM editors

BlackSun 4 Light Poster

hi
-------------------------------------------Q3---------------------------------------
u know that Accumulator register (AX) consists of 16bit and divided into
|====AH====|====AL====
AH=8bit AL=8bit
in the the printing function of int21
AX=0900h
so when u use it u must put the variable in ur right position
if u divide Ax in Ah and Al u will find
AH=09h and Al=00h
or u can use AX =0900h
so that u use AH in printing fuction with int 21 ...
----------------------------------Q1------------------------------------------------
- all i know about string is to declar like u do in the first one
string DB "hello ufo$" ;OR
string DB "hello ufo" 0,
----------------------------------Q1------------------------------------------------
u use int21 is interupt which have parameters those parameters defined in AX registery the explain to the int21 which function will use
mov ax,0900h ;so printing function
OR
mov ah,4ch ;to return back to dos

take this link and discover all functions of INT21 :

http://heim.ifi.uio.no/~stanisls/helppc/int_21.html

bye

BlackSun 4 Light Poster

hi
sorry amn`t finish ur problem yet but u can use this :

CheckBox ck = new CheckBox();
ck.BackColor = Color.Transparent;
dataGridView1.Controls.Add(ck);

the u can do algorithm which u can put ur checkbox in ur certain header and do ur conditions .... after returning back i will do it .

BlackSun 4 Light Poster

u welcome man

BlackSun 4 Light Poster

sorry here it is

BlackSun 4 Light Poster

hi

int counter=1;
float interest;
float deposite = 1000;
while (counter<= 50)
{
interest = deposite * 0.8f;
deposite +=interest;
Console.WriteLine(counter.ToString() + "={0}", deposite.ToString());
counter++;
}
Console.ReadLine();
}

bye

Rashakil Fol commented: Don't do people's homework for them; use code tags; your solution's broken. -1
BlackSun 4 Light Poster

hi
check thi url it gives u more explanation for why this happends

http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx

bye

BlackSun 4 Light Poster

hi u can use this sample i create it for u plz aknowledge me that it`s good for u or not ...

this is sample :

int conditionOne=0;
int counterx=0;
int countery = 0;
bool conditionOne2 = false;
for (i = 0; i < Form1.rows; i++)
{
for (j = 0; j < Form1.colomns; j++)
{
b[i,j] = new Button();
if (conditionOne == i && conditionOne2==true )
{
counterx += 60;
}
else if(conditionOne2==true)
{
countery += 40;
counterx = 0;
}
b[i,j].Location = new System.Drawing.Point(counterx + 10, countery + 10);
b[i,j].Name = "button1" + i.ToString();
b[i,j].Size = new System.Drawing.Size(50, 20);
b[i,j].TabIndex = 2;
b[i,j].Text = i.ToString()+","+j.ToString();
b[i,j].UseVisualStyleBackColor = true;
this.Controls.Add(b[i,j]);
conditionOne2 = true;
conditionOne = i;
}

if u want more explanation contact me :)

BlackSun 4 Light Poster

// reading the contetnt of file
StreamReader sr = new StreamReader(Sting Path);
textbox1.text=sr.ReadToEnd();
sr.Close();

//writing to the file

StreamWriter sw = new StreamWriter(Sting Path);
sw.WriteToEnd();
sw.Close();

BlackSun 4 Light Poster

yeah u right
but u can use method "ReadToEnd" for multiline controls

StreamReader sr = new StreamReader(---------);
TextBox1.text = sr.ReadToEnd();
so ur reader will return all readed data ......

BlackSun 4 Light Poster

hi
partially i didn`t inderstand u :)

if u wanna load rft file so u can use RichTextBox control :

richTextBox1.LoadFile(String Path,RichTextBoxStreamType.RichText);

that i tested but ther is more

bye

BlackSun 4 Light Poster

hi
try using namespace System.IO;you will find two classes responsible for reading and writing from file with more options are :
- StreamReader ;
- StreamWriter ;
u can read ur file using StreamReader the write it using StreamWriter
but after using ur StreamReader and Writer close them EX :
StreamReader sr = new StreamReader(Strin Path);
TextBox1.Text=sr.ReadLine();
sr.close(); ------------> close reader;

and the same with Writer ;

there is another class File contains static members
File.ReadAllText();
File.WriteAllText();
File.open(string path , filemode.append);

all these depends on ur application if u wana preview ur text file and append with another file or u wanna do ur method during procesisng ur code ;

there is more but that easy ways u can append ur txt files

bye

BlackSun 4 Light Poster

i can't understand u well but i understaned that u need to detect the position of any center of the target circle u can use selection tool and do it by g.draweclips(......) in name space system.drawing.drawing2d or u can load ur pic on ur panel and use

  private void Form1_MouseMove(object sender, MouseEventArgs e)
        {
            textBox1.Text =e.X.ToString()+" "+e.Y.ToString();
        }

sorry if isn't ur expected answer..

BlackSun 4 Light Poster

i didn`t try it but there is event monthCalendar1_DateSelected so u can know the selected date so use buttone or any control will help to send ur data nd date to ur database so by this event u can chech for the certain date arrgument "e.start.date" to yr colomn date for ur data base i have example but i save data i array ex:

namespace caleder
{
    public partial class Form1 : Form
    {
        string date;
        int counter = 0;
        string[] save = new string[5];
        string[] save2 = new string[5];
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            date = monthCalendar1.TodayDate.ToString();
        }

        private void monthCalendar1_DateSelected(object sender, DateRangeEventArgs e)
        {
            date = e.Start.Date.ToString();
                    for (int x = 0; x < counter; x++)
                    {
                        if (save[x] == e.Start.Date.ToString())
                        {
                            textBox2.Text = save2[x];
                            break;
                        }
                        else
                            textBox2.Text = "no data found";
                    } 
        }

        private void button1_Click(object sender, EventArgs e)
        {
            save[counter] = date;
            save2[counter] = textBox1.Text;
            counter++;
            textBox1.Clear();
            textBox2.Clear();
        }
    }
}
BlackSun 4 Light Poster

namespace is logical grouping of related classes so that`s mean the namespace is container of classes organized as hierarchically . for example system namespace in .net framework so system contains alot of classes so u use it in ur programe
using System;
and when u create ur DLL it create ur namespace depends on ur name project as we see in this ex:

namespace test
{
    public class Class1
    {
    }
}

ur dll project has name "test" and it`s contains ur own class so when u finish ur dll so add it on ur project and u will use it
as
using test;
so u can use "class1"
class1 blah = new blah(); and so on....
here another ex:

using System;
namespace SomeNameSpace
{
    public class MyClass 
    {
        static void Main() 
        {
            Nested.NestedNameSpaceClass.SayHello();
        }
    }

    // a nested namespace
    namespace Nested   
    {
        public class NestedNameSpaceClass 
        {
            public static void SayHello() 
            {
                Console.WriteLine("Hello");
            }
        }
    }
}

sorry for my bad expression.