|
wgarnett wrote: please don't post the reply answer of no help
I am posting the reply answer of help.
I am advising you on the correct behaviour on CP forums.
Now for goodness sake, decide if you want a C# answer or a VB answer and delete the one you don't want.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
I just want to know C# or VB.Net method
so I post to two forum
and plz don't waste time to reply unuseful answer
I only want to know the method that how to do it
If you know the useful sample and example , plz give me the link , thanks .
garnett
|
|
|
|
|
wgarnett wrote: I just want to know C# or VB.Net method
So just post in one place and say that you don't mind if responses are in C# or VB.
wgarnett wrote: so I post to two forum
I have tried and tried to explain to you that doing so is considered rude on CP.
wgarnett wrote: and plz don't waste time to reply unuseful answer
I have all the time in the world, no problem at all.
wgarnett wrote: I only want to know the method that how to do it
You might have a better chance of getting an answer if you, explain your problem in a clearer way.
wgarnett wrote: If you know the useful sample and example , plz give me the link , thanks .
I have a link for you here[^].
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Hi .. man
I say I only want to know how to do it
the technology , the component or the method
If you have no useful answer for this topic
please don't waste time to reply
garnett
|
|
|
|
|
I found the answer by myself, it uses component called "listbar"
I only want the answer like this , ok ?
garnett
|
|
|
|
|
Well done.
I am pleased that you have found a solution.
Henry Minute
Do not read medical books! You could die of a misprint. - Mark Twain
Girl: (staring) "Why do you need an icy cucumber?"
“I want to report a fraud. The government is lying to us all.”
|
|
|
|
|
Dear sir,
i want to perform double click event in list view item, whenever i click on one item it shuld perform event. i have tried mani events such as mousedoubleclick, mouseclick, but it is not working.
could u plz tell me how can i do this??
yogesh
|
|
|
|
|
The event is automatically triggered when you double-click an item. What are you trying to achieve?
|
|
|
|
|
in my project it is not working. if i create new project and i do this then it is working. i cant undustand why it is not working.
yogesh
|
|
|
|
|
i am new to c#.net and was wondering if you guys can help me.
i am trying to import files with specific keyword in filename name from HTTP site to my local folder.
i think not sure- i can can't use webclient cos i can't filter file with my keyword on site.
please help.
thanks in advance.
Shon
|
|
|
|
|
Dear,
i have two different namespaces. i want to use one class of one namespace in another namespace. i tried with using keyword. but it is not working.
yogesh
|
|
|
|
|
You can't put a class name in a using, only the namespace.
using NamespaceTwo;
namespace NamespaceOne
{
public class ClassA
{
ClassB b1 = new ClassB();
NamespaceTwo.ClassB b2 = new NamespaceTwo.ClassB();
}
}
namespace NamespaceTwo
{
public class ClassB
{
}
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
yogesh_softworld123 wrote: i tried with using keyword. but it is not working.
You need to be specific about exactly how it isn't working. I'm going to assume that you got an error that said something like Are you missing an assembly reference?
If they are then you have to add a reference to the assembly the class you want to use is contained in.
To do this, right click on the project (in the Solution Explorer) and select "Add reference..." in the context menu. In the dialog select the "Projects" tab and then select the project the class you want to use is in.
Your using should then work.
|
|
|
|
|
Make sure the class you're trying to use is marked as public , otherwise it won't be visible outside its namespace.
|
|
|
|
|
I have to list boxes...and i have a datagrid with binded to complete table..and i am using DataGridCombocolumn with displaystyle as nothing to display the values from master tables in relation instead of their IDs...
On selection change event of second list box i put this filter...values in both list boxes are selected...it shows correct values in debug mode........
MyBindingSource.Filter = "Column1="+cbCol1.SelectedValue+" AND Column2= "+cbCol2.SelectedValue;
it gives following error
Syntax error: Missing operand before 'And' operator.
|
|
|
|
|
You might be missing the ' (quote). Try it this way,
MyBindingSource.Filter = "Column1='"+cbCol1.SelectedValue+"' AND Column2= '"+cbCol2.SelectedValue+"'";
See the example here, Link[^]
|
|
|
|
|
When i am doing it like that it gives error cannot convert System.Int32 to System.String
Actually both are Primary key IDs in individual master tables....but the value coming here is string...If i am not using AND clause this is working fine with individual listbox filtering it is auto converting those strings...Its only then when i want to filter by values from both columns its creating prob...I am not facing any prob with combo box in the same situation.......Its the only list box thats irritating
|
|
|
|
|
(("Column1="+cbCol1.SelectedValue.ToString()+") AND (Column2= "+cbCol2.SelectedValue.ToString()));
This might work...
And one more thing.
it might be && inspite of AND
But not so sure. .
|
|
|
|
|
Hi All,
I am using C#. I have a empty Form. When i move mouse on the Form, i am displaying the x and y position of mouse using DrawString() method.
Graphics grx = e.Graphics;
string xy = "X: " + cursorPos.X.ToString() + "\nY: " + cursorPos.Y.ToString();
grx.DrawString(xy, font, brush, cursorPos.X, cursorPos.Y);
The above code snippet is in Paint event. Hence the x and y values move along with cursor.
My problem,
When i change the opacity of Form from 100% to 10%, the Form becomes transparent. Even x and y values (displayed using DrawString) becomes transparent (faint).
I want the x and y values to be displayed clearly even if Form is transparent. How can i achieve it?
Thanks in advance.
|
|
|
|
|
Hmmm not sure if will work but try the following...
Set the backcolor of your form to a color not used for you text, the set the tranparencykey to match.
then put a panel on your form with backcolor as Transparent.
then do your paint code to the panels Paint Event.
hopefully it will work
EDIT:
just tested and works fine, just need to set the FormBorderStyle to None
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Thank you very much for your help, but i am not getting the result.
Will you please elaborate? Have you set panel dock to fill?
|
|
|
|
|
ok this is all i did... the form contains only one panel, simply drag and dropped to design, set
Panel1.BackColor = Color.Transparent;
and double clicked Paint event handler, thats all i did to the panel
public Form1()
{
InitializeComponent();
this.BackColor = Color.Red;
this.TransparencyKey = Color.Red;
this.FormBorderStyle = FormBorderStyle.None;
}
void Panel1Paint(object sender, PaintEventArgs e)
{
e.Graphics.DrawString("SOME TEXT", Label.DefaultFont, Brushes.Blue, 0, 0);
}
when the form loads all i can see is "SOME TEXT" in blue on my screen
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|
|
Thank you.
Thanks a lot for your time and support. I am grateful to you.
|
|
|
|
|
A customer have an CRM with custom revision handling.
When I open, change and save a document (2007) I must force the custom revision on the document.
In the header I have 2 fields {AUTHOR \* MERGEFOMAT} and {INFO RevNum} that I need to update programatically using using Word = Microsoft.Office.Interop.Word
After a days serch I am bewildered. Does anyone know of a way to do this?
Java
C#
Gupta Team Developer 3.1
VC++ 2003
Oracle 8i79i
W2K-XP
|
|
|
|
|
WordDocument has a property called 'Fields' which is a list of Word.Field Type which has a function called Select()
I not sure but i would assume that would select the field for you to add text to
Life goes very fast. Tomorrow, today is already yesterday.
|
|
|
|