|
Hi, I am creating forms that use a menubar (file-save,print, etc.). In visual studios 2003 I could keep the menubar from scrolling by selecting true in the locked property field. I 2005 I even though I lock it for some reason it still scrolls with the form.
Do you know a way to keep the menubar from scrolling with the form in vs 2005
Thanks
|
|
|
|
|
Hi all.
I'd search in the board how an can get text that is at the coordinate x,y (I have a flexgrid on external program and want to get the text of some row/column by its x,y coordinates).
I didn't found nothing. Can someone help me?
Please, help me.
Thx in advance.
Best Regards,
Marco Alves.
|
|
|
|
|
Hi guys!
I have drag and drop with 2 ListBoxes.
Now i need to chage them to Multi Select mode.
How can i do it, and what i need to add in the code for it?
|
|
|
|
|
ytubis wrote: How can i do it
By writing code
ytubis wrote: what i need to add in the code for it?
A brain & some time to think
As of how to accomplish that have you ever tried Google?
Failing that try .
|
|
|
|
|
Yes I tried and i always get the VB examples and not the C#
|
|
|
|
|
What exactly is your problem? The whole concept or a particular bug?
As of how to accomplish that have you ever tried Google?
Failing that try .
|
|
|
|
|
Change the SelectionMode to one of the following:
SelectionMode.MultiExtended;<br />
SelectionMode.MultiSimple;
listBox1.SelectionMode = SelectionMode.MultiExtended;
listBox2.SelectionMode = SelectionMode.MultiExtended;
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Hi,
Does anyone know of a way to detect a text file's encoding (ANSI, UTF8, UTF7)?
So that I can read the text file in a StreamReader with the right Encoding enabled.
thanks
|
|
|
|
|
It should automagically do it for you, just use a constructor which doesn't accept an Encoding value.
As of how to accomplish that have you ever tried Google?
Failing that try .
|
|
|
|
|
Hi All!
I have 2 ListBoxes that i drag and drop with them from each other.
Now i need to chage them to Multi Select mode.
How can i do it, and what i need to add in the code for it?
|
|
|
|
|
Try using checkboxes in your listbox.
Mujtaba
|
|
|
|
|
hi,
im working in a trial version of vs2005
and if i am useing databases, link them with a datagrid using the wizard, it doesn't generate a delete statment, therefor i always get an error when i want to delete and update afterwords.
this is the error:
update requires a valid delete command when passed datarow collection with deleted rows
could this be because of the trial??
plllzzzzz help meeeee
|
|
|
|
|
faladrim wrote: could this be because of the trial??
No. It's more likely that you'll need to add a valid delete statement.
Also, a trial of Visual Studio? Do you mean the Visual Studio Express version? If so, that's not a trial.
|
|
|
|
|
can somebody help me?
how can i check a checkbox in a checkbox cell?
my currenty code is like that:
<br />
colValueCheckBox.TrueValue = "1";<br />
<br />
DataGridViewCheckBoxCell cellValue = colValueCheckBox.CellTemplate.Clone() as DataGridViewCheckBoxCell;<br />
<br />
cellValue.Value = "1";<br />
gridRow.Cells.Add(cellValue);<br />
grid.Rows.Add(gridRow);<br />
but it doesent check the box in that cell
(i need some code to check this box! - can be different to that)
THNX
|
|
|
|
|
I'm not too familiar with the DataGridView, but have you tried doing something like cellValue.Value = true; ?
|
|
|
|
|
ok thats what i already tried to check this box, too:
<br />
cellValue.Value = true;<br />
cellValue.Value = colValueCheckBox.TrueValue;<br />
i also tried cellValue.Value = true; without setting any TrueValue or FalseValue.
i also tried to test it with ThreeState = true; .
|
|
|
|
|
Ok, i found the answer, i added the checkboxcell to a invisible column, and i didn't think about that as i add the cell of a row.
|
|
|
|
|
Hi all
Im trying to load a dll programmed in C, but I'm not sure exactly how to go about it. I read the following article:
http://msdn.microsoft.com/msdnmag/issues/02/08/CQA/
My problem is that Im not quite sure how to handle the return types. In the header file I several type definitions. Below you see some of the type definitions and two of the methods availeble in the DLL.
<br />
<br />
#if defined (OMA_LIB_INTERNAL)<br />
# define OMA_DLLEXPORT DLLEXPORT<br />
<br />
#else<br />
# define OMA_DLLEXPORT DLLIMPORT<br />
#endif<br />
<br />
<br />
#define OmaC_Ov_Default_Report_Name ""<br />
#define OmaC_Ov_Global_Object_Path ""<br />
#define OmaC_Ov_Unspec_Str "unspecified"<br />
<br />
<br />
typedef struct OmaT_Ov_Writer OmaT_Ov_Writer;<br />
typedef struct OmaT_Ov_Reader OmaT_Ov_Reader;<br />
typedef struct OmaT_Ov_Vector OmaT_Ov_Vector;<br />
typedef struct OmaT_Ov_Reader_Iterator OmaT_Ov_Reader_Iterator;<br />
......<br />
<br />
<br />
<br />
<br />
OMA_DLLEXPORT OmaT_Ov_Reader *<br />
Oma_Ov_Reader_Open (const char *ov_file_name);<br />
<br />
OMA_DLLEXPORT OmaT_Ov_Vector *<br />
Oma_Ov_Reader_Vector_Get (OmaT_Ov_Reader *ov_reader_ptr,<br />
const char *report_name, const char *obj_path,<br />
const char *group_and_stat_name);<br />
......
My question is: How I use import this DLL?
At the moment I have an idea that it should be something like the following, but I have no clue how to define the structs which Im using and which gets returned. See below:
public class OMAInterface<br />
{ <br />
<br />
[StructLayout(LayoutKind.Sequential)]<br />
public struct OmaT_Ov_Vector<br />
{<br />
}<br />
<br />
[StructLayout(LayoutKind.Sequential)]<br />
public struct OmaT_Ov_Reader<br />
{<br />
}<br />
<br />
[DllImport("opoma_opt.dll")]<br />
public static extern OmaT_Ov_Reader* Oma_Ov_Reader_Open (const char *ov_file_name);<br />
{}<br />
<br />
[DllImport("opoma_opt.dll")]<br />
public static extern OmaT_Ov_Vector* Oma_Ov_Reader_Vector_Get (OmaT_Ov_Reader *ov_reader_ptr, const char *report_name, const char *obj_path, const char *group_and_stat_name);<br />
{}<br />
}
Any help is much appreciated
Christian
|
|
|
|
|
Hi,
I have a small problem. I want to create 2 properties to one of my classes. All I want is to make easier for the users of my class to get some data out of my class. I want when a user writes
Test[i] to get some data and when the user writes
Test[i][j] to get another type of response.
I need a little help with the second type of property:
public class Test
{
public object this[int index]
{
get
{
}
}
}
This one works. My question is how to write the second one?
Thanks in advance
Do your best to be the best
|
|
|
|
|
The second is a result of the first.
Test[i][j] can be broken down like this:
B someB = someA[i];
object result = someB[j];
or it can be written in a compressed form like this:
object result = someA[i][j];
The classes look like this:
public A
{
public B this[int index]
{
get
{
return stuff
}
}
}
public B
{
public object this[int index]
{
get
{
return stuff
}
}
}
Does this help?
|
|
|
|
|
Thanks a lot. It really works
Do your best to be the best
|
|
|
|
|
If the returning type from your indexer has indexer, it will work.
Otherwise i don't see a simpler way to implement this.
|
|
|
|
|
Why don't you add another indexer with 2 parameters.
|
|
|
|
|
What is the difference between the types "String" and "string"? Intellisenseless gives the same description.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
There's no difference, string is simply a C# alias for System.String
|
|
|
|