|
Pete O'Hanlon wrote: Please don't crosspost. It's bad form.
Many newbies probably don't know what cross-posting means
|
|
|
|
|
Many don't seem to know what "How to get an answer to your question" means either.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
I am generating a table.
each cell of that table has some information & an image.
now I want to assign a specific location to that image in each cell at runtime. please provide me necessary solution
|
|
|
|
|
Nope. I've tried to survey the mystic nugget of knowledge and it's just not giving up its secrets. Without its help, I just cannot work out which technology you are talking about. Is it ASP.NET, WPF, Silverlight, WinForms, Magic 8 Ball?
|
|
|
|
|
|
|
In future, when asking questions about ASP.NET, could you please use this[^] forum then? The quick answer to your question would be to use CSS to govern the positioning of the image - I assume you have got stylesheets in place for your web pages.
|
|
|
|
|
sir, I have to explain you the whole scenario.
I am actually generating barcodes.
Now each cell have some information related with a product along with it's barcode generated at runtime.
Now please tell me how can I place this barcode image at a specific position in a cell using coordinates & coding in c#.
|
|
|
|
|
Member 8374202 wrote: Now please tell me how can I place this barcode image at a specific position in
a cell using coordinates & coding in c#.
You can still use CSS for this. I suggest that you take this over to the ASP.NET forum now.
|
|
|
|
|
ok, sir
thank you for giving your time to me.
|
|
|
|
|
And a 5 from me for such a polite reply. Well done.
|
|
|
|
|
ok sir
I will get back to you if many problem related to c# will arrive
|
|
|
|
|
cells? it must be MineSweeper then. He probably wants to put up new bombs and different flags.
|
|
|
|
|
Hai
I developing a software in c# i want to know how to write code for cute comboboxes for windows7.
anyone can help me please ?
Arunkumar
|
|
|
|
|
What do you mean by cute comboboxes for windows7?
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
|
which frontend tech. you are using (WPF, Silverlight , etc.)?
"Insanity is doing the same thing over and over again but expecting different results.” — Rita Mae Brown
|
|
|
|
|
iam using .net as my desktop application framework
|
|
|
|
|
That is a web site, so you need to look at the options available within ASP.NET for creating drop down lists. There are lots of articles here on CodeProject that will offer suggestions.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
Thank you for your valuable time
I thing u misunderstand my question!
iam not looking for a asp.net combo box. i want to integrate that type of combo box in my desktop application.
Thank you
Arunkumar
|
|
|
|
|
I'm not sure Winforms or even WPF allows this kind of theming natively. What you'll need to do is write your own usercontrol that inherits from the standard combobox. I think this usercontrol will consist of several standard controls:
- a textbox
- a button (that resembles the down arrow)
- an invisible panel, size: width = textbox, height = 0 (by default)
You then load this panel with the items (via labels or textblocks) and on click of the button the panel grows in size (at the position right below the textbox). When a label/textblock was clicked, the panel is closed again andf the text put in the textbox.
hope this helps.
PS: Please avoid text speech and mind the spelling (even if you're not native English)
V.
|
|
|
|
|
I was thinking the same.
|
|
|
|
|
Yeah, genius minds think alike
V.
|
|
|
|
|
ok guys
Thanks for your replays
Now i am facing another problem
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace Combo
{
public class Combo
{
private System.Windows.Forms.ComboBox li = new System.Windows.Forms.ComboBox();
public void Addselect(Control FormName, string name, int top, int left, int width, int height, string Text)
{
li.Top = top;
li.Left = left;
li.Width = width;
li.Height = height;
li.Name = name;
li.FlatStyle = FlatStyle.Flat;
li.CreateGraphics();
li.Text = Text;
li.IntegralHeight = false;
li.MaxDropDownItems = 5;
li.DropDownStyle = ComboBoxStyle.DropDown;
li.Size = new System.Drawing.Size(136, 81);
li.BackColor = System.Drawing.Color.DarkGray;
FormName.Controls.Add(li);
}
public void Additems(string[] items)
{
li.Items.AddRange(items);
}
public bool Enabled
{
get { return li.Enabled; }
set { li.Enabled = value; }
}
public bool Visible
{
get { return li.Visible; }
set { li.Visible = value; }
}
}
}
Iam Creating a library for combobox.(iam a newbie to c#)
iam using this library for adding many combobox in my form
can any one tell me how to create a selectedindexchanged event handler for each combobox i creating?
i tried the commented code but i got a error like this
Error 1 The type 'Combo.Combo' already contains a definition for 'SelectedIndexChanged' D:\SelectboxLibrary\SelectboxLibrary\Class1.cs 47 22 SelectboxLibrary
Please Hep me
Arunkumar
|
|
|
|
|
Lots of suggestions here[^].
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|