|
Hello everybody.
How can we change an image size ?
If there is an article about it please refer me to that.
Thanks in advance.
|
|
|
|
|
Mohammad Dayyan wrote: How can we change an image size ?
Resizing an image?
1 - Create a Bitmap with expected size
2 - Load image to a Graphics instance using Graphics.FromImage
3 - Use Graphics.DrawImage to draw that to the bitmap.
4 - Save the bitmap.
|
|
|
|
|
Ok, So I was obbing my program using 9Rays and whenever I enable String encryption the program messes up but when I do normal obbing with everything max it works. Also when I ob strings all the text in the program either has a [] in it or ends in a []. What is the problem? Hope I was clear.
Thanks,
Buckley.
|
|
|
|
|
IMO, ob used when we release assemblies. When you use debugger like VS or SD, your application will not work correctly. But if in release phase your application doesn't work, your ob application has to be changed
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
You were clear until you started abbreviating the word "obfuscate". Believe me - you have time to type the entire word.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hello,
(I'm a newbie at C# but have programming experience)
I have a database with three tables. The model can be seen here: Data model[^]
I would like these tables to be populated in the DataGridView as can be seen here: DataGridView[^]
The start, end, ..text fields will be filled with entries from the table WBS.
The task combobox should have the WBS description selected
The project combobox should have the WBS's project name selected.
The project combobox should have been populated with all available projects in the project table and task combo box should have been populated with all available tasks for the chosen project.
How can I get this working (or at least guide me in the right direction)
Best Regards
Jocke
|
|
|
|
|
Hi,
Basic idea is that you create for example a datatable which is populated by using SELECT and it joins all three tables. This will get you rows to the grid (you can also use entity instead of a datatable).
The combo boxes are populated independently from the rows (they have a separate datasource), which means you use a separate datatable for each combo providing possible values. For the value to show you use DisplayMember and for the foreign key column, which defines selection, you use ValueMember.
Hope this helps,
Mika
|
|
|
|
|
Hello,
Im trying to make a little application to have a console application open and say 1 for addition 2 for multiplication, etc.
i do not know how to make a menu for a console where if i type 1 i need the console to read it and show the layout for the addition.
please help!
-Steven
krtek16@hotmail.com
p.s. i wrote it like this (addition example)
{
console.writeline("please enter first number to add");
string sNumber1Add;
sNumber1Add = console.readline();
double dNumber1;
dNumber1 = Convert.ToDouble(sNumber1Add);
console.writeline("please enter second number to add");
string sNumber2Add;
sNumber2Add = console.readline();
double dNumber2;
dNumber2 = Convert.ToDouble(sNumber2Add);
//add together
double dAnswerAdd;
dAnswerAdd = dNumber1Add + dNumber2Add;
console.writeline("The answer is + "
dAnswerAdd);
console.writeline("press enter to terminate");
console.read();
}
modified on Sunday, September 7, 2008 2:55 PM
|
|
|
|
|
if i don't misunderstanding about what you need, you have an application that call console application to execute something.
1. make console application with passing arguments (in main entry point "Main(string[] args)")
2. parse passed arguments in your console application to execute something.
3. use Process.Start to call your console application and specify arguments to pass.
otherwise if you do not need to create application caller please remove step no 3
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
thanks it worked!
it was just a new thing i was trying to learn
-Steven
|
|
|
|
|
Hi ,
Recently i tried to get an xml file that contains many element with no values and set their values.
<Book>
<Auther>
<Name></Name>
<Age></Age>
</Auther>
<Publicity>
<Year></Year>
</Publicity>
</Book>
this xml Element elements has no values and i want to set their values and save the xml string to file.I used to ... mNodeChild = mDoc.CreateElement("Name"); mNodeChild.Value="John"; . Although, this line code is correct syntax. But when this program write to XML file that is message announcement {Cannot set a value on node type 'Element'}
do someone knows how to do it?
|
|
|
|
|
An xml element doesn't have a value. Use the InnerText property to set the content of the element.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Great! Thank you so much
|
|
|
|
|
Hi all,
Now I want to do this, when I click on Help menu, my application will open a help file like help.chm. How do I have to do?
|
|
|
|
|
ProcessStartInfo startInfo = new ProcessStartInfo("your help file");
Process.Start(startInfo);
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Hi everybody.
I want to read a file from web by C#.
for example I want to read http://localhost/favorite.ico .
Can you help me ?
Thank you.
|
|
|
|
|
Check this link[^]
hope it helps
dhaim
programming is a hobby that make some money as side effect
|
|
|
|
|
Look at the DownloadData method in the WebClient class, or if you need more control over the request (like specifying timeout) look at the HttpWebRequest class.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
|
Now I want to capture IE/Firefox Address bar.
so If I enter url or words into IE/Firefox Address bar, I want those inputed text on windows application or windows service.
If someone who know this, Please teach me
Help me.
Thank you.
|
|
|
|
|
hello
we have a linux file server with samba and by winscp we copy necessary files to it. But is there any way with c# to do this ?
Namely, is there any way connecting to samba with a login script and copy the files to the computer ?
thanks alot
|
|
|
|
|
Hi All ,
I Lost the Code For MY Dll ,
I Referance To it to my project .
but i lost the code and i wount it now , how I Can return it by Using The disassembly in VS 2005 or any other Way ?
Please Hellp me
Thaer
|
|
|
|
|
try use this link[^]
but it works only if you have that dll and it's a .net assembly
hope it helps
dhaim
programming is a hobby that make some money as side effect
modified on Sunday, September 7, 2008 7:43 AM
|
|
|
|
|
Go with Mbah's suggestion. As long as the assembly wasn't strongly obfuscated, Reflector will help you out
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Is Serializable Attribute's behavior inheritable?
i have two classes classA, classB.
classA have Serializable attribute applied to it.
classB inherits classA
i want to serialize classB.
do i have to apply serializable attribute to classB as well, or inherting from classA
would be enough.
thanks.
modified on Sunday, September 7, 2008 9:23 AM
|
|
|
|