Jump to content
Xtreme .Net Talk

The One Who Was

Avatar/Signature
  • Posts

    53
  • Joined

  • Last visited

Everything posted by The One Who Was

  1. Greetings, Well, I've kinda hit another wall. I've managed to get past most of my problems. I'm sorta stuck with these security popups, but I've found out that if I do not retrieve the e-mail address from the contact item, outlook won't pop up a security message. The following code I've pulled outta the MSDN site with a lot of digging. I've modified it a bit so that it will ask you which folder to view contacts from. I hope this can be of assistance to someone out there. The following requires you to add a reference to Outlook under the COM folder: Dim oApp As Outlook.Application = New Outlook.Application() [color=Lime]' Get NameSpace and Logon.[/color] Dim oNS As Outlook.NameSpace = oApp.GetNamespace("mapi") oNS.Logon("", "", False, True) [color=Lime]' Get the first contact from the Contacts folder.[/color] [color=Lime]'The following line chooses the users personal contacts, which I wasn't wanting to do, so I created 'a folder picker that is nicely placed in the outlook10 control. 'Dim cContactsOld as Outlook.MAPIFolder = ons.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts)[/color] Dim cContacts As Outlook.MAPIFolder = oNS.PickFolder Dim oItems As Outlook.Items = cContacts.Items Dim oCt As Outlook.ContactItem Try oCt = oItems.Add txtResults.Text &= oCt.FullName & Environment.NewLine txtResults.Text &= oCt.CompanyName & Environment.NewLine txtResults.Text &= oCt.BusinessHomePage & Environment.NewLine txtResults.Text &= oCt.MailingAddress & Environment.NewLine txtResults.Text &= oCt.BusinessAddress & Environment.NewLine txtResults.Text &= oCt.Categories & Environment.NewLine Catch Console.WriteLine("an error occurred") Finally [color=Lime] ' Display[/color] [color=Lime] 'This next line displays a edit box for the selected contact'[/color] oCt.Display(True) [color=Lime] ' Log off.[/color] oNS.Logoff() [color=Lime] ' Clean up.[/color] oApp = Nothing oNS = Nothing oItems = Nothing oCt = Nothing End Try If anyone has successfully pulled an e-mail address outta the contacts list (without raising security flags on office XP SP2) I'd be very glad to hear how you did so.
  2. PlausiblyDamp We would like to target exchange 2K3 standard. But we are currently running 2K. It's up in the air still as to what we will have exactly when (if) I get this working. I've almost succeeded using a references to the MS Outlook 10 COM object, however, I'm fighting with the popup authorization from then Office SP2 security patch. I'd have thought MS would be a little more friendly to their developers when writing software that integrates with their products. We are after all purchasing their products in the first place :D
  3. Greetings, I currently have a billing system completed which stores all the contacts in a DB table, and I'm trying to let lose my ties with the DB a little more and move to exchange. I'd like to store my contacts in a exchange public folder, but I'm having problems accessing this (what seems to be) dark corner. I've first attempted via LDAP, which of course failed since I later read that you have no access to specific items in Exchange through this method. My next attempt was though CDO.DLL and MAPI. From what I've read, this may be my solution, but cannot find any resources available to help me (or the search key words may just be eluding me at the current time =P ). My Q is, does anyone have any experience with this and can point me in the right direction, or know of any reading material on the net (or in hard book form, I don't care at this point)?? I'd greatly appreciate any help I can get with this topic as it'd open many doors for me in what I'm trying to accomplish. Thanks in advance!
  4. :D he prolly can't afford the machine after paying for the VS license! :D That's why I'm still running a PIII 800 512 RAM. But as far as speed goes, I don't have a problem. I think a lot of the problem may also be caused if you use the form designers. I used to use the designers all the time, and as I got more familiar with the little things I now add controls at runtime, and I must say I've noticed a fair bit of difference. WHY?? I dunno. I'll have to chalk that one up the Microsoft's Magic Beans I guess. But if you think VS.net is slow, I've had the opportunity to try out Sun One Studio for Java delevoping, and that is such a pig! It took about 3-4 minutes to load on a workstation with 750 MB RAM and it didn't get any better after it opened. :eek: My Jaw dropped. :eek: It was all built with Java I think. It didn't help me put much faith into Java for desktop developing that was for sure. :p
  5. Ok, I've done some research and... I've discovered .net applications are easily disassembled and the connection string that I've programmatically entered is not safe. There are applications that can skew the IL code making it harder to decompile, as well as encrypt string values in your application making them harder to discover, but they are still not safe from prying eyes. So what I've decided to do is to create a server side service that will run the SQL login verification on the server, and send a response back to the users application. This will keep my password away from prying fingers and allow me to only run the queries and stored procs that I want. It "should" keep my SQL instance safe because I could then close the SQL port I have open to the WWW. However, this is going to take me a while to figure out since I've never made any application like this before. If anyone could help point me in the right direction (links, examples, reading materials ect...) I'd greatly appreciate it. I'd imagine the sockets class is going to be required. Thank you all very much.
  6. Greetings: I'm building a remote application that will verify with our server prior to running. The database it's verifying against is a SQL server. So I've opened the port required to establish the connection. Now, my concern is, how easy would it be for someone to retrieve my connection string? Is the string encrypted at all? Can my .net application be reverse engineered and have my connection string compromised? Is there any way to beef up the security on this if it is a concern? Also, what kind of security measures should I take on the server side? I've assigned the SA account a strong password, and I�ve installed all the latest service packs I could find. I've even had our firewall accept SQL connections on a different port. Just curious if there is anything else I could look into. This application is not a mission critical project, but just the same, I do not want anyone to have access to my connection string.
  7. Greetings Mike: This is a sample of the web config settings I use. Modify them how you like. I believe that it is case sensitive. <authentication mode="Forms"> <forms name="SiteName" protection="All" loginUrl="yourloginpagehere.aspx" timeout="60"/> </authentication> Hope this is somehow usefull to you.
  8. Greetings: I have a question that doesn't really apply to a "dot net" topic, but I'd like to figure it out anyways so if anyone can lend me a suggestion or a direction to look. Our previous developer has created a vb6 application that parses data into a web form. I'd like to store the data that is parsed, and where it's parsed into a xml file. Anyone know of a way to accomplish this with .net? or vb6? Thanks for everyone's time in advance!
  9. Greetings: I'm trying to build a tracker for a certain form on a website. I'd like my application to load up a webpage, let the user click a button then capture the html response where I can break down the code a look for certain key prases that will let me know if the transaction was completed successfully or not. Any suggestions on where to start or what to research would be greatly appreciated. Thank you all in advance! ~~The One Who Was~~
  10. Chopper... You'll need to add a few components to your form: SQL Data Connection (Establishes a connection to the SQL Database) SQL Data Adapter (Uses the Data Connection to execute SQL Statements and return records to the dataset) Dataset (Stores records temporarily in local memory) If you add these at design time, you will find that the wizards are somewhat straight forward. It has wizards to help you create your connection strings and SQL statements. Great tools to help you until you become more familiar with the ADO.NET components. If you want to learn more about creating your own SQL commands, you may want to check out http://www.w3schools.com/sql/default.asp It has some good tutorials on creating SQL Select statements which is your starting point for viewing specific records. **You will need to manually add your tables to the dataset prior to filling it** **Also make sure that your components such as textboxs and grids are Data bound to the dataset to your liking** Once you have created the objects, you can use the following code to pull data to the dataset.... SqlDataAdapter.Fill(DataSet.Tables("TableName")) Once the dataset is filled, you may also use a dataview to further sort and search your records that are in your dataset. (Please note... to use a dataview you must bind your components to the dataview instead of the dataset) There are a lot of good posts as well on this website regarding this. I hope this is of some assistance to you :D
  11. LOL Aye. that would do it. I'm sorry about Jabe. Thanks for the reply. I'll try that out. May save me some money... and then I can buy that other grid control after I pay my income tax! :D
  12. Thanks for the tips. I must agree, the demo seems great =) and not insanely priced :D and for anyone who may be having a problem with the link... http://www.devexpress.com Thanks again for all the replies. I greatly appreciate it!
  13. Yeah, it's really wierd that these column styles would prevent me from using a dataview =/ Thanks for the tip on the datagrid Alex. I'll check it out. I was looking at one from syncfusion, but it was rather pricey for the amount I'll be using it.
  14. I'd like for the user to have the ability to make changes to the datagrid, just not allow add/delete rows in the datatable. (not exactly read only) My apologies for not explaining myself that well. I can work around this so that the newly add/deleted valules aren't applied to the database, but seems somewhat like a sloppy method. I should likely reconsider having separate add/delete forms for this particular section of my application. However, if anyone knows of a way or has a suggestion on how I may accomplish what I'm trying to do with a datatable I'd really like to hear it :D
  15. Yeah, my apologies. The dataview should be listview. lol
  16. Chopper: Could you loop and add each item into the other listview?? Private Sub MoveItems() Dim objTemp as Object For Each objTemp In dataview1 dataview2.Items.Add(objTemp.Clone) Next End Sub I hope that can be of some help. My apologies if I misunderstood what you asked.
  17. Greetings: I was curious if anyone knew of a way to make a data table prevent adding/deleting records using a dataview?? The reason I ask is that the demo of some datagrid column styles I'm considering purchasing doesn't seem to like it when I try using a dataview instead of a data table. http://www.rustemsoft.com/dgcolumns.htm
  18. Greetings: When I first moved from vb6 to .net, I never really took much notice to this problem. Now that I'm starting to build some larger applications that may be used by more than 5 people, (and feel a tad more confortable developing) I'd like to give this some more consideration. I do have a couple questions about offline data stored in datasets. When a user makes a bunch of changes to a dataset and goes to update it the data adapter uses it's update command to send the data. What happens if some of the records has been changed since his dataset was filled and some records have not been changed. Will it update the ones that have not been modified before, and return an error for the ones that throw concurrency errors? If so, is there a way to capture these records for the user to compare? Kinda like the dsDataset.GetChanges method?? So far I've been allowing the user to only modify 1 record before they have to update by enabling and disabling certain textboxes and buttons on my form. This has been an Ok solution so far, but I'd really like to take advantage of the datasets other features If someone would be willing to share a method they use to deal with this issue, or knows of a good sample I could look at, I'd greatly appreciate any suggestions or ideas or advince anyone would be willing to share. :D Thank You All In Advance :D
  19. Greetings: I seem to be having an issue where the controls I add to the workspace on my parent end up blocking the view of my children forms. It's like they are added on a layer of some sort in front of my workspace. Is there a way to make these items go behind my children windows?? Here is the code I use to add this particular label that's been troubling me: Public Shared lblGreeting as new Label Private Sub EnableGreeting lblGreeting.Name = "lblGreeting" lblGreeting.Height = 20 lblGreeting.Width = 400 lblGreeting.Location = New System.Drawing.Point(50,50) lblGreeting.Text = "Please Log In To Proceed..." Me.Controls.Add(lblGreeting) End Sub [/Code] This is called from the form load event. I've also added this from the designer which results in the same problem, I suspect it is a option I need to adjust rather than a problem with the way I'm adding it. [center]:D thanks in advance! :D[/center]
  20. Ohhh.. my apologies. I misunderstood what you ment. My bad
  21. Have you looked into system.web.mail ?? I haven't used it myself but from what I've read you can use the different items in that namespace to send e-mail
  22. Bart: Is this something you might be looking for?? Dim FORM as new INSERTFORMNAMEHERE FORM.MdiParent = me.MdiParent FORM.show
  23. Yeah. It's producing the same bad data error as well. Is there any problem with calling these examples from a public class as a shared function?
  24. Heiko: I tried your sample code this morning and it does appear to work, however, should I happen to sto[p debugging, and start debugging again, it will prompt me with an system.security.cryptogrphy.cryptographicexception but if I try to use the function right away again after the function has completed itself, it seems to work normally after. I'll give Sam's method a go here as well. If it's XML safe it might not produce the exception. Thank you all for the posts =)
  25. Nice. Thank you. I'll break it down and see what I can do with it tomorrow morning. =)
×
×
  • Create New...