|
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
|
|
|
|
|
Piratenwichtl2000 wrote: why not download the current version and test it??!?
I don't have any moderate hardware available right now. I suppose I would give it a go in a throttled virtual machine.
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
I would also recomend you to download the controls from here http://www.telerik.com/account/free-trials.aspx[^]
The product includes a complex sample - so without writing your own code you can easily test the performance.
From my point of view (I did quite a lot projects with those controls) the controls are pretty fast also on "not state of the art hardware".
Another thing I would say about it -- if you need functionallity XXX in your application it has to be coded somehow.
If you use a framework (where the programmers are focused on building the things) you will normally get good code.
If you build it yourself - you can be more specific - but this means a lot of work (time, money). And (especially if you need more complex things) it is not sure if you can also do the optimization as good as those people who are focusing on just these things.
The only danger (with every control suit) is that you use all off the "new shiny animated colorfull..." features - and provide much more than neede - for the prize of lower performance
Concluion: from my experience the telerik winform controls are pretty fast - if you do not use the to add "extra cool unneede stuff"
|
|
|
|
|
We are about to start using Reporting Services which will be accessed from a C# ASP.net application.
Many reports will have a different where clause for the same report depending upon who the user is and the circumstances. Therefore, I need to be able to send the report a WHERE clause ideally as a string. I can't use hard defined parameters because they will be on different fields depending on how I want to call the report. Can anyone tell me how this is done?
|
|
|
|
|
You'd get more responses from the database-forum. I haven't used the Reporting Services yet, but I guess that they can use a function or sproc as a datasource. I usually use a construction that's comparable to this;
DECLARE @TEST AS TABLE
(FieldOne VARCHAR(10))
INSERT INTO @TEST VALUES('Hello')
INSERT INTO @TEST VALUES('World')
DECLARE @ArgumentForFieldOne AS VARCHAR(10)
SET @ArgumentForFieldOne = 'He%'
SELECT *
FROM @TEST
WHERE (
(@ArgumentForFieldOne IS NOT NULL AND FieldOne LIKE(@ArgumentForFieldOne))
OR (@ArgumentForFieldOne IS NULL)
)
You'd set @ArgumentForFieldOne to NULL if you don't want to search that particular field. This has the disadvantage that you can't pass NULL as a parameter to search for though. You can bypass this problem by introducing a separate bit that indicates whether you want to filter the field or not;
DECLARE @TEST AS TABLE
(FieldOne VARCHAR(10))
INSERT INTO @TEST VALUES('Hello')
INSERT INTO @TEST VALUES('World')
DECLARE @DoFilterFieldOne AS BIT
SET @DoFilterFieldOne = 1
DECLARE @ArgumentForFieldOne AS VARCHAR(10)
SET @ArgumentForFieldOne = 'He%'
SELECT *
FROM @TEST
WHERE (
(@DoFilterFieldOne = 1 AND FieldOne LIKE(@ArgumentForFieldOne))
OR (@DoFilterFieldOne = 0)
)
You can wrap these constructions in a table-valued function, but a sproc where you pass @DoFilterFieldOne and @ArgumentForFieldOne is also an option.
SQL lingua venusta
|
|
|
|
|
Hey buddies this is my first time working on the Socket Class(Because I wanted to do a project on VOIP)...... and I got a sample code from MSDN which shows how to use the Socket Class ........ I wanted to connect to another PC in a network(only 2 computers which is Peer to Peer i.e there is no Server) ....... but there is one Problem so far Here is the code ......
using System;
using System.Text;
using System.IO;
using System.Net;
using System.Net.Sockets;
namespace Sample
{
public class GetSocket
{
private static Socket ConnectSocket(string server, int port)
{
Socket s = null;
IPHostEntry hostEntry = null;
hostEntry = Dns.GetHostEntry(server);
foreach (IPAddress address in hostEntry.AddressList)
{
IPEndPoint ipe = new IPEndPoint(address, port);
Socket tempSocket =
new Socket(ipe.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
tempSocket.Connect(ipe);
The problem is @ the above last line in z CODE BLOCK i.e<br />
(<code> tempSocket.Connect(ipe);
<br />
A socket operation was attempted to an unreachable network 213.55.66.247:80<br />
<br />
So how could I solve this problem.Help me<br />
</code><br />
<br />
the remaining code is as follows next to the above line<br />
<br />
<pre>if (tempSocket.Connected)
{
s = tempSocket;
break;
}
else
{
continue;
}
}
return s;
}
private static string SocketSendReceive(string server, int port)
{
string request = "GET / HTTP/1.1\r\nHost: " + server +
"\r\nConnection: Close\r\n\r\n";
Byte[] bytesSent = Encoding.ASCII.GetBytes(request);
Byte[] bytesReceived = new Byte[256];
Socket s = ConnectSocket(server, port);
if (s == null)
return ("Connection failed");
s.Send(bytesSent, bytesSent.Length, 0);
int bytes = 0;
string page = "Default HTML page on " + server + ":\r\n";
do
{
bytes = s.Receive(bytesReceived, bytesReceived.Length, 0);
page = page + Encoding.ASCII.GetString(bytesReceived, 0, bytes);
}
while (bytes > 0);
return page;
}
public static void Main(string[] args)
{
string host;
int port = 80;
if (args.Length == 0)
host = Dns.GetHostName();
else
host = args[0];
string result = SocketSendReceive(host, port);
Console.WriteLine(result);
Console.Read();
}
}
}
</pre><br />
<br />
Thank you
|
|
|
|
|
Have you tried to ping 213.55.66.247 ?
Do you know if port 80 is opened ?
|
|
|
|
|
Ya I tried to ping 213.55.66.247 and I got a reply...... but what it helps??
stancrm wrote: Do you know if port 80 is opened ?
What do you mean by port 80 is opened ...... I didnt understand it ... or how do i know if it is opened or not ...
Thank you for the responce
|
|
|
|
|
|
Is that good(works well than Socket class) to use WebRequest class for peer to peer network.
Thank you budy
|
|
|
|
|
I don't know, what do you want to do with it. If you just want to download some HTML site, use HttpWebRequest. If you want to send/receive binary, then use TcpClient or Socket.
|
|
|
|
|
I just wanted it to send and recive data in a peer to peer network(only 2 computers)
How abt now. did u get me?
|
|
|
|
|