|
Message Closed
modified 23-Nov-14 7:16am.
|
|
|
|
|
Thank you for your reply!
I also know BitConverter class.Please read my post again, convert length to bytes but then b0, b1 have values making (b0<<8) + b1 having the same vr's value before.
That's what I get to.
|
|
|
|
|
Warning: untested
b0 = (byte)length;
b1 = (byte)(length >> 8);
b2 = (byte)(length >> 16);
b3 = (byte)(length >> 24);
|
|
|
|
|
I've made a picturebox where I have a runtime code in. There i open a other Picturebox, but that picturebox I run runtime from the Design Picturebox is under the design picturebox and must be at the top. Hope somebody can help.
Dennis,
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace KVzoekscherm
{
public partial class runtimeobject : Form
{
Button button1;
Button button2;
Bitmap image1;
PictureBox pictureBox1;
public runtimeobject()
{
InitializeComponent();
}
private void pbMaak_Click(object sender, EventArgs e)
{
pictureBox1 = new PictureBox();
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.BorderStyle = BorderStyle.None;
pictureBox1.ClientSize = new Size(15, 15);
pictureBox1.Location = new System.Drawing.Point(50, 50);
pictureBox1.Cursor = Cursors.Hand;
pictureBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
pictureBox1.TabIndex = 28;
image1 = new Bitmap(Properties.Resources.edit_gray);
pictureBox1.Image = (Image)image1;
pictureBox1.Click += new EventHandler(editclick);
pictureBox1.MouseLeave += new EventHandler(editleave);
pictureBox1.MouseEnter += new EventHandler(editenter);
this.Controls.Add(pictureBox1);
}
private void editenter(object sender, EventArgs e)
{
image1 = new Bitmap(Properties.Resources.edit_color);
pictureBox1.Image = (Image)image1;
}
private void editleave(object sender, EventArgs e)
{
image1 = new Bitmap(Properties.Resources.edit_gray);
pictureBox1.Image = (Image)image1;
}
private void editclick(object sender, EventArgs e)
{
MessageBox.Show("Clicked");
}
private void runtimeobject_Load(object sender, EventArgs e)
{
}
private void pbMaak_Click_1(object sender, EventArgs e)
{
}
}
}
|
|
|
|
|
Use this to move control to the back
pictureBox1.SendToBack();
Edit: I suggest you use Name property. If you intended to use Controls to search through controls. It will be easier to get the desired control.
pictureBox1.Name = "pictureBox1";
|
|
|
|
|
But:
pictureBox1.SendToBack();
I will need to send pictureBox1 to the front :P
That option doesn't Exist.
SendToFront 
|
|
|
|
|
|
 II've used this code now all is working BUT!:
Here is is coming:
If i mouseenter and mouseleave it now it is changing the image and if i disable the Bring toFront it is working?
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace KVzoekscherm
{
public partial class runtimeobject : Form
{
Button button1;
Button button2;
Bitmap image1;
PictureBox pictureBox1;
public runtimeobject()
{
InitializeComponent();
}
private void pbMaak_Click(object sender, EventArgs e)
{
pictureBox1 = new PictureBox();
pictureBox1.Name = "pictureBox1";
pictureBox1.BringToFront();
pictureBox1.SizeMode = PictureBoxSizeMode.StretchImage;
pictureBox1.BorderStyle = BorderStyle.None;
pictureBox1.ClientSize = new Size(15, 15);
pictureBox1.Location = new System.Drawing.Point(50, 50);
pictureBox1.Cursor = Cursors.Hand;
pictureBox1.Anchor = AnchorStyles.Top | AnchorStyles.Right;
pictureBox1.TabIndex = 28;
image1 = new Bitmap(Properties.Resources.edit_gray);
pictureBox1.Image = (Image)image1;
pictureBox1.Click += new EventHandler(editclick);
pictureBox1.MouseLeave += new EventHandler(editleave);
pictureBox1.MouseEnter += new EventHandler(editenter);
this.Controls.Add(pictureBox1);
}
private void editenter(object sender, EventArgs e)
{
image1 = new Bitmap(Properties.Resources.edit_color);
pictureBox1.Image = (Image)image1;
}
private void editleave(object sender, EventArgs e)
{
image1 = new Bitmap(Properties.Resources.edit_gray);
pictureBox1.Image = (Image)image1;
}
private void editclick(object sender, EventArgs e)
{
MessageBox.Show("Clicked");
}
private void runtimeobject_Load(object sender, EventArgs e)
{
}
private void pbMaak_Click_1(object sender, EventArgs e)
{
}
}
}
|
|
|
|
|
If there is control on top of yours, it should affect Mouseenter and MouseLeave events, but I am starting with a job, so I Cant help you now and test it
|
|
|
|
|
Yes im trying some things do will say when it is owkring here. Now waiting for somebody else his help.
Thanks!
|
|
|
|
|
|
Hi.
I want to implement the following scenario :
i have a crawler exe that crawls a site given a url , the url is in an xml file that the crawler reads.
now, i want to be able to have an xml file that have a javascript function that gets the current page that was downloaded in a string from the crawler , and in that function i want to manipulate the page string and return a string to the crawler.
is it possible?
|
|
|
|
|
Hi,
I've faced a problem, pls help me.
I developed a windows application which uses SQL Server(2005) as database.
Now the problem is that I want to install the application in client machine which don't have sql server database. Now how can I install the application in client machine so that sql sever install automatically when i run setup.exe in client machine.
thanks..........
Regards,
samrat
|
|
|
|
|
SQL Server is not a client application it is a SERVER application and therefore requires a completely different installation than the one you are proposing. Look into using SQL Express where you can use an .MDB file on the client.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Just write in the documentation that they have to have SQL Server installed.
|
|
|
|
|
Hi,
I'm working on desktop application which is a pdf viewer. I'm trying ot find the occurrence of a word and highlight it. I'm able to find the word and highlight.
The problem is finding the next or previous occurrence of a word. I'm not able to implement it in the usual / standard way. The way I have imlpemented, it worls some times and doesn't work sometime.
I need help in developing the logic for this.
Any suggestion is appreciated
|
|
|
|
|
Pavan Navali wrote: The way I have imlpemented, it worls some times and doesn't work sometime.
Then find a bug and fix it.
I would do it like This: Create List array with a struct object. Struct object would hold position like column and row. Every time the search criteria would change list array would update. And I would use Index as next and previous
|
|
|
|
|
Hi Frds,
I want to pass connection string parameters in SSRS side. How to do this?
Actually I am using connection info in SSRS side but if I want to promote my reports to
production then how can I make connection string configurable in SSRS
Thanks,
|
|
|
|
|
We set the server name up as an expression variable and then use the variable in the connection within SSRS, works and allows the user to select the server to run against but makes supporting the report difficult.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Is it possible to implement a customize ribbon (let user customize it) feature like Word/Powerpoint/etc have with Windows 7's built in Ribbon in c#?
|
|
|
|
|
Hi,
I want to write an application that will be able to resize another application's window.
I've done lots of Googling but have come up empty handed.
Can anyone help me out with a good method to accomplish this?
Thanks in advance!
|
|
|
|
|
Unless the application allows you do that, pop up a message asking the user to resize the window.
|
|
|
|
|
Hi,
Assuming:
1. you can identify the window by its handle
2. the window is resizable
3. you're not afraid of a little P/Invoke
you can use SetWindowPos (with option SWP_NOMOVE = 0x0002 and SWP_NOZORDER = 0x0004) to resize the window.
[DllImport("user32.dll", EntryPoint="SetWindowPos", CallingConvention=CallingConvention.StdCall)]
public static extern uint SetWindowPos(IntPtr Hdc, IntPtr hWndInsertAfter,
int X, int Y, int cx, int cy, uint flags);
modified on Friday, December 18, 2009 6:44 AM
|
|
|
|
|
جهت مشاهده و نحوه دریافت این کامپوننت میتوانید به سایت من رجوع کنید
www.ggsoft.ir
Welcome Mohsen Sabzaliyan
|
|
|
|
|
Huh?
So what is this? Unreadable advertising?
|
|
|
|