
BryanZM
Members-
Posts
23 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by BryanZM
-
Hello, First of all just let me say that Im relatively new to the drawing namespace. Here is what im trying to do: // Declare an array of rectangles... Rectangle[] rects = { new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0), new Rectangle(0,0,0,0) } ; bTimes = 5 ; for(int i = 0;i<bTimes;i++) { yway = 5 * i ; rects = new Rectangle(xway,yway,23,12) ; } g.DrawRectangles(pen,rects) ; When the loop completes there is only one rectangle, allthough im pretty sure the array is filled with rectangles and I think it should draw them.... Also how can I define a empty array of rectangles with just a specified size??? Any help would be greatly apprectiated!!! Thanks, Bryan
-
Nothing to do with asp.net This is about an embedded windows forms control in a web page can be htm,html,aspx,php anything that takes the object tag. My problem here is deployment of the dll into client web pages. It does not cache properly like the MSDN doc say it should. Thanks
-
HELP! I have posted in various other news groups and forums but to no avail. I need to know how to fix the problem with IE embedded windows form controls not caching on the client like they are supposed too. It should be ver y simple according to MSDN. I have to get this working or the whole project is out the window...
-
I found a way to fix my issue. Before i initially call the web service i will make a WebRequest to the site hosting the service. Setting the timeout property to 1 second. If the server doesnt respond within the one second it will throw an error. Then i will know the server is down.
-
What happens when the server hosting the service is down? How can i error check this occurance?
-
Your solution is great for web server controls, not for embedded dlls as in my case. Thanks for the response though.
-
I know I have seen the solutuon for this before. But here is the problem. I have an embedded usercontrol that seems to download to the browser everytime from the webserver. It does not seem to cache. Does anybody know how to make this work? any help is appreeaciated. thanks.
-
I have a embedded control in IE that uses some com interop dllls. On some computers when i open my web site the embedded control does not work. i have tracked this down to the interop dlls not getting downloaded into the downloaded assembly cache on those PC's. I have checked security and those PC's are wide open to my site. What may be the reason they are not getting downloaded with the rest of the assembly? Thanks and much appreciation for all help.
-
One more thing If anybody on this forum has any idea how to do what i want with DIME on win98, please let me know. Thanks Again, Bryan
-
The new DIME protocol is probably one of the coolest things that microsoft has ever developed, of course in collaboration with my personal friend IBM. There is one thing disturbing however and that is the fact that WSE will not install on windows 98 machines. I know, WIN98 is a thing of the past. Not at my company though! 95% of our computers use 98! Aside from my company having win98, which is besides the point. I thought that Web Services were supposed to be cross platform? Meaning any machine, including win98 could parse them. If anyone from the microsoft WSE team would like to put there 2 cents in on this issue i would like to hear what you have to say. Bascially what i need to do is read a DIME attachement on win98 with or without WSE installed! Thanks, Bryan
-
I have just got done writing this cool print utility for my custom documents. The only problem is that .net prints out to the printer directly one page a time, its actually very slow on some printers/computers (prints one page, pause 2 seconds). Because of this the printer thinks that each page is its own job!!! Try it out with a few pages and try hitting the "Cancel" button on the printer. Yes thats right! it wont cancel all the pages, only the page its on! I dont know why Microsoft would include printing classes in the framework and not include spooling classes???? What im wondering is if anybody has found a way to spool their print jobs or send all pages to the printer at the same time? any clues? All help would be appreciated!
-
New Dialog I just created a new diaog, because at this time i am forced to live with clients having 1.0 framework. I think that if the bugged fixed itself after you installed vs.net 2003, it was more of a problem with framework 1.0.
-
I have seen a lot about a bug in the print dialog in regards to trying to set the numbers of copies to print. Apparently this bug does exsist. Has anybody else confirmed this? Does anyone have a work around? I cant seem to print more than one copy of the print documents. Thanks, Bryan
-
I have a client that has a windows 98 PC. Where is the Downloaded Assembly Cache on win98? I have looked for a long time but to know avail... Can anyone help? The problem is i have a newer version of a DLL control thats not getting replaced automatically on one out of more than 100 pcs!!! Thanks for all help and guidance. Bryan
-
thanks, I will check tommorow if that will work!
-
This sounds easy enough but i cant seem to figure it out. I have a DataGrid with a Template Column that contains a CheckBox control, I need to add a "Class" attribute tag to each checkbox. How can i do this????
-
use filestream Use the filestream class, it makes it very easy to read in a file.
-
server.transfer using Server.tranfer(URL) will transfer the page to a different one without the client know the page is a different one.
-
just drop the component on your form and look at the code it generates behind, pretty easy from there.
-
Im a Developer for a Grocery Chain in CA. Mostly program in C#,ASP.NET,asp, vbscript,javascript,java,RPG.
-
If you want to show the content of a text file upon drag and drop this will do it: private void DragDrop(object sender, System.Windows.Forms.DragEventArgs e) { string[] s = (string[])e.Data.GetData(DataFormats.FileDrop,false); if(s.Length == 1) { System.IO.StreamReader sr = new System.IO.StreamReader(s[0]) ; string FileContents = "" ; FileContents = sr.ReadToEnd() ; sr.Close() ; textBox1.Text = FileContents ; } }
-
Just a tip, I was perusing through dotnetforums looking for a way to scroll to the bottom of a list view automatically. I found this code to subclass the listview control to scroll to bottom: ------------------------------------------------------------------------ public class ScrollerListView : ListView { // values obtained from winusr.h const int WM_SCROLL = 0x0115; const IntPtr SB_BOTTOM = (IntPtr) 7; public void AddItem( ListViewItem new_item ) { // add the item to the items collection Items.Add( new_item ); // have to Create a message Message msg = Message.Create( Handle, // the hwnd handle WM_VSCROLL, // uMsg SB_BOTTOM, // wParam IntPtr.Zero ); // null as not sent by scrollbar // call protected WndProc method WndProc( ref msg ); } } ------------------------------------------------------------------------- However i found a way that may be better without subclassing. The listview control has a way built in to scroll to bottom. Here is a sample: ------------------------------------------------------------------------- private FillListView(dt) { foreach(DataRow dr in dt) { //fill list view.... ............. ............ } int intCnt = 0 ; intCnt = listView1.Items.Count -1 ; // ensure that item count is greater than zero... if(intCnt > 0) { // Getting item count and using it with the EnsureVisible // method enures that the listview will always scroll to // bottom. listView1.Items[intCnt].EnsureVisible() ; } } ---------------------------------------------------------------------- I hope will help somebody out there. BryanZM
-
I would like to fire an event "After" my form is loaded. Not with the Load event. Is there an event out there that will allow for this? What can I do if there is not? What I am doing is loading a datatable asynchronously and showing a Progressbar at the same time. But if I put this code in the Load event of course it fires this "Before" the form is loaded. Any help is greatly appreciated. Thanks, Bryan