IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.63 MB
Powered by
Channel Info
Network: freenodeChannel: #csharp |
Search in www.irclog.org
Log from #csharp at freenode 2006-05-20
[16:28]<gjrjdnk>+anyone ever come across the problem to add a statusbar to a listview (as easy as possible and without interop) and can tell me how to proceed? found a few examples on codeproject, but way to complex with unneeded features.
[16:29]<azyfm>+GoRoDeK: Use a Panel
[16:29]<azyfm>+put the listview and status bar in the panel and dock as appropriate
[16:29]<iprrpnw0>-hi i want to transmit the content of a htmlselect to another page - i did that.. in the new page i can read request["Select4"].tostring(). but this is the selcted value. i want to have access to all the elements in the list. how to do this>? what to write in the [' ']?
[16:32]<gjrjdnk>+Arild, you mean i put the progress bars over the listview control and only watch over the size of the progress bars regarding to the underlying "listviewsubitems" ?
[16:33]<azyfm>+oh, you want one for each item in the list?
[16:34]<gjrjdnk>+exactly, for each listitem there should be a progressbar, showing the current progress of a taken action.
[16:34]<azyfm>+that should be fun to do
[16:35]<gjrjdnk>+:) i will try the way you told and will take a look, wether there are performance problems or not
[16:36]<azyfm>+uhm, what I said isn't really relevant
[16:37]<azyfm>+Have you considered just drawing it yourself in the ListView.DrawSubItem event?
[16:37]<azyfm>+A progress bar is just a dynamically sized rectangle, after all - not very hard to draw
[16:37]<azyfm>+@ GoRoDeK
[16:41]<gjrjdnk>+this seems to be another easy option, to just extend the current listview and overrite the protected onpaint method, but this goes hand in hand with a lose of the usual look and feel.
[16:42]<azyfm>+you don't have to override OnPaint
[16:42]<gjrjdnk>+not?
[16:42]<dyguw>-When printing, can I specify what DPI I want to use?
[16:42]<azyfm>+just OnDrawSubItem
[16:42]<gjrjdnk>+is it new in .net 2.0 ?
[16:42]<azyfm>+make sure to call base.OnDrawSubitem
[16:42]<azyfm>+yes
[16:43]<gjrjdnk>+i missed this on 1.1. thanks for the tipps :)
[16:43]<azyfm>+for your progress bar subitem, just use an empty string
[16:43]<azyfm>+so base.OnDrawSubItem will handle the rest of the subitems properly, while you do your painting in the subitem that needs the progress bar
[16:44]<gjrjdnk>+sounds good to me
[16:45]<azyfm>+ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/T_System_Windows_Forms_DrawListViewSubItemEventArgs.htm
[16:45]<azyfm>+has an example ^
[16:46]<zndy_wjfnz>+How can you see if a formvariable is not empty? Whatever I try, VS always gives me warnings...
[17:12]<dyguw>-Is it possible to get screen DPI somehow?
[17:36]<dyguw>-Drawing fonts with a Graphics object sucks, they don't give a shit about PageUnit.
[18:02]<fyfuym-syfggag>-guys
[18:02]<fyfuym-syfggag>-whats the best dvd to avi ripper?
[18:16]<-- dvxn|syzzzyus xzs>http://www.bagdadsoftware.de")
[18:21]<ruyaxnac>-hi, is there an asp.net channel here?
[18:23]<ruyaxnac>-?
[18:24]<lcs>-Liquid-Silence: mencoder
[18:26]<fyfuym-syfggag>-guicheck depends what you want to ask
[18:26]<fyfuym-syfggag>-I can try help you with asp.net
[18:27]<ruyaxnac>-welp, i have 0 experience with asp.net (but i do know html design, css and php)
[18:27]<ruyaxnac>-trying to work out the vs 2005 asp.net designer
[18:28]<ruyaxnac>-like doing a page with textarea and submit button that when clicked openes a new page with what was written in the previous one
[18:29]<fyfuym-syfggag>-ok so what is the question?
[18:29]<ruyaxnac>-how do i do that simple thingy for example
[18:30]<ruyaxnac>-like when clicking on a button, it will go to a new page with post of the prev text, and show it
[18:32]<wyfaj>-guicheck: create a new page, stuff a textbox / button control on it, double click the button (which should create an eventhandler and take you to its definition in code), and write "this.TextBox1.Text = "Foobar"".. then press f5 to test it
[18:33]<ruyaxnac>-it just blanks
[18:34]<wyfaj>-ah, it.
[18:35]<wyfaj>-yeah, many people have been talking about "it" on irc before
[18:35]<wyfaj>-supposedly "it"'s a showstopper in many cases
[18:35]<ruyaxnac>-the page, i write something, click on button, and it resets to when i load it with nothing changed
[18:36]<wyfaj>-everything i said before has to be done in the designer.
[18:36]<wyfaj>-only after you pressed f5 you should see a browser.
[18:37]<ruyaxnac>-i'm not that dumb...
[18:37]<ruyaxnac>-anyhow, i did all you said, and that was the result, in the web browser
[18:37]<wyfaj>-i dont believe you. paste the code?
[18:39]<ruyaxnac>-http://www.nomorepasting.com/paste.php?pasteID=62607
[18:39]<wyfaj>-um
[18:40]<wyfaj>-did you manually write code or something?
[18:40]<ruyaxnac>-could be
[18:41]<wyfaj>-so you did about 0% of what I said, heh
[18:42]<ruyaxnac>-welp, i'll try laters, thanks anyhow
[18:47]<sjgvnc>-have any of you guys used DLinq with NUnit or any other unit tester and figured out a way to get them to work? :P
[18:51]<gyrjfrs2jf2jf>+Hello
[18:51]<gyrjfrs2jf2jf>+Can someone help me with .NET remoting and a TCP client please ?
[18:51]<gyrjfrs2jf2jf>+I don't know how to specify the IP where the client must connect
[18:53]<scyl>-nicolasbolbol: you mean TCPClient?
[18:54]<gyrjfrs2jf2jf>+yes
[18:55]<gyrjfrs2jf2jf>+the client works on my local machine
[18:55]<gyrjfrs2jf2jf>+but when I send this software to somebody else and try to connect to my server
[18:55]<scyl>-nicolasbolbol: TcpClient myClient = new TcpClient("www.nowhere.com", 8080)
[18:56]<gyrjfrs2jf2jf>+I use .NET 2
[18:56]<gyrjfrs2jf2jf>+In f act I want to specify the URL of the server in my .NET REMOTING client
[18:57]<gyrjfrs2jf2jf>+ IDictionary props = new Hashtable();
[18:57]<gyrjfrs2jf2jf>+ props["port"] = 8824;
[18:57]<gyrjfrs2jf2jf>+ TcpChannel chan = new TcpChannel(props, null, provider);
[18:57]<gyrjfrs2jf2jf>+Currently I do that
[18:57]<gyrjfrs2jf2jf>+But how to specify the adress of the server in the props dictionnary ?
[19:00]<gyrjfrs2jf2jf>+skip> ?
[19:01]<scyl>-nicolasbolbol: I don't use tcpchannel, so no clue
[19:01]<gyrjfrs2jf2jf>+ok :(
[19:02]<scyl>-nicolasbolbol: I dont see TcpChannel being used for connecting, just for listening
[19:03]<gyrjfrs2jf2jf>+I use a TcpClient in my .NET REMOTING to connect on my .NET REMOTING server
[19:11]<gyrjfrs2jf2jf>+goodbye
[19:11]<gjrjdnk>+cu
[19:12]<nln>+Is there any way to set the DocumenText property of a webBrowser without setting off the DocumentCompleted event?
[19:14]<nln>+Or, in general, to SPECIFICALLY tell C# NOT to set off an event at a certain point without substracting the event delegate?
[19:15]<txnjzd_>-set a flag and check for it?
[19:16]<nln>+Here's my problem, I have a WebBrowser object, and I listen for DocumentCompleted events, because I need to work with the document, change it, then put it back into the WebBrowser. Problem is, that sets off the DocumentCompleted event again, which changes the document again, completes it again and so on...
[19:16]<nln>+Yeah that's what I thought, but with events being threads of their own it's proving to be somehow difficult
[19:18]<nln>+In short (and simple), imagine doing this: http://pastebin.com/728328
[19:18]<nln>+Now, I would have IMAGINED that C# would actually WAIT after wbBrowserMain.DocumentText = wbBrowserMain.DocumentText;
[19:19]<nln>+But instead it doesn't and moves right on to the next line, thus when the document is done loading it triggers the event again and so on
[19:43]<fyfuym-syfggag>-is there a way to add a display and value memeber to a combobox without having to do databinding?
[19:47]<fyfuym-syfggag>-wilco you here bro?
[19:54]<fyfuym-syfggag>-oi damieng wake up dude
[20:10]<ggmzr>+I almost fell asleep watching davinci code.
[20:11]<sxrfuyfn>+:P
[20:11]<ggmzr>+luckly I had my popcorn to keep me company







