374 Posted Topics
Re: I suggest using 1 form and using a tabcontrol. but hide its tabs. I just posted the same thing on that codeproject article. Because its way overkill the way they have done it. here is an example of hiding them tabs at runtime, but not and design time. [CODE] using … | |
Re: Microsoft's word just uses ZIP. Its an XML plain text format that they then zip and save with a .doc extention. Then when the load it in it unzips it in memory and parses the xml. same with open office i do believe. | |
I am working on an application that is all about its interface. I want a very remote control accessible media browsing application. The Browsing is done. but playing video keeps getting complicated. using DirectX is no problem, using the managed direct X video object works. But looks bad, doesn't preserve … | |
I have a ps3 and I have been using it to stream my huge media collection to my TV. my ps3 failed, I keep reflowing it but it keeps overheating but that's not what this is about. I have all my media set up the way I like it on … | |
Re: It also supports Ctrl+A to select all. It also by default supports the shell menu with Select all, copy, cut, and if applicable, paste as well. | |
Re: You could always just binary serialize the object, write it to the stream, then deserialize the object from a buffer. Or even xml serialize the object to a string, then send the string as an array of bytes, and deserialize the string from the buffer back into the original object. … | |
Re: farooqaaa, That is a great code snippet you posted for the OP. But I do have one thing to suggest. I would use the Timer tick event to change the state of the variable. Not the paint event, as many thing can cause the paint event to be fired. if … | |
I am working on a picturebox that adds a in-depth cropping feature, I am a centered junkie, that is to say I don't find left justified images aesthetically pleasing. I just have to have everything centered. Add to this that the zoom mode of the picture box ensures that the … | |
Re: Be sure to add an automatic database backup feature! And if it were mine i would grab one of those open source PDF libraries and add an "Export to PDF" feature so it will be simple for her to share her recipes with friends and family! Of course you could … | |
Re: There is a C# OS system. Its called cosmos, google it. It is coded in C#. but it actually turns it into a native executable that is bootable. its in the infant stage of development. but it does work. and you can download it for free. just to test it … | |
Re: I have never heard the term "Push Tech" but To my knowledge most chat applications go through the server for everything. But there is a possible peer to peer relationship that can be established. Normally. The client messengers contact the server. the server has a thread pool of sockets blocking … | |
Re: I miss the little pencil icon that made it very obvious that you had posted in a thread. | |
Not like I don't have 100 unfinished projects already. But I recently come across a mario paint composer by unfungames.com. I remember playing mario paint back on the Snes. So I gave it a whirl. Turns out they wrote it in macromedia director. and it sucks. It does what its … | |
Re: I Dig the new appearance. But there used to be a tiny pencil icon that made it quite obvious that you had posted in a thread before. I relied on that icon for years. Not that its gone. I'm frustrated. Other than that. Its a welcome change. | |
Re: that's the alt text for the image. If the image failed to load that text would be there instead. Its your browser that's showing that pop up. not the site. But I agree it is annoying. | |
Re: I've gotten my fair share of "looking forward to getting to know you better" PMs that flat pad post button is a nice touch. If only there was a "im not writing your software for you man!" auto respond button. | |
Re: requimrar, Its impressive that you put that much work into a cosmos build. Its important to remember with cosmos that its C# when you write it. But its NOT c# when you compile it. It has its own compiler that uses C# syntax and creates an unmanaged 16bit executable. So … | |
Re: There is no way to just send a sms message. You need a gateway. Some providers like at&t provide a email gateway for free use ##########@txt.att.net (i think this is right) but it only works for at&t phones. In order to send a sms you must be part of the … | |
Re: I had the privileged of seeing it in IMAX 3D. It was quite amazing. Now I own it in bluray :) | |
Re: You are creating another instance of the main form , you must pass the instance of the main form to the 2nd forms constructor to make the reference work EX [CODE] MainForm : Form { ... public ListView mylistview { get{return listview1;} set{listview1 = value;} } void openform2(object sender, eventhandler … | |
Re: You'll need to throw a contol, like a panel, in the area you want the arrow to be drawn in. Then hook up its paint event. Then use the event's painteventargs object to access the panel's graphics object. and use the graphic's objects drawline method to draw from point to … | |
Re: Ok, first off. Welcome to daniweb. Don't make it a habit to come post ambiguous questions without even pretending you know what you are dong. Please read this before posting on daniweb. [URL="http://www.daniweb.com/forums/announcement61-2.html"]http://www.daniweb.com/forums/announcement61-2.html[/URL] With that said. this is so simple I just did it for you. Here is a snippet … | |
Re: first off, if you have visualstudio 2008 installed then you have .net framework 3.5 installed. They come together in the installer. you can't have one without the other. and assuming you mean a StatusStrip control. You just set its BackgroundImage property to your image. you can't set a text property … | |
Re: Try reading through your code and being absolutely sure that you always "close" the port in every situation before you attempt to "open" the port. you will get that exception sometimes if you attempt to open an already open port. otherwise its hard to say without seeing some code. | |
Re: you need to override the WndProc method of your form, and be sure to register your hotkey using that form's handle. then you check for the hotkey id in the wndproc and call any method you want to there. | |
Re: Its a good IDE. but its not the only free alternative to Visual Studio for .net projects. besides the obvious Visual C#.net free from Microsoft there is also SharpDevelop. [URL="http://www.icsharpcode.net/OpenSource/SD/"]http://www.icsharpcode.net/OpenSource/SD/[/URL] I don't use it primarily as my preference is Visual studio. But its amazing and also open source. Not knocking … | |
Re: Process.start() will run an application. But if you pass to it a document. like a .jpg it will open in whatever its default application is. for example passing "http://www.dianiweb.com" would open your default web browser and navigate it to daniweb. if you want to control the application that opens said … | |
Re: C# is a class based language, EVERYTHING is in a class. So the ideology here is correct. but you are forgetting that the name "form1" is a reference variable of type "System.Windows.Forms.Form" you can't use a variable if you don't have a reference to it. So what you need to … | |
Re: That depends on where you are trying to send it, and how much of it will be sent. if the data is not that large you could easily find a server somewhere and write a asp page that will take some data and send it in an email, then the … | |
Re: [URL="http://www.moddb.com/engines/irrlicht-engine/downloads/irrklang"]http://www.moddb.com/engines/irrlicht-engine/downloads/irrklang[/URL] Download this free player engine for .net Its not big, comes will a million examples, plays about anything, anyway you want it. even allows for easy 3d sound too. Check it out! | |
Re: if you use comments inside a CSV type initializer its practice to use [I]/*comment*/[/I] multi-line compatible comment blocks. although technically it shouldn't matter. but you never know what the compiler is doing to the text so being SURE where you comment terminates does help rule it out of the problem. | |
Re: Welcome to the forum! You have a couple options here. You can use reflection to get the executing path of the assembly. Or since you are new at it. I would just save that startup path to a string class variable. they use that from then on out. best place … | |
Re: Then there is always the "out" param. if you choose to go that route. But I would go with Danny's suggestion before I messed with outs. | |
Re: when you draw using the form's on paint method you are drawing directly to the form. any controls you create and add to the form are on top of the form. so if you draw on the form, the controls will ALWAYS be on top of your drawings. you can't … | |
Re: Could you please explain in detail what you are trying to accomplish? | |
Re: I think your best bet here is to make your app run in the background with a system tray Icon. Using a timer and on its tick, subtract the time you started from the current time. then compare that a timespan. attached is an example app project. I figured I'd … | |
Re: first. 100 ms is way to frequent. you could save some processor usage by slowing that down to 1200ms. 2nd [ICODE] IsProcessOpen("notepad.exe"); [/ICODE] according the comment in your IsProcessOpen method, it says not to use the ".exe" but instead use just "notepad" [QUOTE]//Be sure to not //add the .exe to … | |
Re: According to the method definition for "tellme" that you show here, the 2nd param is of type Elephant. Which happens to be the type of the class that holds that method. So when you call Tellme, and pass to it "this" you are passing a reference to the instance of … | |
Re: there are quite a few ways to do this, simplest [CODE] string path = Application.StartupPath; //This gets the directory the application was started from. [/CODE] And more complicated, but many people will tell you this is the only correct way, I argue against that. but it certainly does work also. … | |
Re: The previous poster did a good job at answering your question. But I am here to tell you why what you tried didn't work. your code [CODE] List<TSQLBeginTransactionBlock_Ext> tempBeginTranList =new List<TSQLBeginTransactionBlock_Ext>(); tempBeginTranList = beginTranList; [/CODE] Now its important to know that when you create a variable with a type. You … | |
Re: in sudocode: onPicturebox MouseDown: create new picturebox set new picutebox's size, location, and image properites to match the old picturebox StartDraging code moving the new picutebox not the old one. onMouseUp leave new picutebox where ever you left it/ want it. | |
Re: A graphics object is sealed. It cannot simply be instantiated. you can create one from an image to use to draw to the image, but as far as painting to a form or control, you are pretty much stuck using Paint events. But that's the extent of their usefulness anyway. | |
I have been looking for the answer for 7 hours. So a quick google isn't going to cap this one. I Am working on a programming notepad app with intellisense like Visual Studio. only I have run into a big issue. In Visual studio the little intellisense window is its … | |
Re: As long as the methods don't need the application to be running to work, then you simply put them in a public class, and make the methods public, then reference the .exe from the new app. and all its public classes and methods will be available to other applications. | |
This simple class encapsulates the exAnimatewindow api call. I got tired of adding all the jazz to every form I need to use as a pop up, or any borderless forms I used. (Windows 7 and vista don't animate windows with no border by default) This class could easily be … | |
Re: The System.Drawing name space holds a class called Image. It is used as a type and has instance methods. It cannot be directly initialized but is easily used a runtime. Image pic = Image.fromFile("path to image"); then you can show the image anyway you like, as the image property of … | |
Re: Saving reading every line of code here. I think what you are going for is to expose the values your text dialog has as properties. and when the method that calls it returns, get those values and apply it to the image and refresh the picturebox. | |
Re: call the open file dialog box in the program's Main method. if its a success then call the application.run method passing the filename to the form's constructor. if its not a success then simple allow the main method to return closing the program. [CODE] using System; using System.Collections.Generic; using System.Windows.Forms; … | |
Re: have you tried [ICODE]Thread.Suspend();[/ICODE] / [ICODE]Thread.Resume():[/ICODE] ? | |
Re: This is so vague. what defines a "particular part"? the idea is to just create a rectangle at "some particular location" then create a graphics object from the image then call its FillRectangle() method. |
The End.