|
tell te exception or error u r getting
|
|
|
|
|
i want to build a menu bar which contains options like
"new" "save" "save as" "open" "print"
i want that text and images (both) should be dispalyed
setting text is not a problem but i dont know how to bring icons in menubar
plz help
code snippet will be very helpful
|
|
|
|
|
|
i have built a dll in .net and i have refered that in my vb6 application but when i try to create an object of that class it says "file or assembly name or one of its dependency was not found". why is that. i have already refered the class in the project. Can any one help me.
|
|
|
|
|
Hi All
I have a project which uses a treeview to the left of the main form. The tag of each treenode contains one of three different objects. Each object contains different fields of data. I am looking for a tidy way to display the appropriate controls on the right hand side of the form depending on what object is stored in the node. I can see that I could show a different form each time but I do not want an MDI like interface. My ideal would be that the controls to the right just change. Apoligies if this is trivial - I am new to vb.NET
thanks in advance
Jon
|
|
|
|
|
What you could do is make a panel for each unqiue ui view. When the tree view node is clicked you remove the old panel and add the new panel via the controls collection on the form.
Forever Developing
|
|
|
|
|
Hi Nicholas - how would I do that please?
thanks
Jon
|
|
|
|
|
Can i call a dll made in .net in vb6. My point is that we cannot call code written in managed environment(.net) in unmanaged code(vb6,c etc). Am i correct or is there a way to call managed code in unmanaged env.
|
|
|
|
|
i've been able to refer the dll in the vb6 project.
|
|
|
|
|
|
I first created a type library of the ,net project and then registered the assembly by using regasm. Then i refered the library to the vb6 project. then when i tried to create an object of the library first it gave me this error
"MSCOREE.DLL have been loaded"
firts copy
unknown
second copy
c:\windows\.....\mscorwks.dll
this is typically caused by having a registered mscoree.dll that is different from the one that is statically linked with the application
and the next error that follows
"cannot create a file when that file already exists"
i ran that project again and then i start recieveing these messages "ActiveX component can't create object" which is understandable. But when i tried to register the dll with regsvr32 cmd it again gave me error
"Dll was loaded but DllregisterServer entry point was not found. The file cannot be registered."
Am i doing something wrong?
|
|
|
|
|
Nothing could be further from the truth. There is nothing stopping you from creating a component in managed code and calling it from unmanaged code.
Exposing .NET Framework Components to COM[^]
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I first created a type library of the ,net project and then registered the assembly by using regasm. Then i refered the library to the vb6 project. then when i tried to create an object of the library first it gave me this error
"MSCOREE.DLL have been loaded"
first copy
unknown
second copy
c:\windows\.....\mscorwks.dll
this is typically caused by having a registered mscoree.dll that is different from the one that is statically linked with the application
and the next error that follows
"cannot create a file when that file already exists"
i ran that project again and then i start recieveing these messages "ActiveX component can't create object" which is understandable. But when i tried to register the dll with regsvr32 cmd it again gave me error
"Dll was loaded but DllregisterServer entry point was not found. The file cannot be registered."
Am i doing something wrong?
|
|
|
|
|
Hi all,
How can my VB.NET program checks whether the MS Excel is installed on the machine. Is there any .NET library that let me to check whether particular application is installed on the computer?
Thanks in advance.
|
|
|
|
|
You could do one of two things.
1) You could search for the installed files. Excel.exe
2) You could try an instance the excel object via com.
Forever Developing
|
|
|
|
|
Hi,
I would like to try the second approach. However, how do I know I failed to create the COM instance is the error that the machine is not installed the MS Excel?
Thanks for replying.
|
|
|
|
|
Put the code in a Try/Catch block! Believe me, if Excel is not installed, it'll bomb as soon as you try to create the object.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Thanks for reply.
But there are many possible reasons for failing to create an instance of COM in TRY .. CATCH... How do I know that error is caused by the MS Excel not installed?
|
|
|
|
|
Yes there are and that's why you check for the exception type in the Catch code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have been tasked with writing some code to support several internal users using VoIP. The requirements on the server side call for me to create a PBX style system that allows an operator to answer incoming external calls and forward them to their VoIP extensions. On the client side, the requirement is to be able to connect to the server and make internal calls to other users of the VoIP software. Any Ideas???
Thanks
Douglas Davis
Xenolith Technology Group
|
|
|
|
|
|
I'm having problems updating an SQL database from a web service. i think the problem is permisions although i could be wrong.
I'm pulling the data from the service into a datagrid, editing then sending back to update database, the data never changes.
im using VS to build the relevent dataAdapters conn etc
code....
Web service
'this is the call to receive the jobs from the service and this works fine
_
Public Function GetJobs() as JobsDataset<br />
dim ds as new JobsDataset<br />
JobsAddapter.Fill(ds,"Jobs")<br />
return ds<br />
end function
'ok once i've got the data i bind to a data grid, make some changes then send the dataset back.
'This is where the problem happens ,,, ive got error handling in the sub
' but it has no errors it steps through the code and every thing seems to work
' but the data is not updated
Public Sub UpdateJobs(ByVal dsJobs as JobDataset)<br />
If Not(dsJobs Is Nothing) then<br />
JobAdapter.Update(dsJobs)<br />
dsJobs.AcceptChanges()<br />
end if<br />
End Sub
Ive added ASPNET to the SQL Server and i think the permisions are correct but
im sure it's permisions thats causing the data not to b writen
any help would be great
|
|
|
|
|
In my UserControl I have several classes and some of which are Public because the UITypeEditor requires them
to be Public when using the editor to add members to my collection during design time in the IDE. Not a problem
there but when I add my UC to a test project all the Public classes are added as "separate" controls in the toolbox.
Is there a way to limit what is exposed in the toolbox other then making the classes Private or Friend?
Thanks for any help.
|
|
|
|
|
I got the answer on another forum.
<system.componentmodel.toolboxitem(false)> _
Public Class MyClass
'
'
'
End Class
Enjoy
|
|
|
|
|
How do you format DateTime values in a comboBox to display the date only without the time ("mm/dd/yyyy") in the text box as well as in the list. The ComboBox is bound to a datetime field in MS Access (Jet.OLEDB.4.0) ?
Thanks very much.
|
|
|
|