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

Software Development Network >> AlexBB's Q&A profile

AlexBB

Member List

jomo
el-chema
Cameron D
mikesnp
Rich Hoffman
Hf Kok
michael.e.obrien
Ludovico
MeZKaL
Asbjørn
gfmajchrzak
M a t i a s
SBProgrammer
Billr17
RaviKanthReddy
Xplorer99
BradN
KathyGirl
Shaolyen
Jonathan MacCollum
Only Title

AlexBB's Q&A profile

  • Visual Basic Making settings mandatory and trusting locations

    Hi everyone, I'm working in a 300+ workstation school site which has 1500+ users. I have installed VB 2005 and setup the settings that I want them to have. How can I restrict Visual Basic so that it's 'profile' settings stay the same for each user after they log off and without an error message saying that it 'can't be written to I have tried restricting the settings file and it gives me an error. Is there a way of turning off the 'auto' saving function of the settings file Secondly, We have redirected all the user accounts to a mapped network drive on the server - ex H:\ . When I make a new project on H:\, it states that it is not a trusted program location... How can I make it so that H:\ is trusted Thanks ...Show All

  • SQL Server Select customers who havnt made orders

    Using the northwind database, how do I select the cutomerID of customers who havnt placed an order. is it something like this select Customers.CustomerID FROM Customers INNER JOIN Orders ON Customers.CustomerID <> Orders.CustomerID and how can I display the customers who HAVE made orders alongside customers who havnt made orders. Thanks in advance. Using EXISTS/NOT EXISTS is the best way and straight forward. NOT IN will have problems if there can be orders with NULL CustomerID for example. Ex:   select t1.i from (select 1) as t1(i) where t1.i not in (select t2.i from (select null) as t2(i))   The query above will return NO row when it should return 1. With NOT ...Show All

  • Visual Basic sending e mail

    Public Sub SendEmailMessage( ByVal strFrom As String , ByVal strTo _ As String , ByVal strSubject _ As String , ByVal strMessage _ As String , ByVal file As String ) 'MsgBox("sending mail") Try Dim MailMsg As New MailMessage( New MailAddress(strFrom.Trim()), New MailAddress(strTo)) MailMsg.Subject = strSubject.Trim() MailMsg.Body = strMessage.Trim() & vbCrLf MailMsg.Priority = MailPriority.High MailMsg.IsBodyHtml = True If Not file = "" Then Dim MsgAttach As New Attachment(file) MailMsg.Attachments.Add(MsgAttach) End If Dim SmtpMail As New SmtpClient SmtpMail.Host = "203.199.179.231" Sm ...Show All

  • Windows Forms User input validation

    hi all, i am writing a login screen. it has a username and password textbox. i want to validate the user input to allow a-z; 0-9 and - _ but nothing else...is there any way of checking for these characters only thanks, Yes, you can use regular expressions for that (lookup Regex class in System.Text.RegularExpressions namespace). Here's also one of the examples on how to make a Regex ExtenderProvider  for user input validation. ...Show All

  • Visual Studio Express Editions split paras into single column vertically scrolling datagridview

    I have data stored in my bound access table's memo field. The data is a string like a poem stored in paras with a blank line inbetween paras. Using that as delimiter, how can I split these paras and populate the contents of Column1, row(i) of single column vertically scrolling datagridview where i is the para number Thanks for any help. hi, yes but i used console application to , you can use the windows forms, because there is no datagridview in the console applications, so in your event handler the code will be something like this          Dim   delma  As   System.Text.RegularExpressions.Regex  =  New   S ...Show All

  • SQL Server Problem on Sync Access database

    Dear all, I have a software written in C#, using RDA to sync access database from desktop. But it is tricky that some time during "Pull" data from SQL Server Agent, my PDA tell me "A request to send data to the computer running IIS has failed. For more information, see HRESULT". This also happening when I try to unplug the ethernet cable from my desktop however the push and pull actions did not required to go through internet. Here are part of my codes m_intdb = new SqlCeRemoteDataAccess("http://desk01:1024", "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\inttemp.mdb; Jet OLEDB:System Database=C:\\Documents and Settings\\user\\Application Data\\Microsoft\\Access\\System.MDW"); m_intdb.Inte ...Show All

  • Visual Basic Troubleshooting with IDE - Unable to open search!

    Hi. I have Visual Basic 2005 Express Edition and I am having problems with the "Search" option, where you type in Keywords and it searches on 4 different websites / places including my on-board MSDN. It has worked before, in the past, and has been very helpful... But lately it will not open when I try to start it. When I click on the "Search" button at the top it gives me this message box: "The type initializer for 'Microsoft.VisualStudio.CommonIDE.Help.Sylesheet' threw an exception." and that is all that it tells me. I have no idea why it says this and will not open. I have also tried reinstalling my software and that did not help a thing. Thanks, I hope you can help. -Joe M. ...Show All

  • Visual Basic EMAIL

    I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's you cannot use hotmail to send emails via this method. you need to either: ...Show All

  • Visual C# Apply Button On Modal ShowDialog Form

    Hi all, Let say I have two forms. One is the Main form. Another is the Options form. My Options form is called by the Main using ShowDialog() command. I have an apply button on the Options form that allow user preview / apply the Options that they had set without closing the Options form. The is another OK button on the Options form. The OK button will Hide() the Options form. Then, it will execute the "ANOTHER CODE REGION". That is what I wish to do without hiding the Options form. Is it possible with the ShowDialog() function frmOptions frm = new frmOptions(); frm.ShowDialog(); // ANOTHER CODE REGION that draw something on the main form. Thanks in advance. Hi, I have another related problem ...Show All

  • .NET Development How to obtain bandwidth and downloading rate

    Hi all: I want to develop a software like a peer_to_peer application in C#.But I don't quite know how to realize some functions such as getting a peer bandwidth,throttling and showing downloading rate. I google it ,and find a article " How to do bandwidth Throttling using C# .Net code ". But the website require you to pay for registration. :=>( can anyone tell me how to realize those functions or offer me some samples or some webs Thanks a lot. Thanks all, I'll write my code for recording download speed and bandwidth as Alan stated. Thanks Alan specially. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. [IronPython] MS.Xna.Framwork.Components missing?

    Hi all, I've played around with the starter kit in C# for a while, and I really enjoyed what XNA can do, but frankly, I'd much rather tinker around in Python. I've been looking around, and I've found many, many code snippets from the August-September time period of "demo games" in IronPython, including this one here on MSDN: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=682285&SiteID=1 However, all of these snippets reference Microsoft.Xna.Framework.Components, which my IronPython interpreter insists does not exist. I've tried exploring the library throught the GSE's Object Browser, but I can't find any general equivalent. Has the library been changed since August/September Does it "make sense" that I'm ...Show All

  • SQL Server Transactions in triggers

    I have an AFTER trigger which responds to a table update process. Within this trigger a separate stored procedure is called which does some additional processing. The problem is that if this inner stored procedure fails, for whatever reason, the entire trigger and the initiating update also rollback whereas I want the update to commit. I have tried using various combinations of SAVE TRANSACTION etc but each time I get messages similar to ' The current transaction cannot be committed and cannot be rolled back to a savepoint. Roll back the entire transaction.' Does anyone have any ideas I understand that - however what I'm not sure about is what is making this an uncommitable transaction Is it the ...Show All

  • .NET Development searching through an xml document

    I'm creating an application that needs to search through a large xml document for any text matching what the user has entered. Can anyone please tell me what would be the most efficient way to handle this as the xml file is fairly large (20mb) Many thanks ok this is what I have so far: private void Search() { XPathDocument doc = new XPathDocument("catalog.xml"); //create xpathdoc from my xml file XPathNavigator navigator = doc.CreateNavigator(); //create the navigator object XPathNodeIterator iterator = navigator.Select("myCollection/product"); //the iterator to move through each instance of 'product' } But then I'm not sure wha ...Show All

  • Visual Studio Express Editions Nested loop

    Ok i got a book and this eludes me. here is m situation the textbox name is JAN01box and there are actually quite a few of them. What i wanted to figure out is how to read the "01" in the box then set up a nested loop to adjust text or add text or whatever. ...... how do i read through textbox names with a nested loop. Please assist... i have a few hrs trying to accomplish the task Shihan OH BOY I am appreciative of such a quick response.. what I am trying to do is read through textboxes and for each read i may format the boxes or do a calculation or update them. Maybe to use the if then to read soem of them and do a database write. Its how this is done. Reading a part of the ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. need help..

    im kinda new to xna and c# and when i tried to debug now i get some errors that i dont know how to fix lol. heres the errors i get this is what i wrote in: protected override void Draw(Microsoft.Xna.Framework. GameTime gameTime) { this .graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics. Color .Black); this .spritebatch.Begin(Microsoft.Xna.Framework.Graphics. SpriteBlendMode .AlphaBlend); this .spritebatch.Draw( this .mytexture, this .spriteposition, Microsoft.Xna.Framework.Graphics. Color .White); this .spritebatch.End(); base .Draw(gameTime); } and heres the errors: error 1 = Error 1 The best overloaded method match for 'Microsoft.Xna.Framework.Graphics.SpriteBatch.Draw(Microso ...Show All

©2008 Software Development Network