|
O yes
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
I use System.Runtime.Remoting.Channels.Http. It's not listed either, but it seems to work. I've never heard of Tcp, but I bet it is there.
Me, wrong!?! Nah, you just need to change your thinking to make me right.
|
|
|
|
|
hi am making a program for a net acfe and i made it already but 2 problems left:
1- can not make client main form to not be affected when the user press(ctrl+alt+delete) i mean make him unable to c it.
2- how to make a .bat file for sql server database application to be included in the final setupproject.. i ca not find the way for creatin this .bat file.
i'll appriciate any help
DODy
|
|
|
|
|
Try distributing it as a MSI file, so that managing on the remote system would be easy.
You can create a MSI file from within VS.NET.
Deepak Kumar Vasudevan
http://deepak.portland.co.uk/
|
|
|
|
|
|
I put some codes in the pictureBox_paint(...) to have the pictureBox repainted when needed.[Let's say my application is formA, another application, such as IE is formB]
I found that it repaint the pictureBox correctly when formB is dragged over formA, or when formA is resized. However, if formB is first dragged over formA (overlaid), then minimized, my "paint" codes doesn't repaint the formA.
can some one explain and help me on this? thanks!
|
|
|
|
|
C#
In a WebForm application I need to open a DialogBox for selecting file(s).
Is there a way to open a file browser (not with HTML File Field Control)?
|
|
|
|
|
Hello,
How to add a combo box control to a list view control.
thanks in advance,
chito
|
|
|
|
|
|
Is it possible to to pass a property to a method and modify that property in a method and expect the modified value to be passed out?
I have the appropriate "set" section for the property and it does not seem to be persisting the change after the method is done.
Any ideas?
|
|
|
|
|
Keep in mind that a property, from a method's point of view, is just another variable. So, you must pass it by reference to get its set{} block called.
|
|
|
|
|
mgarwood wrote:
Is it possible to to pass a property to a method and modify that property in a method and expect the modified value to be passed out?
This will only work for reference types and NEVER for value types unless you specify ref .
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
Hi All
I've some problems with a very large bitmap, with a 30000x20000 size in pixels, this code throws a System.InvalidArgumentException :
<br />
Bitmap bitmap = new Bitmap(30000, 20000);<br />
How can I load and/or create a bitmap with this size ?
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Mohammad Siahatgar wrote:
Bitmap bitmap = new Bitmap(30000, 20000);
OK lets do some math. we have 30000 x 20000 x 4bytes per pixel (This constructor creates a Bitmap with a PixelFormat enumeration of Format32bppARGB)
= 2400000000 bytes
= 2288.818359375 MBytes
Now I somehow doubt anything running Windows can keep something like that in memory... What program are you gonna use to view this?
MyDUMeter: a .NET DUMeter clone "Thats like saying "hahahaha he doesnt know the difference between a cyberneticradioactivenuclothermolopticdimswitch and a biocontainingspherogramotron", but with words you have really never heard of."
|
|
|
|
|
Hi
Adobe Photoshop can easily handle it. But I don't want to view it, just want to fragment it into smaller parts for fast loading.
![Rose | [Rose]](https://codeproject.global.ssl.fastly.net/script/Forums/Images/rose.gif)
|
|
|
|
|
Hi,
yes, Photoshop can handle that due to the fact Photoshop implements an own "image-subdivisioning", so it also breaks the image into smaller parts the GDI can handle.
So, if you only want to "break" the image in smaller pieces, I would suggest to you save the image in an easy file-format (e.g. "RAW", "PCX" or whatever you like) and read it completely yourself (means "forget c#, gdi and gdi+ for loading" because that will try to allocate the memory for the COMPLETE image, what's in fact your real problem).
Then if you open the raw file (with your code using 'normal' file-reading using input-streams), you need to decide it how you want to break it. If your image (for example) is in RGB-format, the filesize of the RAW (saved in PShop with "no header") will be imageWidth*imageHeight*3. When you open it, the first imageWidth*3 bytes will be the first scanline of the image (either in RGB or BGR-order, I forget that, but you will realize, don't worry).
If you would decide to break it into smaller pieces of e.g. 100*100 pixels, you need to allocate imageWidth/100 (plus one if imageWidth not dividable by 100 without rest), then read the first scanline (and only the first scanline) and copy the pixeldata into the first scanline of the "piece"-images (first "piece"-image gets the first 100 pixels of scanline, seconds 100 pixels from x=100 to x=199 and so on). If you have read 100 scanlines of the original big-sized image (which is the height of one "piece"-image), you can save the pieces-images to disc (in any other format) and reallocate new piece-images. Then continue until you did that for every scanline within the original image.
But this will only help if you only want to "break" the image in pieces. If you want to display them, you need the information which pieces of the image will be visible and load only them (otherwise the behaviour of your code will strongly depend on settings like virtual memory and so on) and display only them.
hope this helps,
greets,
Danny
|
|
|
|
|
Hi,All
I am writing Grid Like Control in C#.I am drawing the grid(Rectangles) on control.
i have written a class called CellInfo
class CellInfo
{
int x;
int y;
int width;
int height;
int Data;
Color BackColor;
}
which represents one cell(Rectangle) in the grid.
Now i have Arraylist Cells[Rows],which contains ArrayLists[Columns] of CellInfo objects.
Now i want user should be able to change some properties of CellInfo(e.g. data,BackColor)(one rectangle in Grid)at DesignTime.
Something like Items property in ListView.
How should i declare the property.
If i write the property which returns ArrayList containing CellInfo Objects,it does'nt understand CellInfo!
I hope u understand my Problem!
Thanks
Tushar.
|
|
|
|
|
first of all, vs.net needs the class to have properties otherwise the designer cannot edit it, so the class you have there should look like this.
public class CellInfo
{
private Rectangle m_bounds;
private Color m_clr;
private int m_data;
public Rectangle Bounds
{
get { return this.m_bounds; }
set { this.m_bounds = value; }
}
public Color Color
{
get { return this.m_clr; }
set { this.m_clr = value; }
}
public int Data
{
get { return this.m_data; }
set { this.m_data = value; }
}
}
I also think that if you want the designer to design the objects, you cant use ArrayList, but have to use a strongly typed collection, which for CellInfo would be:
public class CellInfoCollection : System.Collections.CollectionBase
{
public CellInfo this[int index]
{
get { return (CellInfo)this.List[index]; }
set { this.List[index] = value; }
}
public CellInfoCollection()
{
}
public void Add(CellInfo info)
{
this.List.Add(info);
}
} All you need to do is change the CellInfo to any other object type to have it work with that type of object.
Ummm....if you want the designer to work properly with your collections, the property that gives access to the collection needs to have the following attribute:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]<br />
public CellInfoCollection Cells<br />
{<br />
get { return this.m_cells; }<br />
}
Making sure you have the using statement for the System.ComponentModel namespace.
just FYI, if you really want to add proper design-time support, take a look at the System.Windows.Forms.Design.ControlDesigner class
Hope that helps.
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Hi,
Thanks for replying but i am still confused!
Now i Will return CellsCollection instead of Arraylist.
so there are two classes derived from CollectionBase.
CellsCollection and CellInfoCollection.
CellsCollection is like Collection of Collection(CellInfoCollection representing each row)
public class CellInfoCollection : System.Collections.CollectionBase
{
public CellInfo this[int index]
{
get { return (CellInfo)this.InnerList[index];}
set { this.InnerList[index] = value; }
}
public CellInfoCollection()
{
}
public void Add(CellInfo info)
{
this.InnerList.Add(info);
//this.List.Add(info);
}
}
public class CellsCollection : System.Collections.CollectionBase
{
public CellsCollection this[int index]
{
get { return (CellsCollection)this.InnerList[index];}
set { this.InnerList[index] = value; }
}
public CellsCollection()
{
}
public void Add(CellInfoCollection info)
{
this.InnerList.Add(info);
//this.List.Add(info);
}
}
i populate the values of each cell like :
CellsCollection lst = new CellsCollection();
for(int i= 0;i < m_Rows; i++)
{
lst.Add (new CellInfoCollection());
}
for(int row = 0 ; row < m_Rows; row++)
{
CellInfoCollection innercells = new CellInfoCollection();
for(int col= 0 ;col < m_Columns; col++)
{
innercells.Add(new CellInfo());
}
lst.Add(innercells);
}
and property now looks like:
[DesignerSerializationVisibility(DesignerSerializationVisibility.Content),Description("Get/Set Properties of each Cell")]
public CellsCollection CellsInfo
{
get {return this.lst;}
}
But in properties window if i click CellsInfo it shows me collections equal to no. of rows.Inside each collection there is another collection,if i click on that it gives me error
"Forms that are already visible cannot be displayed as modal Dialog. Set the forms visible property to false before calling ShowDialog"
For inner Collection Seperate dialog should popup!
How should i inform him that he should popup seperate dialog!
Thanks in Advance
Tushar.
|
|
|
|
|
i dont quite understand the problem...is it possible for me to look at the project? zip it and email it to me at theeclypse@hotmail.com?
1001111111011101111100111100101011110011110100101110010011010010 Sonork | 100.21142 | TheEclypse
|
|
|
|
|
Hello,
I want my combo box border look like System.Windows.Forms.BorderStyle.FixedSingle. How to do this.
Thanks in advance,
chito
|
|
|
|
|
Look in the c# controls section here in CP - there's plenty of examples
|
|
|
|
|
Hi,
I have created a control library with one control ( this control has a resx, and it's composed of some standard controls).
If I add that control library, to an application, and then I inherit from that control, I get this error message:
"The Item xxxx.resx does not exist in the project
directory, it may have been moved renamed or deleted"
This means that, I need to import the resource to my application ? Is that a bug from Visual studio ?
Thanks in advance, greetings
Braulio
|
|
|
|
|
test desktop bob
|
|
|
|
|
Hi, all!
Would you like to help me, plz?
Have the folow:
I want to create COM+ component with help c#, so, it will use the external(usual) dll-file(my.dll), where contents some logic (com-objects).
This dll good work in usual application, when add it as reference - all ok.
(a have not source for this dll file)
But when i try to link up it in my developed com+ app., - got folow answer from compiler:
"Assembly generation failed -- Referenced assembly 'name of my.dll' does not have a strong name"
is it have not 'strong name'????
i try the next:
al /out:my.dll "?" /keyfile:my_dll.snk
but it don't want to work... i do not understand want is this "?"
and is it right way to solve this problem? and what i must do in this case?
in any case thx.
|
|
|
|