
quwiltw
Leaders
-
Posts
493 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by quwiltw
-
Yep, I saw that. I figured someone had surely gotten around it somehow. I don't even know where to start.
-
Anyone know if there is a way to get the "What's This" question mark in the title bar of the form to co-exist with the minimize/maximize buttons? They appear to be mutually exclusive. I can currently turn on the "What's This" only if I disable the minimize/maximize buttons.
-
This is what I mean, but it's even better. In many cases, the code will be able to be the same in both thick and thin client. For a simple example, if I had a calculator business class that I wanted to expose in both clients I could create textbox controls in each and the event handling code would be the exact same. Private Sub cmdCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdCalculate.Click Dim calc As New Calculator() txtAnswer.Text = calc.Add(txtFirstNum.Text, txtSecondNum.Text) End Sub I just created this sample and copied this cmdCalculate event handler from the winForm app to the webForm app and it works without modification. Now obviously state issues will eventually creep up but no doubt this is cool stuff.
-
Could be wrong but I think you've got two choices: Totally .NET: Write your own parser for the incoming text file and use ADO.NET to insert the rows into Excel or If you don't mind the performance hit of COM interoperability, you could just set a reference to the Excel Object Model and use Excel's import functions. If you go with option 2 you'd likely have more luck on the VBA forum for someone that knows the Excel Object Model inside and out. This is just my guess, no experience with this sort of thing...
-
Kinda... I must admit, so far I've stuck with SQL Server, MSDE and Oracle -- as that's what the app I'm developing has to talk to. Since the ODBC Provider implements the same interfaces, should be no different though. http://www.microsoft.com/downloads/release.asp?ReleaseID=35715&area=search&ordinal=4
-
Geez... it was just a snippet of code, relax dude.
-
There's a good sample project on this included in Visual Studio.NET. Have you taken a look at C:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Samples\Applications\Wintalk\vb this project?
-
I'm know nothing of Informix, but do you have a driver installed for it? I would have expected your connection string to look more like one of these. http://www.able-consulting.com/MDAC/ADO/Connection/ODBC_DSNLess.htm#ODBCDriverForInformix
-
Yep it's supported through OleDB. This should get you started. There are also plenty of tutorials on the net for this too. The only difficult hurlde to get over is no more recordsets. So you might want to read up on ADO.NET and datasets/datareaders/etc. Dim cn As New OleDb.OleDbConnection() cn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= c:\some\path\to\data.mdb" cn.Open() Dim sql As String sql = "select * from df_topics" Dim dr As OleDb.OleDbDataReader Dim cmd As New OleDb.OleDbCommand(sql, cn) dr = cmd.ExecuteReader() [edit]Added vb tags...[/edit]
-
I've got a similar scenario that my team is tackling right now. .NET is clearly the best option you've got. By working with a common business layer and event model, much of the presentation code will be the same. For example, with most events, there's no difference from winform to webform.
-
I just wanted to say "Thanks" to whoever is responsible for breaking this off into a different site. I think this new site will fill a *huge* void in the .NET developer community. Other .NET forums that I've found either have no community feel to them or they have low quality posts, so I'm looking forward to the future of these forums, which with the cross-pollination with the VB forums will likely be both high-quality and a community feel. Once again, thanks all!
-
Awww Shucks... looks like I've been beaten to the punch... and you got the same extra elements I got.
-
Can you post what your trying? I just had a crack at it and it seems to work with one quirk. Dim delimiter As String delimiter = "***" Dim myString As String myString = "hello***world***again***trying" Dim strAry As String() strAry = myString.Split(delimiter.ToCharArray) The only problem with what I have is that it splits into 10 elements instead of 4 but this is my first try.
-
This question isn't really ADO.NET specific, I just never questioned it with regular ADO. My question is how secure is the connection to a database using ADO.NET? There are numerous articles on authentication (best approaches, etc), but I'm curious as to the actual data communication over the wire. If some cracker had a packet sniffer, what info could they get? Specifically, when I create a parameter object and add it to the command and execute it, if someone was looking at the network traffic could they get that data or is it encrypted or what? Any answers or articles would be appreciated.
-
it will make an exe that needs the .net framework to run. are you familiar with Java? while in the details (search research.microsoft.com) of the CLR are quite a bit different, at 30,000 feet, they are fairly similiar. Not sure what details you want really, .net programs aren't compiled to machine code, instead to Common Intermediate Language which the CLR handles. Take a look at this and see if it answers your questions. http://research.microsoft.com/~emeijer/papers/CLR.pdf
-
For the icon, right click on the project and click properties. Then under the build item on the tree you should see the ability to change the application icon. Deployment is actually another project in .NET. Just go to File->New->Project then select "Setup and Deployment Projects" That help?
-
divil, do you have any specific articles in mind? I've been unable to find any really detailed info on GC that satisfies my curiousity. I've looked through research.microsoft.com to no avail.
-
Anyone know how to get a list of all machines in the local broadcast domain that is listening on a particular port? I want to populate a combo box with all of the active sql servers on our domain. I know what port it listens on but I don't know how to send out a broadcast request for any computers that happen to be listening on that port. It's just like when you register a new sql server in enterprise manager and it comes up with a list of available servers. All the .NET framework classes I've found support more point to point socket connections rather than more of a querying the network-type thing. Any pointers would be appreciated. Thanks,
-
See if this thread helps... http://www.visualbasicforum.com/showthread.php?s=&threadid=37157
-
Unable to use 'Group' as field name in INSERT or UPDATE
quwiltw
replied to a topic in Database / XML / Reporting
divil's suggestion should work, but I'd offer another one: Rename your column. While sql server gives you a workaround (the brackets), I think it's generally a bad idea to use keywords as column names. I'm sure others may differ. -
After I finally finished my plugin framework, I discovered this article. Thought it might be of use for anyone else trying to tackle plugins/add-ins in .NET. http://msdn.microsoft.com/library/default.asp?url=/msdnmag/issues/02/07/cuttingedge/toc.asp
-
You can read about them here... If you've got specific questions about the reading please ask. There are some really good articles in the "Understanding" section on the left side of that page. http://msdn.microsoft.com/webservices/ Also, a single post per question is sufficient.:)
-
Anyone willing to look at what I've got so far? It's essentially a single solution with 4 projects 1 to define the Plugin Interfaces 1 to implement a IPluginHost and 2 that implement IPlugin. I'm sure the code itself can be cleaned up, I'm more concerned about the sanity of the design. Zipped up, it's ~97k. Let me know if you're willing to review it. EDIT: By the way, I haven't included the config file yet. Currently it inspects the assemblies each and every time.
-
Yep, I can find the implementing class, but it doesn't seem smart to do this each time as I understand reflection is rather expensive. I guess it comes down to either 1) Take any assembly and investigate it for the implementing class, then store the class name in some plugins.config file the first time, then I've got a clean way to immediately launch a plugin. or 2) Make a plugin developer also include a little config file that includes their implementing class name. Having actually typed it out now, option 2 sounds pretty cheesy, I think I'll take option 1 unless you (or anyone else) can think of an option 3/4/5???
-
I've taken a look at the examples for plugin/addins and I've got a prototype of a plugin framework working in VB.NET now. I'm struggling though with one problem. I've created an interface IPlugin with the appropriate methods. The problem is that I have no way of knowing what the plugin developers call thier implementatio of IPlugin. Currently, I'm able to go through the entire plugin class collection and each classes respective interface collections in order to determine which one implements IPlugin and right now, with only small sample plugins, this is no big deal. But as plugins get larger, this gets messy. I would like to have a better strategy for this, like forcing the name of the implementing class to be something I dictate (which I doubt is possible) or something else. I've thought about maybe maintaining a little xml file that contains all the class implementations for each plugin then I'd only have to investigate the entire assembly once per plugin, but this too seems messy. Any thoughts are appreciated.