|
Xmen W.K. wrote: A instanceOf_A;
Is this required? B is derived from A and when B is instantiated, A will also get instantiated.
|
|
|
|
|
N a v a n e e t h wrote: Is this required?
yes...its for keeping the actual data in it so that it can be retrieve when require. In the previous version of that class I used a physical file to keep the data but now I need it in class.
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
Doesn't the PropertyNam e property of the PropertyChangedEventArgs class gives the name of the property thats changed?
It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD
|
|
|
|
|
yes but it needs to be initiate from every property with PropertyName and I think thats the only way
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87֦ʻ6ϣN8ȤBcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-iTV.C\y<pjxsg-b$f4ia>
-----------------------------------------------
128 bit encrypted signature, crack if you can
|
|
|
|
|
I wonder how can i convert 0x10 to 0x11 inside the array. I need u guys help.
byte[] data = {0x47, 0x55, 0x03, 0x10, 0x00, 0x81, 0x00, 0x0b};
|
|
|
|
|
|
or byte[] data = {0x47, 0x55, 0x03, 0x11, 0x00, 0x81, 0x00, 0x0b};
or data[3]++;
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
YEap, that helps me alot ..but if i run my program again, hwo to make my program start from 0x11 instead of 0x10;
|
|
|
|
|
Hi,
you may want to ask a clear question, that should help in getting a clear answer. as my sig says.
Most of us aren't very good at reading someone's mind.
if your problem were that you want your program to behave differenly each time it runs, you need to persist some state outside the process, maybe in a file, or in the registry.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
for(; ; )
if (0x10 == byte }
byte = 0x11
|
|
|
|
|
how could I make double (key events) In C# programming language
I mean
when the user click(press) on the keyboard (a && b)together (maybe 3 or 4 keyevents)
how could I respond to all of them
plz help..
|
|
|
|
|
You may want to refer back to the orignal answers you got here[^], but never responded to.
Don't repost the same question over again. The answers you get will not change.
|
|
|
|
|
how i can create query wizard in c sharp and sort that in datagridview
|
|
|
|
|
You want to developed some functionality like query wizard or you want to developed it ?
|
|
|
|
|
Maybe consulting a book??
Excellence is doing ordinary things extraordinarily well.
|
|
|
|
|
Hi there
I am trying to create crystal reports that can be generated dynamically.
At the moment i am able to generate static reports by using a value from the database.
I have a treeview that has been populated with many different products from an access database. I would like to be able to select any item from the tree view and a report should be shown for that product. I need to generate a couple different report types, ie. quote, invoice.. Would it be possible to create one template for each and reuse them for the different products. So if i wanted an invoice for some product, i could select the product from the treeview and maybe another form comes up asking the format of the report and i could specify invoice there.
If anyone is able to help me with this I really would appreciate it.
Thanks
Chris
|
|
|
|
|
Can Someone help me in creating a pattern to match for a for loop statement with these kind of examples:
for(int abc=0; abc<25; abc++) Console.Write("Hello World");
for(int abc=20; abc>=0; abc--) Console.Write("*\n");
for(int abc=1; abc<=10; abc++) Console.WriteLine("{0}", abc);
It's only for a simple for loop statement just like the examples above...I'll use the pattern for parsing a for loop statement...
|
|
|
|
|
|
Its not like that...I just can't understand completely how to create a pattern. I don't know how to use the characters like '^', '*', '\' etc even if i already searched for reading resources on the web. I'm a bit confused on how to use or create the pattern since there are so many programming applications that uses that.
|
|
|
|
|
gamer1127 wrote: i already searched for reading resources on the web
Did you find this? http://oreilly.com/catalog/9781565922570/[^]
Not an easy read but will tell all you want to know about REs and then somemore.
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
|
|
|
|
|
For the love of all that's holy, we already explained to you in the last thread why a pattern is an unworkable solution to this problem. Don't waste time flogging this horse any more - take a look at Parse trees and AST; they are the solution to the problem.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|
|
Looking at this and your previous thread (and starting a new thread isn't likely to get you any better answers than before) I think you're approaching this wrongly.
For best flexibility, and to really capture all the variations of possible "for" statements, you should look at a simple parser. They aren't hard to write, and by using the correct syntax definition you can easily check for all possible legal statements. I remember compiler development was part of our course at uni, and even though I've never had to write a compiler in anger, the tricks and techniques have come in useful in other areas.
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
Hi,
I am importing data to Excel sheets from Database. For this, I am using datareader. The excel sheet template has some macros and few formulae calculated and its not the normal excel worksheet. so I have to write the data into the excel sheet only if the particular cell is allowed to write. If not, the data shouldn't be imported.
so, for this, I have a XML file which says from which column i should start writing and which row it should stop, I have done for many sheets. But in one sheet, I have first cell of the row is "readonly" and the rest are write access permitted.
As, I get entire row from DB using Datareader, I am stuck up to write to other cells, except for the particular cell.
I am attaching the code snippet for reference. \
Please help me in doing this.
Sample ::
if (reader.HasRows)
{
minRow = 0;
minCol = 0;
Excel.Workbook SelWorkBook = excelAppln.Workbooks.Open(curfile, 0, false, 5, "", "", false, Excel.XlPlatform.xlWindows, "", true, false, 0, false, false, false);
Excel.Sheets excelSheets = SelWorkBook.Worksheets;
Excel.Worksheet excelworksheet = (Excel.Worksheet)excelSheets.get_Item(CurSheetName);
// Process each result in the result set
while (reader.Read())
{
// Create an array big enough to hold the column values
object[] values = new object[reader.FieldCount];
// Add the array to the ArrayList
rowList.Add(values);
// Get the column values into the array
reader.GetValues(values);
int iValueIndex = 0;
// If the Reading Format is by ColumnByColumn
if (CurTaskNode.ReadFormat == "ColumnbyColumn")
{
minCol = 0;
// minRow = 0;
for (int iCol = 0; iCol &lt; CurTaskNode.HeaderData.Length; iCol++)
{
// Checking whether the Header data exists or not
if (CurTaskNode.HeaderData[minCol] != "")
{
// Assigning the Value from reader to the particular cell in excel sheet
excelworksheet.Cells[CurTaskNode.DATA_MIN_ROW + minRow, CurTaskNode.DATA_MIN_COL + minCol] = values[iValueIndex];
iValueIndex++;
}
minCol++;
}
minRow++;
}
} SelWorkBook.Close(true, curfile, null);
This piece of code reads the data from DB if the reader has rows.It then opens a new preloaded excel template file and assigns the reader data to the Values object. Then for the header length (HeaderData.Length) in XML file it writes to the each excel cell and finally it saves the file and closes. The location where the data is written is excelworksheet.Cells[CurTaskNode.DATA_MIN_ROW + minRow, CurTaskNode.DATA_MIN_COL + minCol] = values[iValueIndex]; // Actually a check needs to be performed b4 this whether to write into cell. i'm not able to do it.
Please help me in resolving this.
Thank You,
Ramm
|
|
|
|
|
Hi,
I am working on a windows application. The requirement that's troubling me is I have an MDI form(Parent form) using which I can navigate to other forms.The view should be in such a way that when the user clicks a menu item--Users Management the window should not open seperately but with in the form. A very good example for this is in web application we have master pages which is common for all the pages. when the user clicks a link only the content in child page changes.
Thanks in advance
|
|
|
|
|
two options that come to mind,
1) Using a tabbed form
2) Panels, then hide and show the panel you want
Weight loss Target
Weight at start [1/Feb/2009] 127kg
Weight now [31/Jul/2009] 107.7kg
Target weight : 80kg
Only 28 TO go hope to be there by March Wish me luck!
|
|
|
|