|
thank you
u just made my day
|
|
|
|
|
Hi,
I have an urgent issue with an activeX control I have written in .NET 1.1 based on the listview. When I run the control on .NET 2.0 there is very bad flickering whereas on .NET 1.1 there isn't any. I am updating the listview asynchronously using BeginUpdate/EndUpdate along with a separate class that gets the data in a separate thread. The listview is then updated using the BeginInvoke approach.
I have dissassembled the .NET 2.0 listview and found that for some reason on every item add it executes a control.invalidate() hence forcing a repaint. Therefore, this leads me to believe that there is no way to avoid the flickering.
Does anyone have any information on this as I am surprised that the listview could be released with this problem?Anyway, this also leads me to believe that to resolve my problem is to force the application to use .NET 1.1. However, my control is hosted as an activeX object in IE. Therefore, I cannot just use the IExpore.Exe.config file to force IE to use of .NET 1.1 framework for obvious reasons. Therefore, my second question is.
Is it possible to configure an assembly to use a specific .NET framework version?My third question is.
If I am constrained with using an executable (having my own app domain) so that I can use my own config file to force the .NET framework version. Is it possible to host my activeX.exe in IE withing the <object> tags as I am now with my activeX control?I hope you understand my post and hope someone out there can help.
Many thanks in advance
|
|
|
|
|
I have the similar issue, if had get solution plz post here,
I have developed a web application using DevExpress componet. Most of the controls used in the application are DevExpress Component.
I use ActiveX object (which also use DevExpress Component to develop it) onside splitter pan.
My Problem is when I click any component(image,button, dataGrid Row) to do something/to fire respective event and mouse over on splitter bar then the activeX object kept inside splitter pan is flicker horribly and the flickering stops when mouse out from the component.
But when the splitter pan is collapsed and the activeX object is hidden then every click action on the page works fine.
What is the problem???
Thanks
Sharad Subedi
|
|
|
|
|
I'm trying to limit my app to a single running instance. The article I'm using to do it only works on win2k or higher, but not NT4. Is there a way to create a global mutex in NT4 to do this, or will I need to find an alternate implementation?
http://www.codeproject.com/csharp/singleinstance.asp?df=100&forumid=16026&exp=0&select=994563#__comments[^]
-- modified at 9:39 Friday 23rd March, 2007
Just did a bit of testing and it turned out I got the wrong understanding from the comment. The "global\" was only for aesthetic reasons and not needed to make the mutex visible system wide.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
I am developing a small time point of sale for a supermarket,but have no background with the different peripherals,like the bar code scanner and the receipt printers.
After creating the forms for submission and retrieval of data,calculate discounts and stuff.
How do i go about to work with the bar code scanner and reader and the receipt printers.
I need someone to point me in the right direcion.may be some links to read.
Cheers
Gibson
|
|
|
|
|
You should probably get your hands on the hardware and go from there. At my company all the barcode readers just work like keyboards (they type everything they scan, so the TextBox that has to contain the value has to be active, or something similar), and our labelwriters work with Crystal Reports, that generates barcodes.
goodluck
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Thanks for ur quick responce joon,
Butta please help me throw more light on what u r saying,how do i implement What you just said above into my application.
cheers
Gibson
|
|
|
|
|
Barcode scanners:
- not difficult at all, just think of it as a keyboard that types the values you scan really quickly (instantly). Most of them work this way. The only thing you need to do is
1. buy one
2. make your application so that the values are entered into the correct input fields
Label writers:
- usually work just like printers, just with a lot more options. To know everything I'd suggest
1. buying one
2. read up on crystal reports, or other reporting methods (crystal reports ships free with Visual Studio)
3. read some articles from CP: Barcode .NET Control[^]
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
For the barcode scanners part: you don't need to buy one.
Most barcode scanner really behave as a keyboard. In fact you plug it into a PS2 port with the keyboard. I used Intermec [^]scanners, they are very reliable. All you need to know the type
of the barcode that will be in use (mostly it is EAN-13).
As for the receipt printers[^]: they behave like normal printers with smaller paper size.
|
|
|
|
|
Ok sorry I hammered on "buying" things, my point was just that you'll find out quickly when you buy one. If you have to pay for it yourself, of course you don't have to. You can make your application 100%, and it will only come down to testing and debugging the application and UI.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
Of course ideally you'll have the equipment that you're developing against
|
|
|
|
|
hi there,
I've got a regular expression which should match an url:
(http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?)
this is fine. but now I want to make sure, that the url is not enclosed by ". that means, this http://bla.com should match, some text http://bla.com more text should match as well but this "http://bla.com" shouldn't. i've tried this, which doesn't work:
[^"](http\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(/\S*)?)[^"]
can anyone help? thanks in advance!
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
([^\x22]http\:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
thanks, this is it. well almost. the problem is, if I have a string which contains only an url, that is http://bla.com or a string which looks like peter, look here:http://bla.com! have you seen? they both don't work. in the first case, no match is returned, in the second one, :http://bla.com! is returned instead of http://bla.com .
If I start the regex with ([^\x22]?http\://... then again it will match the " as well. I'm getting grey hair on that one and would greatly appreciate further assistance.
/matthias
I love deadlines. I like the whooshing sound they make as they fly by. [Douglas Adams]
|
|
|
|
|
hey, I've tried to use some regular expressions as well today and had a real hard time finding out the correct expression.
Do you have a good link or something that explains this? MSDN really s*cks on this.
thanks
V.
I found a living worth working for, but haven't found work worth living for.
|
|
|
|
|
V. wrote: MSDN really s*cks on this
I agree. But, unfortunately, at the moment, MSDN is my only reference on regular expressions.
Ask here at CP, I think there are a lot of people far more experts than me about regular expressions.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
how can i get the number of items in the list box
|
|
|
|
|
Try this property:
int numItems = listbox.Items.Count;
|
|
|
|
|
thanks ..
and there is this property listBox.items.CopyTo i did not know how it works.!!
it should copy all items to array but how??? please try it.
thanks allot
|
|
|
|
|
this works:
object[] objarr = new object[listBox1.Items.Count];
listBox1.Items.CopyTo(objarr,0);
You could use Array.ConvertAll to change the type from object to string or whatever you like.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
thanks allot it works..
oh... to convert to string
string[] objarr = new string[listBox1.Items.Count];
listBox1.Items.CopyTo(objarr,0);
thanks
|
|
|
|
|
I have a collection (ArrayList) of a type we'll call BoolPair . It is generated dynamically. BoolPair simply has two bools - bool1 and bool2. I'd like to display it in a DataGrid:
* with a header
* as three columns - the row number, and two strings that describe the values of bool1 and bool2.
* occupying the entire width of the datagrid
I have no problems exposing the bools as properties. Rama Krishna suggested I create properties and simply set the DataGrid's DataSource property to my ArrayList, but it has the following caveats:
1. I'm not able to format the header, i.e., choose the text to be displayed in the header
2. I don't get a row number (this is easy to fix, though)
3. The columns have the default width. I want them to occupy the entire width of the datagrid.
I *have* to use .NET 1.1. Thanks in advance.
-- modified at 8:48 Friday 23rd March, 2007
Cheers,
Vikram.
The cold will freeze our stares
We won't care...
|
|
|
|
|
You can change this either by turning off autogeneratecolumns for your datagrid, and adding the columns in the IDE via the properties window of the datagrid.
Another option is doing it by code. Datagrid and its columns have properties you can change at runtime. They might need a refresh, I'm not sure.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
joon vh. wrote: autogeneratecolumns
I should have mentioned I'm using Windows Forms.
joon vh. wrote: Datagrid and its columns have properties you can change at runtime.
I'm sorry if my questions sounds very basic, but can you give me an example?
Cheers,
Vikram.
The cold will freeze our stares
We won't care...
|
|
|
|
|
dataGridView1.AutoGenerateColumns = false; --> this prevents the columns to be made when you set a datasource and bind it. You have to define the columns yourself now, and the easiest way is doing it in Visual Studio.
dataGridView1.Columns["myCol"].Width = 100;
things like that
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|