Converting a color tiff image into both bitonal(b/w) image as well as 8 bit...
Hi all,I need to write a program that needs to convert the color tiff image into both bitonal(b/w) tiff as well as grayscale tiff image. Is it possible in C# without using the 3rd party libraries.?Thanks.
View ArticleSound Issues! Please Help!
I have created a game which begins playing a continuious loop, at this moment in time there is also status bar which is filling up to the point where the player can make there move. Cough cough, Final...
View ArticleHow to add an Item to a IEnumerable
Okay, I have this IEnumerable veriable named GradeProfilessome where part of my code, I want to add an Item to the IEnumrable.. How can I possibly add another Item of the same type of that IEnumerable...
View ArticleClass design problem
Hi everybody,I have a base class called MiddlewareBase. It starts from the following code:public class MiddlewareBase { public Request CurrentRequest; public LocalIni iniFile; private Database...
View ArticlePicture enlarges when maximized window??
This is what happens when i maximize my window. All the Picture becomes larger. how i will solve this issue. you r can tell me if i can do it from properties window. Please help. My screen resolution...
View ArticlePicturebox Transparent background over flash object?
I have an embedded swf object in my winform using the ActiveX flash control. My problem is, I can not seem to get a picturebox's background to be transparent over the object. FYI, the swf background is...
View ArticleCreating folders and files in directory
Hi, I need to create 5 directories in a perticular folder if the folder is not exits and i need to copy one xml file to these folders. ex: if have a folder name called World then i need to create 5...
View ArticlePROBLEM DISABLING/ENABLING THE NETWORK ADAPTER WHEN RRAS IS ENABLED
hello all, I am using the following code to disable/enable the lan card:SelectQuery wmiQuery = new SelectQuery("SELECT * FROM Win32_NetworkAdapter WHERE NetConnectionId != NULL");...
View ArticleRaise Event in c#
Hi, I have this code from vb that call the method test from raising an event. I want to convert it in c# but the converted code from converter are not working, I search around and I have no luck of...
View ArticleHow to use "Interface" correctly?
I wanna to use multiple inheritance and I got to know Interface might give me help, so I create the following codingnamespace IT.Machine { interface IMachine: IMachineA, IMachineB, IMachineC {...
View Articlechange dr falken's voice to ours
when we are using speech recognition and speech sysnthesis in C#, anything which we speak is written into text box and can be played back in computer's voice. I need to know is there any way we can...
View Articlehow many thread we can run when using task library [TPL]
suppose i have list which holding 30 files path. now i want to use task library to start download all files at a time. so like to know how to write that kind of code?how many thread can run...
View ArticleDifferent result with Drawing in picturebox on different PC.
When i run the app on my PC, it works like expected and the drawn numberline is from -10 to +10. While on other PC's number line is only in range from -10 to +5. I have no idea what causes this, looks...
View ArticleUsing WritePrivateProfileStringW
HiI searched the internet to find out how to use WritePrivateProfileStringW as I wanted to write data to a unicode INI file just like I do in Visual C++.This is the code: [DllImport("KERNEL32.DLL",...
View ArticleTextbox, arrays - get information, display and put in array to use in other...
hello! I am trying to do the following:1. The user sets the numebr of the objects for which he/she wants to start an evaluation. Then he/she presses the ok button. The software keeps the number .2....
View ArticleCould not find a part of the path '\\10.30.113.112\AudioFolder'.
Got an exception in the code. Could not find a part of the path '\\10.30.113.112\AudioFolder'if (!Directory.Exists(audioFolder)) { Directory.CreateDirectory(audioFolder); }In the immediate window, we...
View ArticleJson Serialisation and deserialisation error
I want to serialize this class public class Pagination<T> : IPagination<T> { [DataMember] private readonly IList<T> _dataSource; public Pagination() { } public...
View ArticleCopyright Microsoft C# .NET Text to Speech
I'm working on a project to create a virtual teacher, and then to post videos of him talking about different topics on Youtube. Am I allowed to use for him a voice generated using...
View ArticleHow to load data from database
How to load imagae and data from local database and then display ithere i saving the image and data using System; using System.Collections.Generic; using System.ComponentModel; using System.Data;...
View Articlewhen to use static class or Singleton class
here is two piece of class code one is for Singleton and other one is for static class. i like to understand in programming world when one should use static class and when one should use Singleton...
View Article