|
Yustme wrote: So how do i check the content in bytes of a file?
You mean the size of the file? If you read my first reply, instead of just replying to it, you will find that I alread answered that question before you even asked it.
---
b { font-weight: normal; }
|
|
|
|
|
Hi Guffa,
I did. But i got an error, so i thought maybe this wasn't it...
Now i got it fixed tho.
Instead of int, shoulda been long
Thanks for your help!
|
|
|
|
|
Hey all,
I need to create a Custom Control that draws a line in the form with each end anchored to other controls. The Custom Control should show the drawing of the line once it is being drawn and able to redraw itself automatically once the anchored controls are moved. Can someone tell me how i can go about to accomplish this? Just want to know what might be need (class, namespace, etc and concept...) Cant seem to be able to figure one out.
Thanks in advance!
Tom
|
|
|
|
|
Create a custom control that takes has 2 properties: Control1, Control2. When either of those properties get set, add an event handler for LocationChanged. In the LocationChanged handler, update the destination coordinates of the line you want to draw, then call Invalidate. In the OnPaint override, draw a line between your destination coordinates.
|
|
|
|
|
Thx Jusah! I will give it a try.. didnt thought about using two Controls as properties before. Thx thx.
Tom
|
|
|
|
|
Thx Judah! I will give it a try.. didnt thought about using two Controls as properties before. Thx thx.
Tom
|
|
|
|
|
Hi
My application is written by C# and I load the bitmap onto button but this image with alfa channel .
how can i hide the alpha channel/layer
Plaese tell me the code.
Thanks you all in advance, I'm greatly appreciate
for your help. Have a good one...
Parshant
Parshant
|
|
|
|
|
The alpha channel decides the opacity of the other channels. In what manner do you want to "hide" the aplha channel? Do you want to make the image opaque?
---
b { font-weight: normal; }
|
|
|
|
|
Hi all,
I m working on a desktop based application which talks to web service.
i want to do some client side caching sort of thing for this application, like when user install my application then it has to install sqlserver express also at client side "if not found" where I can store some frequently used information.
But i have no idea abt this, how can i do this STUCK UP
pls help ASAP...
Thanx in advance
Anuj
|
|
|
|
|
So you need persistence in a desktop application? That is pretty basic stuff. What is your specific problem?
led mike
|
|
|
|
|
When some one first time start my application then i need to install sqlserver express 2005 at client side, then i have to create a database into it where i ll sync data from my web service to client side database i have written a thread for this.
but no idea how can i install sql xpress at client side using c#.
even if we can do this using installation wizard that will be also ok.
i m totally confuse abt the same pls help me out.
and even if u have done this pls send me your chat id we can chat on this when ever u get time.
Thanx
Anuj
|
|
|
|
|
They hide that information in the Documentation[^]
see the section titled: Deploying SQL Server 2005 Express Edition by Using a Wrapper
led mike
|
|
|
|
|
|
Hi
i use a button.and put a image on it the image has a rounded button shape
and extra color appear to make a full image .the exrta color can be hide by alfa channel.
plz tell me how to create a rounded button with a rounded image
Parshant
|
|
|
|
|
I think it's not the suggested solution to your problem but i made all sorted of buttons like this:
You make the button in a applic ( like Photoshop or Paint LOL )
( You can even make 2 Button-Designs ( a highlighted and a non-highlighted ) )
Then you put a PictureBox on the form.
With the Picture of the Button( the background-color of the form must be the same as the background-color of the button-picture )
So, you can make a onClick-Event and an OnMouseOver and an OnMouseLeave-Event
On MouseOver you load the highlighted Button-Picture into the box and by a MouseLeave with the non-highlighted ...
There are certainly 10000 components of Buttons who changes the color, but in the do-it-yourself-way you can decorate the button as you want
Regards
|
|
|
|
|
Hi
i use a button.and put a image on it the image has a rounded button shape
and extra color appear to make a full image .the exrta color can be hide by alfa channel.
plz tell me how to create a rounded button with a rounded image
Parshant
|
|
|
|
|
Save your image as a format that supports alpha. For example, .png supports alpha channels. Once saved with alpha, displaying that image in a control will retain the alpha channel, no extra work required.
In order to do a rounded button, though, you'll need to custom draw a button. There are some articles on this website about drawing rounded rectangles, I suggest you do a search.
|
|
|
|
|
and plz tell me how to make alpha disable
|
|
|
|
|
how can treenodestate is related to treeview with accessing the check box in C# VS2005
dcjoshi2
|
|
|
|
|
I'm not sure I understand your problem. Could you elaborate?
|
|
|
|
|
Hello
I´ve got a static library lib that is compiled for running in MS-DOS(it must run in MS-DOS for detecting some drivers that are only in DOS). How can i call it from .NET or from C++? From C++, I would create a DLL that will be called from C#.
Best regards,
Borja
|
|
|
|
|
Look at PInvoke
only two letters away from being an asset
|
|
|
|
|
Please i need help and the code of the folloing specification bellow:
Make a function ReadNumber with the following specifications:
int ReadNumber(char g[])
{
// PRE : -
// POST : the variable g has been filled with character 0.. 9 ("digits only")
}
Functional requirements:
· there are no "leading" zero's
· the function ignores all "leading no digits"
· the function returns immediately as soon as "digits" are not followed by "digits" (THEREFORE THE FUNCTION DOES NOT WAIT FOR a RETURN or something like that)
· as one or more leading zero's are followed by a NOT "digit" the function returns 0
Non functional requirements:
· You are not allowed to use any temporary arrays
· The maximal length of the string is 100
remarks:
· Write down how you want to test the function.
· Give your test inputs to test all possible cases.
· The function must be fool-proof and protected against too long input strings.
· DO NOT START TO CODE IMMEDIATELY
· THINK ABOUT IT AND WRITE DOWN A PLAN TO STATE HOW YOU WANT TO TACKLE THE PROBLEMS.
Example main program:
void main(void)
{
char number[MAXSTRING];
ReadNumber(number);
printf("%s", number);
getch() ; // wait for a key to quit
}
Roland
|
|
|
|
|
Why dont you go ahead and try your own homework, posting specific difficulties as they arise.
|
|
|
|
|
I have a file that contains the following (code in functions removed for brevity). Let's call this file "EntityTable.cs":
using System;
using System.ComponentModel;
using System.Data;
using System.Reflection;
namespace MyApp.DataAccess
{
public abstract class EntityTable : DataTable
{
[DataObjectMethod(DataObjectMethodType.Select, true)]
public abstract DataTable Fill(object parameter);
protected DataTable GetDataTable(System.Collections.IList list, Type typ)
{
DataTable dt = new DataTable();
return dt;
}
}
}
I then have this file (again, code not dealing with this wquestion is removed for brevity). Let's call it "MyPage.aspx.cs";
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using MyApp.DataAccess;
namespace MyApp.Data.Employee
{
public class CMyEntityTable : EntityTable
{
public override DataTable Fill(object parameter)
{
return blah blah;
}
}
}
The code won't compile because it can't find the EntityTable class, and Intelisenseless doesn't see it either. I'm new to this C# stuff. What the hell did I do wrong?
"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
|
|
|
|