374 Posted Topics

Member Avatar for lotrsimp12345

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 …

Member Avatar for Geekitygeek
0
238
Member Avatar for veekay123

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.

Member Avatar for Diamonddrake
0
74
Member Avatar for Diamonddrake

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 …

0
82
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
0
155
Member Avatar for judithSampathwa

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.

Member Avatar for Radical Edward
0
3K
Member Avatar for bushman_IL

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. …

Member Avatar for bushman_IL
0
1K
Member Avatar for Wingzx20

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 …

Member Avatar for Diamonddrake
0
520
Member Avatar for Diamonddrake

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 …

Member Avatar for Nivass
0
3K
Member Avatar for Geodude0487

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 …

Member Avatar for bbman
0
164
Member Avatar for Rajnesh

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 …

Member Avatar for kvprajapati
0
929
Member Avatar for TotoTitus

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 …

Member Avatar for Diamonddrake
0
935
Member Avatar for mrnutty

I miss the little pencil icon that made it very obvious that you had posted in a thread.

Member Avatar for jwenting
1
189
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
1
121
Member Avatar for vb5prgrmr

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.

Member Avatar for vb5prgrmr
0
608
Member Avatar for lllllIllIlllI

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.

Member Avatar for MidiMagic
0
133
Member Avatar for Sodabread

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.

Member Avatar for Ezzaral
0
192
Member Avatar for requimrar

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 …

Member Avatar for requimrar
-1
140
Member Avatar for Mitja Bonca

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 …

Member Avatar for Ramy Mahrous
0
86
Member Avatar for Rashakil Fol

I had the privileged of seeing it in IMAX 3D. It was quite amazing. Now I own it in bluray :)

Member Avatar for Diamonddrake
1
323
Member Avatar for eyes4u

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 …

Member Avatar for dilbertz
0
234
Member Avatar for nemoo

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 …

Member Avatar for nemoo
0
415
Member Avatar for 2aviv20

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 …

Member Avatar for Diamonddrake
0
235
Member Avatar for Mitja Bonca

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 …

Member Avatar for Diamonddrake
0
480
Member Avatar for CanYouHandstand

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.

Member Avatar for Diamonddrake
0
93
Member Avatar for sourcez

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.

Member Avatar for Diamonddrake
0
66
Member Avatar for WASDted

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 …

Member Avatar for JasonHippy
1
198
Member Avatar for gladiator1919

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 …

Member Avatar for gladiator1919
0
241
Member Avatar for lowhzplayinfool

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 …

Member Avatar for lowhzplayinfool
0
143
Member Avatar for ctrl-alt-del

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 …

Member Avatar for Diamonddrake
0
238
Member Avatar for darab

[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!

Member Avatar for kvprajapati
0
132
Member Avatar for Acadian

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.

Member Avatar for apegram
1
167
Member Avatar for g2gayan

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 …

Member Avatar for g2gayan
0
370
Member Avatar for vorace

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.

Member Avatar for Diamonddrake
0
81
Member Avatar for severman

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 …

Member Avatar for severman
0
171
Member Avatar for lishannx
Member Avatar for lishannx
0
153
Member Avatar for geoNeo_

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 …

Member Avatar for geoNeo_
0
227
Member Avatar for CreativeCoding

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 …

Member Avatar for CreativeCoding
0
232
Member Avatar for lewashby

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 …

Member Avatar for Szpilona
0
116
Member Avatar for lishannx

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. …

Member Avatar for Diamonddrake
0
1K
Member Avatar for srikanth754

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 …

Member Avatar for Diamonddrake
0
792
Member Avatar for lishannx

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.

Member Avatar for lishannx
0
4K
Member Avatar for yuriythebest

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.

Member Avatar for Diamonddrake
0
97
Member Avatar for Diamonddrake

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 …

Member Avatar for Diamonddrake
0
2K
Member Avatar for simbomatic

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.

Member Avatar for simbomatic
0
987
Member Avatar for Diamonddrake

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 …

1
255
Member Avatar for DarwinRock

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 …

Member Avatar for DarwinRock
0
159
Member Avatar for spawn2004

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.

Member Avatar for Diamonddrake
0
157
Member Avatar for Bigfoot73

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; …

Member Avatar for Bigfoot73
0
163
Member Avatar for Krytikal
Member Avatar for Diamonddrake
0
584
Member Avatar for milosz

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.

Member Avatar for Diamonddrake
0
224

The End.