miSolutions - Jason's Q&A profile
Visual C# How to display image based on user input
Hi, I am a newbie in C# programming. I wish can display a list of images when user key in images count and image name. If user key in 10 images, program will display 10 images sort by the sequence, if 20 then 20 images...ect. Example: user will enter a list below: no 1 : image1 no 2 : image2 .... .... no 10: image10 then the program will display images from 1 to 10. Hope can get help here. Thanks. I would imagine that the most intelligent thing to do is to build a list of images and then just step through it, a list will be able to hold as many or as few images as you would like. ...Show All
SQL Server Email Trigger in SQL 2005
I am new to developing as will be evident from this post. Your help will be greatly appreciated. I am developing an intranet for our company using ASP.NET with a SQL backend. I am currently working on a suggestion box form. I would like to have an email sent to specific persons when a new entry is made in the suggestion table. I have been able to configure the trigger and generate the email (This was easy). Formatting the email has proven more difficult to resolve. The format I would like is somewhat as follows: F_NAME L_NAME submitted the following suggestion: IDEA BENEFIT APPROVE | DECLINE The items in RED are ...Show All
Visual Basic Relase the Fix for Visual Basic Compiler Error &H8013141e&
Hi all i just want to know when is going to be released the fix for visual basic compiler error &H8013141e& this is already reported in the microsoft productfeedback site. i think this is a very urgent patch that must be released asap and please do not repond that i should go back to vs.2003 because i have lots of code developed in VS 2005 to framework 2.0 .. JSB PS: this error pisses me of, i need to restart VS.IDE every 5 minutes. i think this is too bad for a recent relesase product ( its full of Bugs ). Hi, João, This is a good opportunity (in the ...Show All
Visual Studio Team System Setting Rules to Prevent Direct access of Request,Response objects
Hi, We want to set a rule whereby developers cant make use of the ASP.NET Request,Response,SERVER objects directly ,they have to use our internal functions to access those variables, how do i define that rule. Thanks in advance No problem. I would also advise checking the instruction opcode before getting the value of the instruction as the 'as' operation is expensive compared to this comparison. You want something like: if(instruction.OpCode == OpCode.Call) { Method calledMethod = instruction.value as Method; if(null != calledMethod) { // Do stuff } } ...Show All
Software Development for Windows Vista Should we now replace "MS Shell Dlg" in our .rc files with "Segoe UI",
Hi, I've got a question regarding Segoe UI. I thought this thread would help me regarding Segoe UI. In one of the training class, we were told that apps for Vista should use "Segoe UI" as their font for dialogs . For NT/W2K , people in the past were told, not to use " MS Sans Serif " anymore but instead " MS Shell Dlg " as this maps via a registry value to the proper Shell font which can be switched for the whole shell in one fell swoop. Should we now replace " MS Shell Dlg " in our .rc files with "Segoe UI", or will "MS Shell Dlg" by default map to "Segoe UI" on Vista or is there yet another face name that will map to "Segoe UI" when ...Show All
.NET Development Blocked SMTP send in Net.Mail
I've found this problem mentioned in another thread but not addressed as it was off the main problem. My application appears to send mail OK but none of it leaves the machine until the app is exited. Is some kind of flush required I'm using VB 2005 express. Downloaded yesterday. Dim s mtpSend As New SmtpClient Dim mmNew As New MailMessage( New MailAddress( "y@X.net" ), New MailAddress( "j@X.net" )) mmNew.IsBodyHtml = True mmNew.Subject = "A dull test" mmNew.Body = "<B>Hi</B> there! <P><I>This message sends OK:</I><P>" ) smtpSend.DeliveryMethod = Net.Mail.SmtpDeliveryMethod. ...Show All
.NET Development 1.1 to 2.0
Hi, I am converting a 1.1 code to 2.0 The line that I would like to convert is System.Web.Mail.SmtpMail.SmtpServer = SMTPserverName; P.S. using outlook do you know what should this line be in 2.0 Thanks You can't set a read-only propertie. Why inheriting the MailMessage class What kind of functionality you want Creating a MailMessage is easy: MailAddress from = new MailAddress(" ben@contoso.com ", "Ben Miller"); MailAddress to = new MailAddress(" jane@contoso.com ", "Jane Clayton"); MailMessage message = new MailMessage(from, to); ...Show All
Visual C# How to change VC#.NET default lower bound for array subscripts
Hello. I am upgrading a legacy system written in FORTRAN and Visual Basic 6.0 with Option Base 1 (array lower bound is 1). Unfortunately the VB.NET no longer supports this option anymore (I wonder why Microsoft took out this good option). Is there a quick way to take care this issue in VC#.NET It is lots of work to change all arrays in a legacy system from base 1 to base 0. Any good idea Thanks. Ping Ping, I don't think Option Base 1 or anything like that are available in C#. The closest thing I can think of is to create an indexer. My recommendation would be to go and change the code to make it proper C ...Show All
Visual C# Anti-view source code
Dear all, I'm using a software that can view source code from .exe and .dll file (only for .Net Framework support files). It's security problem. Everyone can know my programming idea. So, I wonder to know how to hide code! Someone help me! Thanhks! You may to check out anti-piracy tools. For instance, http://www.aladdin.com/ has both hardware and software protection keys (dongles) which prevent execution of unlicensed software. They also envelope encrypt executables to prevent reverse engineering. ...Show All
Visual C# Executing a method of a class as soon as the class is reffered!
Hi, It would be great if someone could provide me a solution to my problem. I am creating a class ( say the class is named as Checkconnection.cs) that would check if my system is connected to the internet. I need to continously check for an internet connection and if there is a connection I need to carry out the required operation. Now imagine a third party is using my class, Checkconnection.cs in another application (say HisApplication),and lets say he has written the code as obj.Isconnectedtointernet(); it will check for the internet connection only when it encounters the code "obj.Isconnectedtointernet();". My problem is tha ...Show All
Visual Studio Team System Can I get someone to come into my company and demo Team Foundation for us?
I'm trying to get our company to use Team Foundation, but they would like someone to come in and demo it for them first. We have someone from IBM coming in to demo their solution, so I would really like to get someone, preferably from Microsoft, to come in and really sell this to my boss. Who do I call How do I go about doing this Thanks, Disaia The most direct route is to contact your Microsoft account manager (if you don't know who this is, your boss might). It looks like you might be in Southern California, but there's no specific mention of your location. If you can tell me where you are and what company you w ...Show All
Visual C++ CTabCtrl question!
I got MFC CTab control in the dialog. It is inserted using resource editor, and bunch of other controls are pasted onto it. In the OnInitDialog() function tab is extended like this: This notification is well documented: http://msdn.microsoft.com/library/en-us/shellcc/platform/commctls/tab/notifications/tcn_selchange.asp frame=true I directly see no problem.But why do you delete the last item. Just use SetItem and change the text of the last item and add a new one. ...Show All
SQL Server Is it possible to ftp files using code in a SSIS Script Task?
Is it possible to ftp files using code in a Script Task I need to read the contents of an xml file and if it has a a specific file name in there then I ftp the corresponding pdf file which is at the same location as the xml file. However I cannot do this using the provided FTP Task in SSIS, I would need to use code to do this as there are close to 50 xml files which I need to read and upload the corresponding pdf file file it meets a certain criteria. I do not see a way of looping thru all the files in a folder unless I do this in a Script task. Any inputs or alternative comments on doing this will be appreciated. Thanks, MSha ...Show All
Visual Studio Team System Unit Test Adapter threw exception
I am running unit tests and receive the following error when selecting the Run Selection option from a test: Unit Test Adapter threw exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.. I can choose the Debug Selection option and am able to run the test that way. Here is an example of one of the logs in the Assembly Bind View Log app. I have already tried re-referencing the assembly with no luck *** Assembly Binder Log Entry (12/1/2005 @ 5:33:38 PM) *** The operation failed. Bind result: hr = 0x80070002. The system cannot ...Show All
SQL Server Advice on a database Replication
Hi, I.m trying to find the best practice for my solution. This is the situation. My application has two databases and 2 client interface. One with a windows forms having a database (sql server 2000) running in an office (on a static IP but on a slow connection). the second one is an web application running on the net with an online database. Both these databases have to have same information. Users can add records to both databases independently but these databases should be synchronize at a point. I hope the situation is cleare. Is there a standard way of doing this. If some one knows good article of how this can be done pls fo ...Show All
