thx a lot for giving me right vector
Frozzeg
Posts
-
Transparent image as background of a window. How? -
Transparent image as background of a window. How?something like that http://westyle.ru/uploads/posts/2011-07/1310567617_transparent.png[^]
-
Select Areait did not help anyway thx
modified on Sunday, April 18, 2010 5:41 AM
-
Select AreaHello. I wrote a simple select area, but its working slow when form is maximized, who knows some alternative fast methods for this here is my code sry for bad english
public partial class Form1 : Form
{
bool canResize;
int mX, mY;
Rectangle rect = new Rectangle();public Form1() { InitializeComponent(); } private void Form1\_Paint(object sender, PaintEventArgs e) { e.Graphics.DrawRectangle(new Pen(Brushes.Purple, 2), rect); } private void Form1\_MouseDown(object sender, MouseEventArgs e) { canResize = true; mX = e.X; mY = e.Y; rect.Location = new Point(mX, mY); } private void Form1\_MouseUp(object sender, MouseEventArgs e) { canResize = false; } private void Form1\_MouseMove(object sender, MouseEventArgs e) { if (canResize) { if (mX < e.X) { rect.X = mX; rect.Width = e.X - mX; } else { rect.X = e.X; rect.Width = mX - e.X; } if (mY < e.Y) { rect.Y = mY; rect.Height = e.Y - mY; } else { rect.Y = e.Y; rect.Height = mY - e.Y; } this.Invalidate(); } } }
-
Asynchronous socket programmingok, very helpful, thx!
-
Asynchronous socket programmingat to fast message sending i get 1 incoming message with 10 grouped packets and not 1 packet for each of 10 incoming messages for p.s. sry for terrible english
-
Trouble with drawing on winfrom in new threadform1.CreateGraphics() and this is workling in other thread
-
Trouble with drawing on winfrom in new threadThread th = new Thread(delegate() { e.Graphics.DrawEllipse(new Pen(Brushes.Aqua, 10), new Rectangle(20, 20, 20, 20)); //this line throw new exception "Invalid argument" }); th.Start(); help pls
-
How to limit the number of simultaneously connected clientsin Apache done that I need, Apache accepting first 300 connections and then he stop accepting new connection before i destroy old connections i.e. it does not accept a new connection, and immediately disconnect, just an exception when i trying to do 301-th connection
-
How to limit the number of simultaneously connected clientsor rather I need to limit the maximum number of connections that can make 1 client p.s. sry for my english
-
How to limit the number of simultaneously connected clientsAdn can it be done before calling Socket.Accept() ?
-
Multiclient server applicationyes ok, thx
-
Multiclient server applicationhow to make server which 10 000 clients and more?
-
how can i send and receive packets by using network connection of another application?subject
-
AccessViolationException in OdbcDataReader"Does the loop run at least once?" - no Ok, thx
-
AccessViolationException in OdbcDataReaderSystem.AccessViolationException was unhandled Message="Attempting to read or write protected memory. This often indicates that other memory is damaged." Source="System.Data" StackTrace: в System.Data.Common.UnsafeNativeMethods.SQLGetData(OdbcStatementHandle StatementHandle, UInt16 ColumnNumber, SQL_C TargetType, CNativeBuffer TargetValue, IntPtr BufferLength, IntPtr& StrLen_or_Ind) в System.Data.Odbc.OdbcStatementHandle.GetData(Int32 index, SQL_C sqlctype, CNativeBuffer buffer, Int32 cb, IntPtr& cbActual) в System.Data.Odbc.OdbcDataReader.GetData(Int32 i, SQL_C sqlctype, Int32 cb, Int32& cbActualOut) в System.Data.Odbc.OdbcDataReader.internalGetString(Int32 i) в System.Data.Odbc.OdbcDataReader.GetValue(Int32 i, TypeMap typemap) в System.Data.Odbc.OdbcDataReader.GetValue(Int32 i) в FMySQLClient.MySQL.FetchArray(OdbcDataReader& reader) в C:\FMySQLClient\FMySQLClient\MySQL.cs:line 199 в FMySQLClient.Form1.button1_Click(Object sender, EventArgs e) в C:\FMySQLClient\FMySQLClient\Form1.cs:line 30 в System.Windows.Forms.Control.OnClick(EventArgs e) в System.Windows.Forms.Button.OnClick(EventArgs e) в System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) в System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) в System.Windows.Forms.Control.WndProc(Message& m) в System.Windows.Forms.ButtonBase.WndProc(Message& m) в System.Windows.Forms.Button.WndProc(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) в System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) в System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) в System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) в System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) в System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) в System.Windows.Forms.Application.Run(Form mainForm) в FMySQLClient.Program.Main() в C:\FMySQLClient\FMySQLClient\Program.cs:line 18 в System.AppDomain._nExecuteAssemb
-
AccessViolationException in OdbcDataReaderIt was a stupid mistake in "for", I mistakenly used instead of - +, thx but i still have AccessViolationException P.S. sry for my English
-
AccessViolationException in OdbcDataReaderIn the first message, I pointed to a code string with an error
-
AccessViolationException in OdbcDataReaderit did not help
-
AccessViolationException in OdbcDataReaderpublic Hashtable FetchArray(ref OdbcDataReader reader)
{
int counter = 0;
int integer = reader.FieldCount;
Hashtable hashtable = new Hashtable();
if (reader.Read())
{
for (int i = 0; i <= integer+1; i++)
{
hashtable.Add(reader.GetName(i), reader.GetValue(i)); // Exception here
}
counter++;
}
return hashtable;
}Im using MySQL Connector/ODBC 5.1