Ramy Mahrous 401 Postaholic Featured Poster

So, please mark it as solved :)

Ramy Mahrous 401 Postaholic Featured Poster
Datanizze commented: Thanks for the helpful linking! :D +1
Ramy Mahrous 401 Postaholic Featured Poster

I attached the images, I hope it clarifies...

ddanbe commented: Very intructive! This man knows what he his doing! +4
Ramy Mahrous 401 Postaholic Featured Poster

You can connect from JavaScript to database, and validate user credentials, if has permission you can from JavaScript redirect him to the Flash page!

tiger86 commented: :) +1
Ramy Mahrous 401 Postaholic Featured Poster

ASP.NET forum is better for web applications http://www.daniweb.com/forums/forum18.html

Ramy Mahrous 401 Postaholic Featured Poster

Look, you reached to very good phase.. what you need is to know how to go through nested directories. I believe you can do it on your own.

Comatose commented: I Fully Agree Here... Learning Nested Directories Is an absolute must. +10
Ramy Mahrous 401 Postaholic Featured Poster

So, debug your code :) you'll see if Antenka got the solution or not.

Ramy Mahrous 401 Postaholic Featured Poster
Comatose commented: Always Helpful, And Precise +9
Ramy Mahrous 401 Postaholic Featured Poster

If you traced the SQL Command sent, you'll find it doesn't surround the state within single quotes '
What you need is to modify it Dim SQLComm = New SqlCommand("SELECT * FROM ViewCustomers('" & vRegion & "')", conn)

bajanpoet commented: Was a great help... two pairs of eyes are better than one for seeing minute differences in code! +3
Ramy Mahrous 401 Postaholic Featured Poster

If you have string like that in table "lmlmlaa,lmlmlaa, lmlmlaa, lmlmlaa" and need to return it as table
ID text
1 lmlmlaa
2 lmlmlaa
3 lmlmlaa
4 lmlmlaa
and you may also do some operation on this table, what do you see is to handle this in C# or UDF?

csharplearner commented: tnx fr ur time +1
Ramy Mahrous 401 Postaholic Featured Poster

1- Please when embedding code, use code tags to make yout code readable

Dim result As Decimal
        result = Decimal.Divide(Decimal.Parse(TextBox1.Text), Decimal.Parse(TextBox2.Text))
        result = FormatNumber(result, 2, TriState.False)
        Label1.Text = String.Format("the result = {0} ", result)
Comatose commented: Nice Code And Replies +8
Ramy Mahrous 401 Postaholic Featured Poster

int value type.. TextBox reference type you should new it...

ddanbe commented: Arrrghhg! Thanks Ramy I should indeed KNEW it! +4
Ramy Mahrous 401 Postaholic Featured Poster

I think it's the time to close this thread! really I feel shame when I look to the question then find these huge number of replies!

ddanbe commented: quite right +3
Ramy Mahrous 401 Postaholic Featured Poster

Here's some codes...

List<Human> Humans = new List<Human>();

        void Add(Int16 humanID, string humanName, Int16 humanAge, float humanSalary)
        {
            Humans.Add(new Human(humanID, humanName, humanAge, humanSalary));
        }

        float GetMaxSalary()
        {
            float maxSalary = 0;
            foreach (Human aHuman in Humans.ToArray())
            {
                if (aHuman.SALARY > maxSalary)
                    maxSalary = aHuman.SALARY;
            }
            return maxSalary;
        }

        float GetMinSalary()
        {
            float minSalary = GetMaxSalary();
            foreach (Human aHuman in Humans.ToArray())
            {
                if (aHuman.SALARY < minSalary)
                    minSalary = aHuman.SALARY;
            }
            return minSalary;
        }

        float GetAverage()
        {
            float totalSalary = 0;
            foreach (Human aHuman in Humans.ToArray())
            {
                totalSalary += aHuman.SALARY;
            }

            return totalSalary/Humans.Count;
        }
    }

    struct Human
    {
        public Int16 ID;
        public string NAME;
        public Int16 AGE;
        public float SALARY;

        public Human(Int16 humanID, string humanName, Int16 humanAge, float humanSalary)
        {
            ID = humanID;
            NAME = humanName;
            AGE = humanAge;
            SALARY = humanSalary;
        }
    }
ddanbe commented: Does things very well! +3
Ramy Mahrous 401 Postaholic Featured Poster

[User] table still the same
[Rating] table has (Voter_Member int #, Voted_Member int #, Rating int)
- Composed primary keys (to maintain user can't de\vote user two times)
- Rating int (if you need some higher rating 1 2 3 4 or -1 -2 -3 -4)

kanaku commented: he saved my tables... haha +2
Ramy Mahrous 401 Postaholic Featured Poster

Set the property SelectedIndex to the item's index you want it to be the default...
Say we want to show the 6th item
In form load handler add this piece of code

comboBox1.SelectedIndex = 5;
polo_coins commented: Thanks a lot Ramy nice to meet you and thanks for your help +1
Ramy Mahrous 401 Postaholic Featured Poster

Is Test123 static method??! if not you should initiate instance first from Testing class

Testing _testing = new Testing();
_testing.Test123();
//Test123 should be public
Ramy Mahrous 401 Postaholic Featured Poster

I've searched how can you detect your speed and I got this piece of code

System.Net.WebClient wc = new System.Net.WebClient();
            DateTime dt1 = DateTime.Now;
            byte[] data = wc.DownloadData("http://google.com");
            DateTime dt2 = DateTime.Now;
            return (data.Length * 8) / (dt2 - dt1).TotalSeconds;
majestic0110 commented: an avid helper. Good work! +2
Ramy Mahrous 401 Postaholic Featured Poster

No, in text change event handler for the textbox let the label2.Text = textBox.Text.Length.ToString();

majestic0110 commented: this guy is good +1
Ramy Mahrous 401 Postaholic Featured Poster

In pictureBox event handler (MouseOver) assign the picturebox.image to the image which in resources. It works!

peter_budo commented: Thank you for help +7
Ramy Mahrous 401 Postaholic Featured Poster

In form properties you will find property called "Accept button" set it to the button you need to be pressed if user press "Enter"

majestic0110 commented: Thanks for the help +1
Ramy Mahrous 401 Postaholic Featured Poster

You can't add two bytes!

minigweek commented: Ok, thanks!But thats bit illogical! lolz! +1
Ramy Mahrous 401 Postaholic Featured Poster
Naruse commented: thx +1
Ramy Mahrous 401 Postaholic Featured Poster

Developers just don't look at methods documentation!!
Round method returns the rounded number that's your problem, friend!

double d = 1000.0 / 3000.0;
d = Math.Round(d, 2);
Console.WriteLine(d);
SiPexTBC commented: Thanks. +1
Ramy Mahrous 401 Postaholic Featured Poster

I think you use localization feature in your application and it doesn't recognize "en-CB" language.

bajanpoet commented: Your post got me moving on the right track! Thanks +2
Ramy Mahrous 401 Postaholic Featured Poster

I don't really understand you but I'll answer your thread subject

and I am sorry I'll write code in C# as I don't know VB.net at all :$

private int GetNumberOfControls()
{
//returns the number of control to be created
}

private void CreateTextbox()
{
TextBox textBox;

for(int i=0; i<GetNumberOfControls(); i++)
{
textBox = new TextBox();
textBox.Location = new Point(YourX, YourY);
..... //other properties
..... //other properties
this.Controls.Add(textBox);
}
}
Ramy Mahrous 401 Postaholic Featured Poster

Hello PoovenM again :)

From project properties, change Output type to Class Library

PoovenM commented: You're my C# Hero! :D +2
Ramy Mahrous 401 Postaholic Featured Poster

I don't know really if you can create object from class @ runtime and this class in text or xml file but you can work around this problem by creating assembly @ runtime and call this assembly by reflection. This solution if and only if Reflection don't create object from class @ runtime

PoovenM commented: Thanks for the help man! :) +2
Ramy Mahrous 401 Postaholic Featured Poster

Dear Ma7boob
As I am MSP, so is your copy is legal?? you may don't have an legal copy so they ask for money for that but please. I am not going to talk about MS reputation but tell me your problem in details and I'll solve it with you en shaa ALLAH

~s.o.s~ commented: Good sentiment. +20
Ramy Mahrous 401 Postaholic Featured Poster
Create proc InsertIntoMyTables
@topicID int,
...
...
AS
Insert into Topic values (@topicID,....)
Insert into Reply values(@replyID,....)

or you can use 2 insert statements but DON'T sepeate them with GO

or you can use Insert with inner join I don't remember it right now, if I do I'd reply again

Ramy Mahrous 401 Postaholic Featured Poster

you can't return more than object with different data type
but may use yield it may help you.

Ramy Mahrous 401 Postaholic Featured Poster

me to I was studying Computer Science in Egypt, the professors don't help in finding a project idea. you MUST do that on your own, because that's your project you should develop what you feel may make a difference!

If you are CS student, try to keep hardware a way for some reasons (time, team members, ...) you can work in software idea absolutely software.

if you're convinced, so tell me which computer field you're interested in?!

ddanbe commented: usefull :) +9
Ramy Mahrous 401 Postaholic Featured Poster

eng.nema you can get the idea yourself, we're like you, our minds have not the dozen of GP ideas as you think, we can answer you in design question, programming task, and so on..
try to get some ideas and we can recommend some of them.

derejewchannie commented: do you help me by idea? +0
Ramy Mahrous 401 Postaholic Featured Poster

what are you saying :| I think that's some sort of impossible tasks!!!
at least you should know the exact path, files reside down.

iamthwee commented: *A G R E E S* +11
Ramy Mahrous 401 Postaholic Featured Poster
#include <dos.h>
system ("shutdown +a"); // to enable automatic shutdown
system ("shutdown -s -t 1"); //to shutdown in 1 second
Ancient Dragon commented: Oh you are right +18
Ramy Mahrous 401 Postaholic Featured Poster

C++/VC++/C#/ : Programming language
COM/ Component Object Module, to develope your application in away of Modularity, Useability , ....
MFC/ classes libarabies to develope windows applications
WIN32API classes libarabies use some windows APIs

2 - VC++, but If you want really low level so C/C++,
3 - we do not care about that, u may hear C# or VC# or C#.NET or VC#.NET just we know C#