|
You do realise that a "notepad file" is just a plain text file?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
is your problem solved .
if not send me message.
i can solve it.
rtytryt
|
|
|
|
|
hellow to all ..
i am generating a crystal report that have double rows that i would like to remove , let say i have
ID - NAME - ADDRESS
1 SSS SSSSS
1 EEE EEDEE
1 TER WEWEE
i would like to remove two rows , and keep one
have can i do this in crystal reports
thxx
|
|
|
|
|
Hi, I need to perform Shallow and Deep copies in my VB.NET application. Ive seen several code intensive methods to do this. Anyone know whay Microsoft has not just given a basic copy object command? Am I missing something?
In my application I have several User Controls and the user needs to cut and paste the controls to build up a screen of data that is then saved. The user often need to copy an existing instance of a user control and then modify it and save it. The amount of code I need to manually write seems intense.
Are there 3rd party extension to VB.NET that offer help in this area? As aI said b4 am I missing something?
I want to be able to do something like...
dim newObject as ucMyControl
newObject = new list.selecteditem
I know the keyword, NEW, is for new instances of classes but it would be handy if it created a new copy of a class as instanciated.
Cheers,
Kadi
|
|
|
|
|
You copy objects in .NET by "cloning" them. You can make your classes cloneable by implementing the ICloneable[^] interface.
A shallow copy is easy and can be done in 1 line. You just need to call the Object.MemberwiseClone()[^] method. All objects have this method.
Public Class Foo : Implements ICloneable
Public Function Clone() As Object Implements System.ICloneable.Clone
Return Me.MemberwiseClone
End Function
End Class
If you need to do a deep copy, then you need to explicitly create new objects within the above Clone() method and assign them to the clone's member variables.
|
|
|
|
|
Thanks for the reply. Do people manually do this for things like undo and redo? I have a control which has a defered update to a data collection class. If I want to undo the last change or x changes to the control do I manually code the undo? I had kinda hoped I could just pop it on a stack and pull it off again.
Kadi
|
|
|
|
|
I've never implemented undo/redo functionality before, but it sounds like you've got the right idea.
Before you change the state of an object, you should clone it and push it into the Undo stack. When the user does an Undo, you should pop the object out of the Undo stack and overwrite the current object with it. The only gotcha you have to worry about here is if there are any objects still referencing the Undone object. If this is the case, then you may need to hold the undo-able object in some kind of container class so that you don't have to update all of the references. In fact, the container class should probably implement the Undo functionality.
I found an article on CodeProject covering an undo/redo framework written in C#. Perhaps it might be of use to you.
http://www.codeproject.com/csharp/undoredobuffer.asp[^]
|
|
|
|
|
I want to select a picturebox control at runtime. Like in MS Word, If we insert any image, we can select it and perform operations on it (crop, rotate, resize, etc.).
I have created one user control in which I allow user to add imges (Placed in picture box of 100 X 100 size).
I could move the control at runtime by capturing Mouse related events. Now I want to resize it say by dragging the small sqares that should appear at its corners.
Can I use GDI+ to achieve this? Can anybody suggest me any code or APIs?
Thanks in advance...
Anil
|
|
|
|
|
Hi,
Im using VB 6.0.. I try to Print few words to the Zebra Label Printer..But doens't seems to print at all..
COde is :
Printer.Print "^XA"; Printer.Print "^MD10"
Printer.Print "^LH0,0^FS"
Printer.Print "^BY2,3.0^FO20,2^BCN,54,N,Y,N^FR^FDMirudhubashini^FS"
Printer.Print "^FO20,59^A0N,28,37^CI13^FR^FDWomens center^FS"
Printer.Print "^FO20,65^A0N,28,37^CI13^FR^FDCoimbatore^FS"
Printer.Print "^PQ1"
Printer.Print "^XZ"
Printer.EndDoc.
Either I see Status in Printer Queue as "Spooling".. and if i give Printer.Enddoc ..Nothing I can see in Printers Queue
All ^XA and similar words are for Label Printer ZPL Language
Pls help
-- modified at 6:01 Saturday 6th May, 2006
|
|
|
|
|
You are trying to send a control character but it is sending a literal string with an ^ in it.
'--8<------------------------
Ex Datis:
Duncan Jones
Merrion Computing Ltd
|
|
|
|
|
Hye All ,
I 'm facing a problem in changing the DSN file at run time , I ' m working on Crystal Report 8.5 , I ' ve a report which comes from a procedure , I 've 2 Year Wise SQL Database ,At Run Time User Selects the Year and my database connection gets change now I want to change the report DSN at run time so that I won't be needing to change all my Reports. I just want to change DSN File Values (User Id, Paddword,Server , database name )on run time , Can Anyone help me ?
Mannu
|
|
|
|
|
hi all
I want to disable Guest Account in WinXP in VB.can anyone tell me the API to use??
thanx in advance
"Every morning I go through Forbes list of 40 richest people in the world. If my name is not in there, I go to work..!!!"
-- modified at 5:07 Saturday 6th May, 2006
|
|
|
|
|
if there's one row in the datagrid. and i want the value of row(0) column(0)
using DataGrid1.Item(DataGrid1.CurrentRowIndex(), 0)
what i want here is to delete the current selected row.
it's working fine, unless the final row....
the error is : out of range
so what i can do.
Militiaware
Faris Madi
|
|
|
|
|
Code looks choppy there; shouldn't it be like this:
myDataSet.myTable.DefaultView(myDataGrid.CurrentRowIndex).Delete()
myDataSet.myTable.AcceptChanges
??? I wouldn't actually delete stuff from the grid as it is the underlying dataset you're trying to manipulate. Also make sure you apply "AcceptChanges" or the DS will not delete the record.
|
|
|
|
|
in other words...
i want to get the value of column(0) and row(i)
when i try this (column(0) row(0)), an exception occure "out of range"
Militiaware
Faris Madi
|
|
|
|
|
Do you want to get the value in a cell or delete the row? To simply get the value:
bindingContext(myDataset, "myDataTable").Current("myField")
This will give you the value in the current field.
|
|
|
|
|
Hi
I am using WMI to get information about running processes on a local machine in vb6. But in the case of cpu_percantage, it always shows 99% for wmiprsve process (which is in fact collecting data) and all other processes have 0% cpu usage!
I checked it in Task Manager, it shows only 2% for the named process and shows reasonable usages for other running processes....
Is there any way that I can get cpu percentages from WMI? Or any other ways to do so in vb6?
Thanks
|
|
|
|
|
you can change the header of the column in datagird in (Web Project)
but in Win Application and datagrid doesn't provide the ability to change the headers....
my question, how to change the header?
Militiaware
Faris Madi
|
|
|
|
|
try opening the help file.
look for "DataGridTableStyle.MappingName Property" it may prove to be exactly what you are looking for.
modified 1-Aug-19 21:02pm.
|
|
|
|
|
that what i'm looking for..
in the web datagrid control you can find it....but not in the win datagrid control.
i tried to change the headers from the datagrid .... no solution where found.
i tried to change the headers from the dataset .... no solution where found.
and i believe there's a soution.. but where.....?????
Militiaware
Faris Madi
|
|
|
|
|
i have developed a web application in which i have make use of a single web form which will ivoke web service. In that form, i have used 3 textboxes and a dropdown list box. In that list box i have included 4 services as items. once if i choose a service/ operation, it does the operation which i want but when i try to choose another service/operation, it automatically doubles the amount of items already added into that drop down list box. y it happens? can any one know abt it?.. if so can u plz tell me that what i have to do for eleminating that?
thanks,
with regards,
K.Vijaya
|
|
|
|
|
It sounds like you are adding the items on each postback. You should only do that when you create the page the first time, e.g. when IsPostBack is false.
Translation:
it snd lk u r addn d items on each postbk. u shd only do dat when u create d page d first time, e.g. when IsPostBack is false
---
b { font-weight: normal; }
|
|
|
|
|
ya its working fine now.. what u gave here is really helpful to me.
thanks a lot
K.Vijaya
|
|
|
|
|
My computer used to give me low virtual memory warning when i work in vb.net and sql server 2000 simultaneously.
Then i incresed the size of virtual mem. After that the warning didn't come again. But now it has started again.
Plz smbdy tel me the solution to this problem.
Plzzzzzzzzzz
Thanks.
Swati
|
|
|
|
|
Private Sub TreeView1_AfterSelect(ByVal sender As System.Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles TreeView1.AfterSelect<br />
<br />
TamakiLabs.Show()<br />
Lab131.Hide()<br />
Lab134.Hide()<br />
Lab203.Hide()<br />
<br />
If TreeView1.SelectedNode.Name = "Lab 723-131" Then<br />
Lab131.Show()<br />
ElseIf TreeView1.SelectedNode.Name = "Lab 723-134" Then<br />
Lab134.Show()<br />
Else : Lab203.Show()<br />
End If
im wanting my system to show 4 different datagridviews, yet it only shows Lab134 datagridview no matter which node i click. I dont where my code is wrong, can someone please give me a clue as to where i have my mistake in my code.
|
|
|
|