|
hi,
can u tell me how exactly i can find the country and city of a certain IP address.
thanks
jamil abou khalil
|
|
|
|
|
|
OK thanx for your help.....I will try that and let you know....
nishu
|
|
|
|
|
Hi all,
i have written a query in SQL which returns multiple rows.
i used a SqlDataReader to capture the result.
what i want is to retrieve data from this DataReader and store it in a string array.
this is how iam proceeding..
string[] arr = new string[10];
int index=0;
while(reader.Read())
{
object[] values = new object[reader.FieldCount];
reader.GetValues(value);
vlaues.CopyTo(arr,index);
index++;
}
this is not working and i know tat CopyTo cannot be used in this context, but i just dont have any idea what to use. I need to use this string array in an if-else condition where i need to compare each string in that array with a specified string and return a boolean value.
i would be grateful to anybody who can help me in this regard. i have been working on this for almost 2 days without a breakthrough.
Sonu
|
|
|
|
|
Okay - I can see that your code is not working. I think it is because you don't really understand what the GetValues() method is returning.
So, I need the answer to the following questions:
* What is SQL Server returning? How many rows? How many columns?
* What do you want your output to be?
|
|
|
|
|
hi, I Would like to know if i have a windows application, i can do a setup for it.
La Light
|
|
|
|
|
Add a new project to your solution, a setup project and add tje primary output of your app project to the setup project, your first default setup is ready to compile
- - - --[ i love it when a plan comes together ]-- - - -
|
|
|
|
|
Can you you be more especific Because i dont get well
La Light
|
|
|
|
|
Hello!
I have a panel with 2 buttons and it has to be possible for user, resize the buttons.
Do you have some tipps for me?
|
|
|
|
|
hi,
just set the resizable property of the button as true
jamil abou khalil
|
|
|
|
|
Thank you for your answer, but "resizable property of the button" doesn't exists..;)
|
|
|
|
|
Now I have a "dirty-solution" for this problem, do you know a better (simpler) way?
<br />
private void KeyerForm_MouseMove(object sender, MouseEventArgs e)<br />
{<br />
SetCursor(e);<br />
if (this.bMDown)<br />
{<br />
int delta_x = e.X - this.StartX;<br />
int delta_y = e.Y - this.StartY;<br />
<br />
if ((this.Left + delta_x) < 0 || (this.Top + delta_y) < 0 || (this.Left + delta_x) > (this.Parent.Width - this.Width) || (this.Top + delta_y) > (this.Parent.Height - this.Height))<br />
{<br />
return;<br />
}<br />
<br />
if ((e.X < WidthOfRand || ((this.Size.Width - e.X) < WidthOfRand)) && (e.X != this.StartX))<br />
{<br />
if (e.X < WidthOfRand)<br />
{<br />
this.Width += delta_x * (-1);<br />
this.Left += delta_x;<br />
this.Refresh();<br />
this.Parent.Refresh();<br />
return;<br />
}<br />
if ((this.Size.Width - e.X) < WidthOfRand)<br />
{<br />
this.Width += delta_x;
this.catchMouse(new Point(Cursor.Position.X + delta_x, Cursor.Position.Y));<br />
this.PointToClient(Control.MousePosition);<br />
Cursor.Position = new Point(Cursor.Position.X + delta_x, Cursor.Position.Y);<br />
this.Refresh();<br />
this.Parent.Refresh();<br />
return;<br />
}<br />
return;<br />
}<br />
<br />
<br />
if ((e.Y < WidthOfRand || ((this.Size.Width - e.Y) < WidthOfRand)) && (e.Y != this.StartY))<br />
{<br />
if (e.Y < WidthOfRand)<br />
{<br />
this.Height += delta_y * (-1);<br />
this.Top += delta_y;<br />
this.Refresh();<br />
this.Parent.Refresh();<br />
}<br />
return;<br />
} <br />
if (((e.X != this.StartX) || (e.Y != this.StartY)) && (this.Cursor == Cursors.Hand))<br />
{<br />
this.Left += e.X - this.StartX;<br />
this.Top += e.Y - this.StartY;<br />
this.Refresh();<br />
this.Parent.Refresh();<br />
}<br />
}<br />
}<br />
<br />
void KeyerForm_MouseUp(object sender, MouseEventArgs e)<br />
{<br />
this.bMDown = false;<br />
}<br />
<br />
void KeyerForm_MouseDown(object sender, MouseEventArgs e)<br />
{<br />
this.StartX = e.X;<br />
this.StartY = e.Y;<br />
this.bMDown = true;<br />
}<br />
<br />
private void SetCursor(MouseEventArgs e)<br />
{<br />
if (e.Y < WidthOfRand || ((this.Size.Height - e.Y) < WidthOfRand))<br />
this.Cursor = Cursors.HSplit;<br />
else<br />
if (e.X < WidthOfRand || ((this.Size.Width - e.X) < WidthOfRand))<br />
this.Cursor = Cursors.VSplit;<br />
else<br />
this.Cursor = Cursors.Hand;<br />
}<br />
<br />
|
|
|
|
|
Hi folks,
I am new for .Net 2.0 and VS-2005. I getting warning message when i using following code,
System.Configuration.ConfigurationManager.AppSettings'
the error is following
System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'
I already added reference for System.Configuration to my project.
can u plz clear my doubt.
|
|
|
|
|
hi,
i think u are using a method that is used in VS2003 and is not any more supported in VS2005. they are giving u an alternative for that method so try using it.
best regards,
jamil abou khalil
|
|
|
|
|
Hi,
Dont worry about the details. Just replace the following line in your code
System.Configuration.ConfigurationSettings.AppSettings
with
System.Configuration.ConfigurationManager.AppSettings
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
Hi
Its working fine.
Thank u for u'r reply.
|
|
|
|
|
It's just a namespace change in .NET 2.0. The compiler is telling you that you are using an obsolete namespace.
|
|
|
|
|
Hi, I wanna ask if any body can help me in converting a numeric value to text, the value here is a currency and I also have three decimal places need to be converted, the maximum value is 9,999,999,999.999 the text must be in arabic, thanx.
Example:
2,345,654,985.45
إثنان مليار وثلاثمائة وخمس وأربعون مليون وستمائة وخمس وأربعون ألف وتسعمائة وخمس وثمانون دينار و أربعمائة وخمسون فلس
I've made one, but not effecient, and I wanna know if there is a ready one?
Abdullah Omar
-- modified at 8:59 Monday 13th November, 2006
|
|
|
|
|
Numeric Format Strings[^]
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|
|
Beaten to it, yeah in short add .ToString() to the variable or whatever, it works on most everything
|
|
|
|
|
fada7tna ya man ;)
When you get mad...THINK twice that the only advice
Tamimi - Code
|
|
|
|
|
men wein btla3o hadol, shawah som3etna,el 3rs,
Mohamad A. Flefel
mflefel@hotmail.com
C#.net & VB.net Developer
|
|
|
|
|
|
Tamimi - Code wrote: llllllllllooooooooolllllllllll
zakarny b abo rami
when i had read it i think that u can't make it ,it is too hard on u ,
he had asked the experts like me , not biggeners like u... so ... don't reply stupid ideas ,
i had send him the answer
we either find a way or not joke about people and shut the f*** up
Mohamad A. Flefel
mflefel@hotmail.com
+962 79 5963865
C#.net & VB.net Developer
|
|
|
|
|