Software Development Network Logo
  • Audio and Video
  • VS Team System
  • Visual Basic
  • Visual FoxPro
  • Game Technologies
  • Windows Forms
  • Microsoft ISV
  • SharePoint Products
  • Smart Devicet
  • .NET Development
  • Windows Vista
  • Visual C++
  • Visual Studio
  • Visual C#
  • IE Development

Software Development Network >> Sean Connolly's Q&A profile

Sean Connolly

Member List

Timothy Carroll
esamsalah
james2887
tomacco
lig
Jamie Thomson
polymorphicx
miltho
DrDeath
Chiro
Rick Shaw
Oligarchy
Niksta
rcurrie
WL_07
WillTurner
abcoura
Jneve7
Sarwanan
Jurgen Willis
Only Title

Sean Connolly's Q&A profile

  • .NET Development Sending Email using System.net.mail

    hi everyone, I have trouble to send email using system.net.mail in ASP.NET 2.0 with VB here is my code.... any body tell me what is going wrong with the code. Code for SendEmail.vb Imports Microsoft.VisualBasic Imports System.Net.Mail Public Class SendEmail Public Sub SendEmailMessage( ByVal fromMail As String , ByVal toMail _ As String , ByVal subjectMail As String , ByVal messageMail As String ) 'This procedure takes four string parameters for sending the mail Try 'address create a mail message Dim MailMsg As New MailMessage( New MailAddress(fromMail.Trim()), New MailAddress(toMail)) MailMsg.BodyEncoding = Encoding.Default MailMsg.Subject = subjectMai ...Show All

  • Visual C# if and Conditional Or

    I want to do so a control but in run-time get error. (Operator '||' cannot be applied to operands of type 'System.Web.UI.WebControls.ListItemType' and 'System.Web.UI.WebControls.ListItemType') firstly, you have the = instead of == = means you are assigning a value == means you are comparing a value. replace all = with == in your if statement, see if that helps! ...Show All

  • Visual Studio vb file problem with visual sourcesafe

    I'm using visual sourcesafe internet. I have a problem checking in VB files. ASPX files seem to be ok. I receive this message when checking in a VB file: there was failure uploading the URL http://domain/sourcesafe/vssupload_db1/ ... Do you want to retry the operation. I can create the vb file and the file is initially added to sourcesafe. But once I start making changes, it will not check back in and produces the error above. Any help is appreciated. A few other people have reported an issue with large files and the HTTP service.  edit: I've opened a bug on Connect to track this issue https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx FeedbackID=253333 ...Show All

  • SQL Server Multi-value parameters returning 'ALL' or an itemized list

    I work in the Data Warehouse where like in most large companies we run very long and complex SQL with lots of data in parameters are datasets. Due to the nature of our SQL I need our multi-valued parameters to return (something along the lines of...) ‘ALL’ if all values are chosen or an itemized list (as it already does) only if not all values were selected. The SQL would look like this... where ‘ALL’ in (@PARAMATER_NAME) or table.field in (@PARAMETER_NAME) I can not seem to find anything about this online, which I would assume is a very common issue. Can anyone help me with functionality I am well aware of that as I mentioned above. ...Show All

  • Visual Studio Passing value from database to report footer

    Is there any way to pass-off value of field to footer report.rdlc I try place Sum(Fields!X.Value) to textbox in footer, but displays following error: The Value expression for the textbox ‘textbox1’ refers to a field. Fields cannot be used in page headers or footers. Thanks for any help. ...Show All

  • Visual Studio Express Editions Crystal Report 10 in Visual Basic Express Edition

    Hi..I'm having problems with printing my report..I downloaded VB Express Edition from Microsoft.com and found out that the package doesn't have a crystal report template..I bought crystal report application and decided to incorporate the report I made on it in my VB Project.. My problem is that I want to print a report of the materials to be shipped in a certain period..My code is like this Private Sub cmdPrint_Click( ByVal sender As System.Object, ByVal e As System.EventArgs ) Handles cmdPrint.Click Try ReportXL.SQLQuery = "SELECT * FROM T_SUB WHERE EXFACTORY >= ' " & cmbfrom.Value & " ' AND EXFACTORY <= ' " & cmbto.Value & " ' " ReportXL.Action = 1 Catch ex As Excepti ...Show All

  • Visual Basic getting binary from file

    Private Function TextFromFile( ByRef fInStream As String ) As String Dim i As Integer Dim strText As String i = FreeFile strText = "" FileOpen(i, fInStream, OpenMode.Input, , OpenShare.LockWrite) System.Windows.Forms.Application.DoEvents() strText = StrConv( InputB (LOF(i), i), vbUnicode) --- this is the original code strText = My .Computer.FileSystem.ReadAllBytes(i) ---- I just added this to try FileClose(i) TextFromFile = strText End Function I just converted this code from mVB6 to 2005.net, but you will see a one of the functions don't exist any more (inputB), which is grabbing the binary info from a text file. I attempted to do the same ...Show All

  • Visual Studio Express Editions compiling a .cpp file

    I have no problem with compiling my own projects, butsometimes I download a .cpp file from the internet and want to compile it and I can't seem to find a way to use visual c++ to compile the .cpp file. Does anyone know how to make the compiler compile a .cpp file. thanks for any help Hi, Try to use wx Widgets upgrade for VC++ 2005 express, becouse it don't have MFC grrr. You will need Windows Platform SDK 2003 to install and manual instal some files or buy Visual studio... G.P. ...Show All

  • Visual C# Static fields, inheritance, and Reflection...

     I'm trying to force a class that inherits from a base class that contains a static field to assign a value to this field. I'm not having any luck. For example, say I have a base class "Shape": public class Shape { public static string Description = "A shape"; } and I want to create a class that inherits from shape, but I want the new class to be forced to assign a value to 'Description'. Is this possible I know I can't use abstract or virtual along with static.. The reason for this is that I want to be able, when using reflection, to use the FieldInfo class to return the 'Description' of the inheriting class. I know I can assign a value to 'Description' in the constructor of the inheriting class, but the Typ ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA performance

    In the past i learned c++ cause its faster as managed code for games and stuff. Now we are about to start a pretty large game project. This project will be an multiplayer first person shooter (swat kinda game, like Swat4 of sierra, Raven Shield of UbiSoft, ...). Cause high performance is a big requirement on this project we want to know if XNA framework (using XNA studio express) is the best (or good) sollution for this. Writing this game in c++ will be a long, long, long way, maybe XNA can shorten this development process, only we want to be sure about the performance. hmm, k, seems like i'm gone use XNA :) maybe i know why i had performance differences with managed and native code. The ...Show All

  • Visual FoxPro Importing to Excel

    Dear Friends, I would like to export my cursors to Excel file but when I do this they send only the datas of one cursor and the rest not. How to do this eg ; SELECT cursor1 SELECT cursor2 SELECT cursor3 copy to compare.xls type xls only the datas of the cursor3 will be exported not for the rest advance thanks for your suggestions satish Satish, The COPY TO command only operates on the currently selected work area. If your 3 cursors are all the same structure you can use a SQL-SELECT to create a single file: select * from cursor1 ; into cursor4 ; union ; select * from cursor2 ; union ; select * from cursor3 select cursor4 copy to TheFile.xls type xl5 ...Show All

  • Visual Basic open ".doc" file in vb.net appl9ication

    i want to open an existing word document in my vb.net application. how cani do that is there any reference file to be added plz tell the code if you want to be able to edit it in the code then you will need to set a reference to the Microsoft Word COM object and then just start experimenting with the Word objects. i'm guessing that after you set that reference you can then use the following to start working with it, I'm not positive on the blips of code below but i'm pretty sure. Imports Word Imports Microsoft.Office.Core dim oWord as Word.Application Dim oDocument As Word.Document ...Show All

  • Visual C# proper constructor chaining direction

    I was looking at some code at my work and with several overloaded constructors having the same code in each one, I thought, beautiful, perfect place to use constructor chaining. Except I'm not sure which direction is the proper way to go What I mean is, in the constructor, do you go from the general to the specific, using nulls for the missing parameters, or do you go from specific to general and then in the body of the constructor set the missing properties Where things get interesting is when you want to call the base constructor, should it go in one place If you're using constructor chaining, then you can do this, but where does it go, at the top or the bottom of the chain Here is a sample class that illustrates what I mean. ...Show All

  • Visual Studio 2008 (Pre-release) Dynamic User Controls on a DockGrid

    The project is an xbap. I created a usercontrol called timecard (.xaml and .vb) I have a button that does: ---- dim _tc as new timecard _tc.Timecard_HostPage(me) m_Dockpanel.Children.Add(_tc) --- On the user control I have an "x" button that call a handler on the hostpage passed via the Timecard_HostPage function that removes the usercontrol passed back as "me" to the m_Dockpanel.Children.Remove on the hostpage. I can add an infinite number of Timecard controls to the page, but I can only remove one. Once I click the "x" on another one, I get the following error: "Specified Visual is Already a child of another Visual or the root of a CompositionTarget" Now Ive done so ...Show All

  • Visual Studio Express Editions Help with threads

    From my main form, I am starting a backgroundworker to run asynchronously with code ( backgroundworker1.RunWorkerAsync () ). This background worker then starts a instance of a class with the following code… Dim worker As BackgroundWorker = _ CType(sender, BackgroundWorker) Dim startclass As New class1 startclass.class1sub () This new class then fires of 8 further threads (each of which make a different web request). I am starting these threads with this code… Dim startclass2 As New class2( _ “string”, “string”, "string") Dim t1 As New Thread(AddressOf startclass2.class2sub) t1.IsBackground = True t1.Start() Is the code above starting the new threads ...Show All

©2008 Software Development Network