Software Development Network Logo
  • Visual J#
  • Visual Basic
  • Microsoft ISV
  • Windows Vista
  • Architecture
  • .NET Development
  • VS Express Editions
  • Smart Device
  • Visual FoxPro
  • Visual C#
  • SQL Server
  • Game Technologies
  • Visual Studio
  • VS Team System
  • Windows Live

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

Marthinus

Member List

mfauziii
Clare North
Squig
C Johnson
Marius Roets
Leoang
Kinnos
yatingg
DOHIT
Dave19
ig3
Steelgrave
pkafka
Phillip Trelford
Atul.Kr
pinkpanter
Running-Man
EvenSteady
xkeysboy
Stanislav Yudin
Only Title

Marthinus's Q&A profile

  • Windows Forms Control Layout problem

    I have a custom Toolbar that I'm developing that derives from Control. Like the .NET Toolbar, I would like users to be able to add in any control by adding it to the Controls collection. However, unlike the .NET Toolbar, I want to position the newly added control "in order" (meaning, if I have 3 buttons and then add a control, I wan ...Show All

  • Visual Studio Tools for Office Quickly get coordinates of a Range in Word?

    I know this is kind of specific to Word, but I avoided posting this in the vba forum because I'm using VSTO and I think the methods employed are different for VSTO vs. VBA. I'm developing a non-commercial research prototype based on Word, and one task I'm stuck on is getting the coordinates of a Range. It can be relative to either the window or document, doesn't matter. This method works great: range.get_Information(WdInformation.WdHorizontalPositionRelativeToPage) and range.get_Information(WdInformation.WdVerticalPositionRelativeToPage) However, each of these calls is very, very slow. With about 15 ranges on the page, if I call these two m ...Show All

  • SQL Server URGENT: SQL 2005 : All schedulers appear deadlocked

    Hi All, please throw in any ideas as it matter of urgency. We have rebuild our 24/7 heavy loaded website using ASP.NET 2.0 and SQL 2005 (we have one active-passive cluster for main activity and 2 active-active clusters to browse static data). Main cluster is publisher and distributor for replication of data (small subset of it and it works fine). Hardware is pretty tough - 16 zeons 32G ram, NetApp SAN. We had no troubles in first 3 days but now it gives us some headache. Yesterday it failed and website was unavailable for about 5 min. Today happened the same. SQL Server rebooted - no failover occured - just rebooted on t ...Show All

  • .NET Development advise with .net remoting

    the client (which is a server too) check if the server has a task for him if there is avaliable task then the client operate a function in the server that return a class named (TaskClass). on the client side i wrote a class that contain 2 variables - one is clientID and the other one is instance of TaskClass. i put the class "TaskClass" in a class library as a dll ,this class is serializable. is it reasonable is it a "good programming" im not sure about what i did...it seems a little bit clumsy.  thanks in advanced Hi, There are quite a few options. One is to have the ClientId as a parameter to a ...Show All

  • Visual Studio ReportViewer Cause error after deploying the webserver

    Dear all, When I deploy my web project into my Web server,everything is work,but except the report does not work properly. The config of my webserver is win2003 with IIS 6.0.And I make use of the report in the local processing mode and set "sessions state mode=InProc","cookieless mode=UseCookie"on the page of the state management in IIS. The error message is showed below Server Error in '/' Application. There is a known bug with the report viewer and cookie based sessions. If you use a cookieless session, the report should render correctly. ...Show All

  • .NET Development Reading from and writing to a single XML file using multiple appliacations.

    I have multiple applications that may be reading and updating a single XML file and at times my clash. For example, one application will be reading the XML file using SAX to read data and another process may be using DOM to add information to the XML. It appears that as one application is reading the XML another application is writing to the XML. This is generating an error. What are some approaches that I can take to prevent this from happening Thanks When you open a file you may specify sharing options: FileStream constructor File.Open By default, FileShare.Read is used. You may spe ...Show All

  • Visual C++ SetTimer() inside a thread

    I have a MFC Application that creates a thread to do some processing. The thread needs to perform a task at a regular interval, and when it is not busy with that task, it needs to be available to respond to events (such as stop-your-processing) from the main window. My original thought was to put a timer inside the thread, but I discovered the thread does not like code such as: BEGIN_MESSAGE_MAP(CArc220Thread, CWinThread) ON_WM_TIMER() END_MESSAGE_MAP() or myThreadPointer->SetTimer(1, 500, NULL); So, would the proper way to handle this be to set up the timer inside the main program, and then send event messages to the thread w ...Show All

  • Windows Forms Turning a certain point on form a specified color in MSVC++.NET

    Hi, I need to know how I can set a certain point of my form a color of my choosing. (Color found in System::Drawing::Brushes) Thanks, The Digital Pioneer OK, I'm a VB.NET Programmer too. Unfortunately, that isn't working. By sprinkling messageboxes through it, I found out that the e.Graphics.FillRectangle(Brushes.Red, x, y, rectSize.Width, rectSize.Height) command doesn't work. Thanks, The Digital Pioneer ...Show All

  • Visual Studio Team System functional verification points

    Is there a way to add functional verification points to a web test, such as tab order, initial focus, maximum length, and type of field (numeric, characters,...etc) You can specify validation rules to inspect the response of any request. Here's a link to the help topic that describes how to add validation rules to a web test. http://msdn2.microsoft.com/en-us/library/ms182544.aspx There are a few built-in validation rules that you can use (such as searching for a regular expression in the response. If the built-in rules do not provide what you're looking for, you can write a custom validation rule to perform the specific opteraion ...Show All

  • Visual Basic How do I make A COMBO BOX READ ONLY IN VB

    I want users to be able to select from the  values in the combo box, but to to edit or write new item in the combo itself. I m using VB in Visual Studio.2003 Any ideas since I went over all the properties and still my combo can edit new items. Thanks a lot folks In VB 2005, you could set the Combo property of DropDownStyle to DropDownList.  Now the user can only choose things within the list ...Show All

  • Visual C# Limiting Bandwidth Per Application or Per IP

    Does anyone know if it is possible to limit bandwidth somehow by using the Net sockets namespace what I mean is, setting an download/upload limitation per executable of a speicific process, Any code example you may direct me to will be appreciated, thanks beforehand. Are you wanting to limit the upload/download speed of the application you're developing, or are you trying to limit the speeds of other, external applications I don't know how to do either (yet...I'm eventually going to need to figure out something similar), but a more specific question would probably get a better response. ...Show All

  • Windows Forms Start default mailprogram with attachment

    Hello, I would like to start the user's defaul mailprogram with an attachment. I have tried something like this: string toEmail = "test@test.com" ; string subject = "Testar" ; string body = "test" ; string message = string .Format( "mailto:{0} subject={1}&body={2}&attach={3}" , "" , subject, body, @"c:\test.txt" ); Process myProcess = new Process (); myProcess.StartInfo.FileName = message; myProcess.Start(); myProcess.Dispose();   Everythin looks fine but the attachment is not there... If it's not possible to have an attachemnt in this way. Can someone please give me an direction how to start the u ...Show All

  • Visual C++ Where is the context menu to add class member variables/functions?

    I have installed Visual C++ 2005 Express version. I tried using the class wizard to create a new member variable by opening class view and right clicking on the class, but Add Function and Add Variable are missing from the context menu. Is this something not included in the express version or is there a configuration setting that needs to be set These features are not available in Express, as we package these as MFC-related functionality, which only exists in our other editions. ...Show All

  • Visual Basic Help.

    How do I create a grid of pictureboxes (25 x 25) on Visual Basic 2005 and auto-name them pbx(row)_(column) for the picture boxes It is to slow and hard to manually rename all 625 of them. Ok question answered, thanks. New question: OK, I ran into another problem. I want it be so that if I click the picture box with the person in it, you can move him by clicking on another tile. How do I do this (I tried (got from Dustin_H 's sample code) :     Private Sub PicBox_On_Click( ByVal sender As Object , ByVal e As EventArgs)         If PicBox(x, y).Image = Tiles.picPerson.Image Then &nb ...Show All

  • Visual Studio Express Editions Winsock Socket Help

    Are there any premade multisocket classes All I have seen are ones that accept one connection. Are there any that allow multiple ones Are we talking about TCP If so, the programming model is that you create a socket that listens to incoming connection. Each time someone connects to your socket, you call AcceptSocket or AcceptTCPClient and get a new socket where you can communicate with the client. Check out TCPListener and TCPClient respectively... Best regards, Johan Stenberg ...Show All

©2008 Software Development Network