|
Hello,
I'm trying to add Winsock COM component control to my program (like here ),
but i can't find it any where.
It's supposed to be betwwen:
Microsoft Web Browser and Microsoft Works Imaging Server.
Maybe it is at diffrent place in VS 2008?
Someone known?
|
|
|
|
|
Do you have visual Basic 6 runtime installed on your machine?Mswinsck.ocx which is Windows Socket Control is not part of Windows by default.In C# you really needn't to use this component.You have system.net.sockets namespace instread.
Life is a stage and we are all actors!
modified on Wednesday, August 19, 2009 10:05 AM
|
|
|
|
|
Hello!
I am using windows application and I have a datagridview which is i am filling from some datatable and after every 15 second i am fetching data from sql database table and filiing datatable again and then binding that datatable with the same datagridview. for refreshing datagriedview in every 15 second i have used timer control now i want to check if datagridview column call "premium" is less than the value in the newly filled datatable then i want to change that column's cell value to blue b'coz current value is greater than the previous value.
can anyone give me the solution for this....plz send me sample code
thanx in advance
|
|
|
|
|
this is a sample for changing color of all cells in a row :
foreach(DataGridViewRow row in dataGridView.Rows)
{
foreach(DataGridViewCell cell in row.Cells)
{
cell.Style.BackColor = Color.Red;
}
}
|
|
|
|
|
thanx for ur help
but how can i chack if that cell value is less than datatable column value... ie
if((convert.todouble(gv.rows[0].cells["Premium"].value)<(dt.Rows[0]["premium"]))
.......because when i bind datagridview with datatable then both shows the same value so how can i check the condition and where should i do this..
plz give me some sample code...
thanx in advance........
|
|
|
|
|
What do you want to compare ?
If you bind datatable to datagridview, it is the same. What you see in datagridview is the same with what you have in datatable.
Values in datagridview change automatically if you change something in datatable.
|
|
|
|
|
hii,
i want to compare the previous datagridview cell value with the current datatable value if previous datagridvalue is less than datatable current value then change the color of that cell value or only cell.
i.e.
if previous datagridview value is 5 and current datatable value is 10 then
change the color
|
|
|
|
|
yes, then save the new values in a new datatable. don't overwrite the datatable in datagridview. then compare both datatable.
|
|
|
|
|
OK This is one you either know what it is or you dont. Im drawing some text to a c# listview. When the mouse first moves over the listview the text flickers. Actually if you hold the mouse it looks like the text is actually being drawn over with the background. This isnt the case there is no way through the drawing code that draws the background without the text and like I said this only occurs the first time you mouse over a new item added to the list. Any mouse moves over a specific item after the first draw fine.
I know for a fact its not wm_erasebackground ( trapped that ) nothing.
Its not a double buffering issue either like I said subsequent mouse moves are fine.
Refreshing and invalidating in strategic places have no effect.
Im currently out of suspects so looking for some new suspects to test out.
|
|
|
|
|
|
Thanks and nice try but you've misunderstood the problem. Inserting items and the drawing in general are fine until you move the mouse over an item for the first time. As I said originally its not a double buffer or wm_erasebackground problem which are the normal culprits if it was either of those the problem would be continuous.
Neither is it a MouseEnter or MouseHover problem as I've trapped these and still no joy.
Basically the first time the mouse goes over a listview item the item text is removed and it takes my code a moment to redraw the image, which is why it flickers.
|
|
|
|
|
What version are you codding your app?
Does that happen to other version if you change?
Are you using custom cursors? Some cursors image doesn't have alpha-transparent image
And i do not know if this is relevalent, but try:
http://extjs.com/forum/showthread.php?t=44953[^]
Edit: I often use ListView, but i have never seen this effect. I am coding in .NET Framework 3.5 SP1.
modified on Wednesday, August 19, 2009 1:39 PM
|
|
|
|
|
Saksida Bojan wrote: What version are you codding your app?
Not sure exactly when installed on a clean machine it requires 2.5 to run but I'm not exactly a dedicated follower of fashion these days.
Saksida Bojan wrote: Are you using custom cursors? Some cursors image doesn't have alpha-transparent image
No custom cursors at all.
Saksida Bojan wrote: Edit: I often use ListView, but i have never seen this effect. I am coding in .NET Framework 3.5 SP1.
Not really seen it myself before. I've been trying to make it worse by excessive calls to make it draw but it doesnt have any effect, no flickers nothing. Then I move the mouse over an item and instant flicker. It's definetly the mouse move causing it and I was wondering if it was because the mouse moves where swamping the message queue but again if it was doing that the flicker wouldnt clear up because once an individual listitem has flickered you can wave the mouse over it as much as you want and it wont flicker at all.
|
|
|
|
|
Look what just found
http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.drawitem.aspx[^]
"Because of a bug in the underlying Win32 control, the DrawItem event occurs without accompanying DrawSubItem events once per row in the details view when the mouse pointer moves over the row, causing anything painted in a DrawSubItem event handler to be painted over by a custom background drawn in a DrawItem event handler. See the example in the OwnerDraw reference topic for a workaround that invalidates each row when the extra event occurs. An alternative workaround is to put all your custom drawing code in a DrawSubItem event handler and paint the background for the entire item (including subitems) only when the DrawListViewSubItemEventArgs..::.ColumnIndex value is 0. "
|
|
|
|
|
Nice find. Probably i didn't notice is either i use win 7 and i don't use SubItems
|
|
|
|
|
Dear Sir
i m entering number like 1420 it will be print one thousand four hundred twenty only in data list ,we want to show a cheque in data list.
so plz help me anyone as soon.
thanks
vivek sachan
|
|
|
|
|
|
I've seen cheques in the UK filled out like £1420(figures) and "One Four Two Zero Pounds"(Written), perhaps this is valid for the cheques you are producing. This is a much easier task than trying to write the text out long-hand.
|
|
|
|
|
Hi
I had BHO developed in vs2005. I work on IE6.
I do all the things when the progresschange event fires...
http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx[^]
The main thing is
when I open 3 instances of IE,
consider
in first instance, http://www.google.co.in/[^] is opened,
in second instance, http://www.msn.com/[^] is opened,
in third instance, http://in.yahoo.com/?p=us[^] is opened.
when these are opened the ProgressChangeEvent is fired,
but when return back to the window of 2nd instance (i.e.,http://www.msn.com/[^]) and refresh it, no progresschangeevent is fired.
which event can be fired when changing the focus from one window to other,
"WindowStateChanged" event should be fired, but when I open solution explorer of my project, this event is not visible in intellisense. Why WindowStateChanged event is not obtained in my Project solution.
And, using the BHO can't we get the handle of previously opened instance(which is currently active, like 2nd instance after openeing three instances of IE.)
|
|
|
|
|
You would better ask into COM forum.
Life is a stage and we are all actors!
|
|
|
|
|
hi guys,
i was ordered to extend a application to deal with 2 cultures instead of just one.
so i created a project holding my ressources -- namely
"info.resx" //default ressource containing the german translation as well for now
"info.de-DE.resx" and
"info.de-AT.resx"
I set the ui-culture within my application and get the strings I need translated like this:
ASRessource.Info.Titel
and in DEBUG mode it would load the correct translation belonging to that string automatically! sweet.....
but then I rebuild my setup-project to deploy the application.. and after deploying it appears that for some reasons the application doesnt load the correct ressource file.
Means if I select "AT" it will still load the "DE"-content.
I dont know what I am doing wrong and I actually dont understand why it would work during debugging and not when you roll out the application=??!?
If please somebody point me in the right direction.
thank you very much
best regards
pirate
|
|
|
|
|
Is it any good? It looks good, but looks can be deceiving.
What are the pros and cons?
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
Hi Jörgen,
in my opinion telerik controls are great. it takes a learning curve to get into some of these controls though, especially if you wanna do something non standard(in telerik eye's)
but beside that you get great looking set of controls that will make your software look great.
i dont want to give you the impression that I am overly enthusiastic about telerik controls. i am certainly not. I had some hard times as well when something didnt work as I wanted or had to redo something bec. the (fairly new)control wasnt behaving as expected
but the support of telerik is doing a great job, which means even if that functionality you want to achive is not provided by the control itself, they will usually supply you with an acceptable workaround.
and the moral of all this -- or at the end of the day, I really like these controls. I even try and make everybody who is asking to buy these controls
hope it helps
cheers
pirate
|
|
|
|
|
Thanks for your input!
A question on speed: are the telerik controls responsive, or are they sluggish? I need my software to run well on moderate hardware (which is why I've ditched WPF)
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
Hi Jörgen,
well i reckon you must test this on the machine you wanna use anyway. (why not download the current version and test it??!?)
I saw a few discussion about the performance of the controls on the telerik-forums but I am not sure wether they were about the asp.net controls or windows-controls. (best is you have a look yourself)
but i personally dont think there is too much overhead
best regards
pirate
|
|
|
|