|
Dear All,
Iam new to c# window application and also for COM.I have a COM component
which is developed in Visual Basic.Now i want to use this component into
my c# window application.How can i register and use.The COM is in the form
of EXE not in the form of DLL.Please help me out on this.
Thanks & Regards
Veeresh
i want to join this group
|
|
|
|
|
Hi,
The SyncFusion technology can help you please search for that.
Thanks a Lot,
Aleem Mohammad
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
RegSvr32 is used to register COM components, but it your case, it may not work. If this is an .EXE COM server, then the ojects it exposes may not be available at all until your start that .EXE. You won't be able to set a reference to that servers exposed classes, so you might end up using late-binding to get at them. This is not a preferrable situation for someone who is only starting out in C# or VB.NET.
BTW, you asked a question about C# in a VB.NET forum...
|
|
|
|
|
veereshIndia wrote: Now i want to use this component into
my c# window application
You'd be better off asking in the C# forum.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
he'd be better off not asking it in FOUR forums though.
Blog link to be reinstated at a later date.
|
|
|
|
|
It would be nice if there was a ban function to punish people who do so. Whether the ban is temp or perm is a toss up, but the penalty factor would be nice.
Any suggestions, ideas, or 'constructive criticism' are always welcome.
"There's no such thing as a stupid question, only stupid people." - Mr. Garrison
|
|
|
|
|
Yep. His question should generally be in either the C# forum, or .NET Framework forum. Pick JUST one, not loads of them. It cannot really be that hard.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi,
If he asks again in any other forum it becomes like duplicate one, either it is C# or VB.Net converting a COM component process is same, instead of asking him to post in another forum, we can just understand his problem and answer him with good answer.
Isnt it a good Idea?
Thanks,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
indian143 wrote: we can just understand his problem and answer him with good answer.
Isnt it a good Idea?
... says the one who is asking the same question over and over again.
Btw, people are asking him to post in one forum and not asking the same question in four forums.
-enter abuse of your choice here-
|
|
|
|
|
Hi,
Yep I did it friend but once upon a time, now I am not doing it because I came to know how to behave in this forum. I got much experience in using this forum.
Any way thanks for bringing my mistakes in to my view.
Thanks a Lot,
Aleem Mohammad.
Thanks & Regards,
Md. Abdul Aleem
NIIT technologies
|
|
|
|
|
No, it's not. If you post a question in multiple forums, you can get different answers, which isn't really a good thing. You're taking away a continuity of discussion, where the good answers are weeded out from bad ones, and more detail required of the OP is lost in one discussion, but exists in another, leading to misinformation on one discussion thread.
|
|
|
|
|
Hi to all,
In Gridview i added the text as No Data Found in EmptyDataText Property of a gridview.
it is working fine when there is no data it should display that message but initially
when page is displayed
that time No data found is displayed which should not happen.
When we select Territory Name & Click on View Button that time that gridview is display
and shows all territories if not available then No Data Found .
Please suggest me how to solve this gridview problem
|
|
|
|
|
Why not set the emptydatatext property at runtime then you control the information it displays.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
If you set this property at design-time, then run your app, of course this is going to be displayed before you bind the grid to a dataset. Set the property only after you do a fetch and return no, or incomplete, results.
|
|
|
|
|
Hello friends,
In my MS access application,i want to move Subfolers from a folder across network using VBA.
I used the below code to move subfolders and files from one folder to another.
Dim fso, fld, subf
Set fso = CreateObject("Scripting.FileSystemObject")
Set fld = fso.GetFolder("C:\Hold\")
For Each subf In fld.SubFolders
subf.Move "c:\Data\"
subf.Delete True
Next
Set fld = Nothing
Set fso = Nothing
But these won't work , if the folder is across network. Getting "permission denied" error..
How can i move subfolders and files across network
modified on Tuesday, November 18, 2008 3:12 AM
|
|
|
|
|
jishbalan wrote: But these won't work , if the folder is across network. Getting "permission denied" error..
Did you read the documentation on the FileSystemObject?? If not, I highly suggest doing so.
You got the permission denied error either because you don't have write/create permissions in the target directory, or the target directory files/folders are ReadOnly and you're trying to overwrite them.
|
|
|
|
|
Hi everyone
How can I use a datagridview in vb.net with middle-tier business logic to pass data for Insert, Update and Delete operations. My BLL and DAL are completed, but I don't know how to pass the data from datagridview back to the BLL. I have set the datagridview by passing a dataset to read data through BLL/DAL but do not know how to use for CUD operations.
Your help please
|
|
|
|
|
When the CRUD operations are completed on the DGV you need to pass the datasource (table) back to your BLL. Your BLL then needs to inspect the rowstate for each row and deal with it appropriately.
I never allow CRUD in any grid control, I always force the user to double click a row and open a dialog to do the CRUD. This allows much finer control and reduces a lot of the angst of using grids. You can then reload the grid table from the database or duplicate the changes in the grids underlying datatable (I almost always reload).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Thanks Buddy
I'll try this and thanks for the advice too
|
|
|
|
|
|
Thank you for the spetp by step instructions, this was really help full for me.
|
|
|
|
|
Am Glad it Helped.
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Hi Vuyiswa
I have the BLL and DAL all in codes in class objects. Although I have managed to convert your design time controls like datasets and adapters to codes. I am having difficulty in making the following CheckRules codes to work with my datasets in class objects.
I understand the DAL is Prop_DAL but don't know what to substitue for dsProperty and also Dim row As Prop_DAL.dsProperty.ClientsRow
Can you please clear out this for me.
Private Sub CheckRules(ByVal dsdata As Prop_DAL.dsProperty)
Dim strMsg As String
Dim row As Prop_DAL.dsProperty.ClientsRow
'Iterating through the Dataset and Checking the Rules
For Each row In dsdata.Clients.Rows
If row.RowState = DataRowState.Added Or _
row.RowState = DataRowState.Modified Then
'Start Checking the Rules now
If row.Client_Name.Trim = "" Then
MsgBox("Name Cannot be Empty")
End If
If row.Client_Address = "" Then
MsgBox("Address Cannot be Empty")
End If
If row.Client_ID.ToString.Length > 13 Then
MsgBox("ID number must less than 13")
End If
End If
Next
If strMsg <> "" Then
'throw a new ApplicationException
'with our Custom Error message in it
Throw New ApplicationException(strMsg)
End If
End Sub
|
|
|
|
|
hi Galle
Sorry For a Late Answer, bussy uhh
, to Answer your Question Marks ("Nice English")
The Code Below was based on a Wizard. This was my First Demostration of the N-Tier, and from there i demostrated on how to code all that the wizard can do for you and do what the Wizard cannot do. Now i see you have a Problem interpreting this in vb.net , because i have written my other articles in C#.To go back to your Question
If you Look at the Following Code
Private Sub CheckRules(ByVal dsdata As Prop_DAL.dsProperty)
if i were to Write it Without a wizard, it would look like this
Private Sub CheckRules(ByVal dsdata As Dataset)
and in the Following, remember that my table name was Client name.
Dim row As Prop_DAL.dsProperty.ClientsRow
In this code , we are creating a row object. So the difference here is to create a row object and dont reference it to the DAL wizard Dataset.
Dim row as dsdata
Hope this Helps
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Thank you...
I did go through your C# codes and they are very good. Hey, your comments about my english "Nice English" was it a joke? I am not offended, if not so.
|
|
|
|