|
|
hi,
wht u have given is customized datagrid.
But i want it in the C# DataGridView .
can u help me pls
with Regards
prasad
|
|
|
|
|
In VS 2005, C# setup project contains information of exe. But I can't find app's [ProductCode] in setup project to make an uninstall file.
If you help me show how to find [ProductCode], I am appreciated with you and unintallation of app is easier.
Thanks in advance
It seem to be a solution or an answer.
|
|
|
|
|
An app doesn't automagically have a product code, you need to provide one.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
How should I provide [ProductCode] so that Window can identify this [Productcode] as a key to remove ????
It seem to be a solution or an answer.
|
|
|
|
|
My understanding is that the point is entirely that you provide whatever you like, and windows will use it when you run your uninstaller.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi everyone,
I've got a problem with my application and i need some help.
I use a DataGridView to display the data.Data is being read from a db.I want to get the Sum of each cell under a column.For example:
|Bills |Salary |PriceOfAPen
-----------------------------------------------------
|500,00$ |300,00$ |50,00$
|400,00$ |300,00$ |50,00$
-----------------------------------------------------
Total: 900,00$ 600,00$ 100,00$
But my output looks like this:
|Bills |Salary |PriceOfAPen
-----------------------------------------------------
|500,00$ |300,00$ |50,00$
|400,00$ |300,00$ |50,00$
-----------------------------------------------------
Total: 1600,00$
Users can change or add tables so i have to do it when the data is called.Can someone please help me?
Thanks already.
Sorry for my English by the way as it is not my native language
|
|
|
|
|
Hi,
You can use the RowCreated event to keep all the columns values in separate variables, and go on adding new values. then set these to the Footer labels. So simple.
"A good programmer is someone who looks both ways before crossing a one-way street." -- Doug Linder
coolestCoder
|
|
|
|
|
You could use some variables for particular cell/row accordingly that maintains the total and at the end display the result accordingly.
Keshav Kamat
India
|
|
|
|
|
Does anyone know how to use the .net2 (c#) DeflateStream to compress content for a pdf?
I have the PDF stuff written and working fine including text, images etc with the page contents in plain unicode.
Example
5 0 obj<<<br />
/Length 278<br />
>>stream<br />
<br />
[commands to write to PDF page in unicode]<br />
<br />
endstream
When I try to compress the [commands to write to PDF page in unicode] part and add the /Filter /FlateDecode into the pdf object header, Acrobat seems not to recognise the compression and just returns a blank page.
I found a Microsoft article http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=97064[^] which seems to indicate the the MS version of flate compression does not follow the original spec for zlib and needs two additional characters before the stream. I have used byte[0] = 88 and also 120 and byte[1] = 0 followed by the byte stream of the compressed page, but still doesn't work.
Has anyone managed to use the DeflateStream successfully and if so, could you point me in the right direction please.
|
|
|
|
|
Does any one know how to get the file "property-value" pairs for a particular file. The property-value pairs appears in Windows Explorer when you select a file and view properties, and then select the summary tab. My camera puts additional information (such as shutter speed and aperature settings) in this collection. I cannot view them in the "detail view" in Windows Explorer (i.e. you cannot add them to the view). I thought I would write a quick app to display these values next to each picture.
I found the DSOFile object but this only works with Ole file (excell, word, powerpoint,...)
Any ideas if it can be done with the .Net libraries?
Tom K
|
|
|
|
|
You need a EXIF extractor. Look at this one:
http://www.codeproject.com/csharp/exifextractor.asp
|
|
|
|
|
Thanks. Just what I needed.
Tom K.
|
|
|
|
|
Hello,
I have a listview control with bunch of entries. When the user
right-clicks on the item, I want a context menu to come up. So I
created a ContextMenu instance and assigned it to ListView.ContextMenu
property.
The problem is that the context menu comes up regardless of whether I
right-click on the item or the empty space or the column header. I want
it only to come up when the user right-clicks on an item. How can I
control the ContextMenu better?
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
On the mousedown event for the listview place the following code:
if (ListView1.GetItemAt(new Point(e.X, e.Y)) != null)
ListView1.ContextMenu = yourContextMenu;
else
ListView1.ContextMenu = null;
|
|
|
|
|
|
|
You can use .CSS file with .skin file.
.skin file affect your whole project.
.CSS file use for applay class only for particular control.
How to applay .skin file and .css
=========================================================================
Skin File
.skin file tage applay to whole application
Skin File
<asp:textbox runat="server" cssclass="txtBox">
<asp:label runat="server" cssclass="lblOptional">
.CSS File
body {
}
#fieldset
{
position: absolute;
font-weight: bold;
background-color:Silver;
}
#fieldset .txtBox {background-color:Red; }
#fieldset .lblOptional
{
color:Red;
}
.txtBox
{
border: 1px solid #1B3D6B;
font-size:1em;
background-color:#BBAAFF;
}
.lblOptional
{
color:Blue;
}
Parasania Sandip
MOB : 9879840216
Parasaniasandip@gmail.com
(M.C.A.,P.G.D.C.A.,B.I.T.& C.A.)
|
|
|
|
|
Hi,
I have a listView with oneClick activation enabled. It's working fine but there's a really ugly effect, that is when I pass the mouse over the items it blinks.
How can I stop that?
Please help.
|
|
|
|
|
Look here.
Hope it helps,
- Dmitry.
-------------------------
Listen up! Teamwork means staying out of my way! (Seifer, Final Fantasy 8).
|
|
|
|
|
The problem that I'm having is I'm not recieviing all of the data from my socket at 1 time. I'm receiving it in chunks. So I created a custom object that looks for
a specific string then raises a delegate indicating that the entire string was
received. I'm receiving data from 30 different devices so I'm using threads and the thread pool. For some reason every so often my buffer does'nt get cleared out
and the message gets stored wrong into my sql database.
I'm waiting for data with the following method:----------------------
rivate void WaitForData()
{
Waiting = true;
AsyncCallback GetDataCallBack = new AsyncCallback(ProcessData);
StateObject StObj = new StateObject();
StObj.WorkSocket = SockCLient;
//wait for more data
try //If the socket disconnects during the begin receive
{
SockCLient.BeginReceive(StObj.DataBuffer, 0, StObj.DataBuffer.Length,
SocketFlags.None, GetDataCallBack, StObj);
}
catch(Exception Ex)
{
SockCLient.Poll(1000, SelectMode.SelectRead); //this is to poll the socket for 1 second to get the status
if (SockCLient.Connected == false && SocketStillConnected() == false)
{
ConnectToDevice();
}
}
Waiting = false;
}
Receiving the data with the following code:----------------------------------
private void ProcessData(IAsyncResult Asr)
{
Array.Clear(Bytes, 0, Bytes.Length - 1);
StateObject SockId = (StateObject)Asr.AsyncState;
int IEndRec = 0;
try
{
IEndRec = SockId.WorkSocket.EndReceive(Asr);
}
catch
{
}
char[] Chars = new char[IEndRec + 1];
Decoder d = Encoding.UTF8.GetDecoder();
int CharLen = d.GetChars(SockId.DataBuffer, 0, IEndRec, Chars, 0);
//does some more stuff down here
waitfordata();
}
my string appender object looks like this:-------------------------------
public class StringAppender : TextBox
{
public StringAppender()
{
this.Multiline = true;
}
public delegate void TextReceived(string Value);
public event TextReceived TextDataReceived;
public string TextBox
{
get
{
return this.Text;
}
set
{
this.Text = value;
}
}
public void AppendText(string Text, string[] ValuesSearched, bool FirstRun)
{
Text = Text.Replace("\0", "");
if (Text.Length > 0)
{
try
{
this.Text = this.Text + Text;
foreach (string Str in ValuesSearched)
{
if (this.Text.IndexOf(Str) != -1)
{
TextDataReceived(this.Text.Substring(0, this.Text.IndexOf(Str)));
ClearText();
}
}
}
catch (Exception Ex)
{
throw Ex;
}
}
}
public void AppendText(string Text, string ValueSearched, bool FirstRun)
{
Text = Text.Replace("\0", "");
if (Text.Length > 0)
{
try
{
this.Text = this.Text + Text;
if (this.Text.IndexOf(ValueSearched) != -1)
{
TextDataReceived(this.Text.Substring(0, this.Text.IndexOf(ValueSearched)));
ClearText();
}
}
catch (Exception Ex)
{
throw Ex;
}
}
}
public void ClearText()
{
this.Text = "";
}
}
//----------------------------------------------------------------------
Jason E Cain
|
|
|
|
|
After reformatting your code so I could follow it properly, I see that there are multiple problems.
Instead of calling another method for "ClearText()", try putting in the line "this.Text = string.Empty;" in place of the call to "ClearText()". The alternative is to clear the buffer before the call to "BeginRead()".
Phil
|
|
|
|
|
heya guys ... I'm gonna start writing a NEW windows exactly like what Microsoft did . and I'm gonna be another bill gates ... pouyan Gates or somthing ...
if you wanna be in my crew let's START OVER ....
|
|
|
|
|
What ever it is your smokin' I suggest you stop.
|
|
|
|
|