|
You can use the WebBrowser control. If you just want the viewing functiopnality it's straightforward. If you want to perform more
advanced OLE(inserting objects, getting references to objects and more) it's quite advanced stuff(compared to how it was done in VB6). For more information go to www.msdn.com(microsoft developer) and search for 'Web Browser' and you will find a number of articles about using the Web Browser in a windows form.
Hope this will help you!
LLINF
LLINF
|
|
|
|
|
Hi guys,
so, i've got a datatable with informations from a sql server (column schema). I know that i can save the changes with a DataAdapter, but I need this only when I work with sql statements. My hole application use this solution:
Dim str As String = "Provider=SQLOleDB; Data Source=localhost; Initial Catalog=NorthwindDub; User ID=; Password=$"
Dim conn As New OleDb.OleDbConnection
conn.ConnectionString = str
conn.Open()
Dim schemaColumn As DataTable
schemaColumn = conn.GetOleDbSchemaTable(OleDb.OleDbSchemaGuid.Columns, New Object() {Nothing, Nothing, ListView1.Items(ListView1.SelectedIndices.Item(0)).Text(), Nothing})
I never need a DataAdapter...but now, i will save the changes in den datagrid. I know that we can save with dataadapter.update but dataadapter needs an sql query.
Are there any solution to ave changes in the datagrid without a dataadapter which needs sql statements?
(sorry for my bad english, i hope that you understand what i mean)
|
|
|
|
|
I'm just learning ADO.NET from books and each one shows a Command object, whether you use the DataAdaptor or not. It looks like you still need to write an UpdateCommand and/or InsertCommand to transmit the changes back to the data source. So you will still need SQL.
|
|
|
|
|
Hi,
Is it possible to retrive and save registry setting from a different application using the GetSetting and SaveSetting methods in VB 6
|
|
|
|
|
Since those functions don't have control over where you can go in the Registry, no.
You'll have to call into the Win32 API Registry functions directly to get this kind of functionality.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
It depends.
If they are in the "VB and VBA Applications" under the HKEY_CURRENT_USER than you can (if you know the name of the app), if not than you cannot.
Keep in mind that that keys is normally used only by apps written in VB6.
You can still use the API calls to read all the other registry subkeys.
Briga
|
|
|
|
|
I have two system with vs.net installed on both. I want one of my system to trust the gac of another or use the gac of another only. can i do that.
|
|
|
|
|
No. Think about the huge security violation this would be. Why would you want to?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I think i may not be able to convey my message, sorry for that. whta i want is a central .net server where everyone will put there custom build assemblies and can refer those assemblies to their project. This way a lot of development time will be saved. i'm not sure whether this can be done or not. what do you have to say about this.
|
|
|
|
|
Yeah, unfortunately, there is a large difference between running the code off of the local machine and running it from a remote machine. By default, code running from a remote machine is under far more security restrictions or, in .NET Framework terms, is untrusted code. For instance, access to the file system is severely restricted... I think you can figure out why.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Yeah I know, but is there any way to get over this. Is it possiable to create a central .net server from where everyone can refer and put their assemblies.
|
|
|
|
|
No, there isn't. The fusion loader on your machine will not trust the GAC of another machine. There is no way to force it to do so.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
This means that if i built a custom assembly and put it in my gac, and someone else wants to use that assembly, it cannot be used by that developer on his machine.
|
|
|
|
|
Nope. The best way to do it is some server based version control software, like Source Safe. Your custom assembly would be part of his project, as a project, not just a .DLL in his GAC.
Or, you can copy the assembly over and install it into that machines GAC. But, you'd probably run into some versioning problems as well as deployment control problems copying it to every ones machine that wants to use it, while you update your assembly's code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
|
hy everyone!
I do want to do the following: I want to split strings using the tabstop as a seperator, so I do need something like this
stringarray()=Split(mystring,tabstop)
but I have no idea which ascii caracter I have to use to do so.
Because Word or Windows uses the a special character to display non printable characters.
Could anyone help me please? Because I do need this to get the chapterindizes out of an index.
Thanks!
Stephan.
|
|
|
|
|
Tab is ASCII character 9.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
there is also a vb constant for this: vbtab
Also useful is vbcrlf
Also, the helpfiles has tables of the ASCII characters as reference for console applications. Look up the CHR() or ASC() function in the index and there's a link to them.
|
|
|
|
|
Whoops! I forgot about that! Hardly ever use vbTab ...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi....i need to change the color of a picture for instance an arrow. The background of the pic is white, only change the picture(arrow) color. I need to do it in a way that once i click on the pic of the arrow, the font color box will appear(this part i know how to code it) and when select the desired color, the desired color will appear in my arrow. It is not inserting another pic of arrow but just the color of the arrow. Can anyone help me? I really need help!!!!Thanks........
PrOgRaMmInG....sTrEsS & kIlL bRaIn CeLlS
|
|
|
|
|
how to track key ascii value of key button pressed. Thanks;);)
|
|
|
|
|
Use the keypress or keydown event of the control.
if u want to track them at form level don't forget to set the keypreview property of the form to true
Computer... Programming... What That
|
|
|
|
|
Well that's very vague!!!
Where do you want to check?
Inside an app? A form? Over the whole PC?
In a form you can use the relative key (up, down) event of the form in VB.NET or VB6.
If you want to intercept every single keystroke on the PC then it's tougher and you have to hook an application of yours to the system through API calls. If you browse around you'll find some free DLLs that will do the job for you making it much more simple for you. Just make sure you get the correct one for your OS since most of them are OS related.
Briga
|
|
|
|
|
I am trying to right a VB code that requires passing a function as an argument to another function. Any suggestions?
|
|
|
|
|
VB6 or VB.NET? Function pointers are not supported in VB6 code. Well, kind of. You can pass a function pointer to a C++ .DLL. But a VB6 function can't accept a funtion pointer as a parameter.
VB.NET requires the use of delegates to accomplish this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|