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

Software Development Network >> Andreas Asterlund's Q&A profile

Andreas Asterlund

Member List

Ralfeus
IamHuM
jwaters
nativecpp
stang4lyfe
csalsa
MMMalik
jdrawmer
SQLScott
Clinic332050
Tdar
birdman82
Binu Jeesman
ratslav
Simone1
jwhansen
ANS-Denver
13yearoldgenius
JVJ
kevinj
Only Title

Andreas Asterlund's Q&A profile

  • Visual Basic Vb.Net 2003

    Please i have a problem that i want to read numbers in arrays(2 arrays) and Draw Curve with this Numbers .first array is x axis and second array is y axis. and x,y axis appears in the graph as in custom component. please can anybody help me thank you The easiest way to do this is to create a form with a picture box on it, and then use the Graphics class to draw in the picture box inside its Paint event handler. I've provided a sample below. It creates an array of point structures and then passes them off to the DrawCurve method of the picture box's paint control. The sample just draws a simple curve. In your case, rather than recreating an array of point structures each time, you would want to ha ...Show All

  • Visual Basic How to get computer name

    Hello How can I get my computer name Thanks This will only work if you are connected to an active directory. Add a reference to system.directoryservices. Replace NetworkName with your network name. Dim de As New System.DirectoryServices.DirectoryEntry("LDAP://NetworkName") Dim ds As New System.DirectoryServices.DirectorySearcher(de) Dim r As System.DirectoryServices.SearchResult ds.Filter = "(objectClass=computer)" Try For Each r In ds.FindAll Dim s As String Console.WriteLine(r.GetDirectoryEntry.Name.ToString) Next Catch e As Exception Console.WriteLine(e.ToString) End Try You could use NetServerEnum API for list of computer on network without a domain: Imports Sys ...Show All

  • Visual C# How Do I Show User Accounts on the Computer in a Combo Box?

    I need help detecting User Accounts on the Computer that the program is being run on and showing them in a ComboBox. Anybody have any ideas Haha that is true, I did want all of the accounts didn't I. :) Yes, I do just want the user accounts created as a normal user. I don't know how to not show them either, I was hoping you did. ...Show All

  • .NET Development WF fails to install on WINx64

    Has anyone else reported a problem installing WF on WIN2003x64 I think there is something wrong with the WF installer for x64 systems. Running the WFx64 installer fails to create the required entries in the Framework64 folder, so it does not show up in the list of installed programs. I'm using version 3.0.3807.7. I installed from the file Windows Workflow Foundation Runtime Components Beta 2_2(EN) for x64.exe, which were downloaded from http://www.microsoft.com/downloads/details.aspx familyid=5c080096-f3a0-4ce4-8830-1489d0215877&displaylang=en . This version was stated to be compatible with WSS Beta 2, MOSS Beta 2, SharePoint Designer Beta 2 - all of which I am running. ...Show All

  • Visual Basic VB2k5: Instantiate a textbox and assigning a text property

    Hi, I tried instantiating a textbox with: Dim txt1 as new textbox However, though no error is encountered when I assign it a value, when I pass it to the database, all the fields are null. My insert method is working fine (coz i see rows with null values that are added in my tables), only, it cannot get the exact value of my instantiated textbox. I know i'm missing something.... hmmm probably i still need the property let/get... just guessing... Can someone help out cherrie Without seeing your specific code its difficult to tell whats happening but the functionality appears to work OK. Heres a 3 button example - one creates the textbox, the second sets the value and the third dis ...Show All

  • .NET Development Make mutiple threads, for loop?

    With an inputbox on a form the user is able set the number of threads to use. for 1 thread I've got this: Dim et1 As System.Threading.Thread = New Thread(AddressOf ThreadFunc) Dim t1 As Thread = New Thread(New ThreadStart(AddressOf ThreadFunc)) t1.Start() t1.Join() But if a user wants 20 threads how should i do this for loop Thanks for your reply! I got an error here: Dim threads As New Collection(Of Thread) -->Error 'Microsoft.VisualBasic.Collection' has no type parameters and so cannot have type arguments. How can i fix this With this code I am sending curl requests to a webserver. I'want to see how it handles many requests. For this i'm using threads to send multiple requests at the same time. ...Show All

  • Software Development for Windows Vista USB Communication Device Class (CDC) working with VISTA

    For the USB CDC devices, they work in Windows XP with usbser.sys. However, VISTA seems no longer support USB CDC, it does not take the XP's usbser.sys and .inf files. Is there any way to install the USB CDC driver in VISTA I got VISTA and VISTA64 driver working: http://www.obddiag.net/drivers.html ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Begginers and XNA

    How hard is it for a begginger with no experience in programing and low math skills to make a working game on XNA Is it even possible How much does it take to learn C#, and how intuitive is it My first choice of program to use would be the Torque Engine, because it was implemented well in Marble Blast Ultra on Xbox Live Arcade. I would really like to be able to create games, even if simple, I also want to get in the video game industry, though not currently in programming, but I mainly want to do it as a hobby. Thanks for any help you guys can give me.   DreamConspiracy wrote: this may sound weird  but  how hard would it be to port   a game made with XNA   to platforms like  &nbs ...Show All

  • .NET Development The XML declaration is unexpected. Line 1, position 3.

    A webservice calls an assembly which reads data from xml file located on the same server. But when a webservice method call is made to the assembly to read from the xml file, it throws one or more of the following xml errors, but only when the webservice is first accessed. The XML declaration is unexpected. Line 1, position 3. '<', hexadecimal value 0x3C, is an invalid attribute character. Line 1, position 6. This is an unexpected token. The expected token is 'TAGEND' This is an unexpected token. The expected token is 'NAME'. The '=' character, hexadecimal value 0x3D, cannot begin with a name. The errors occur mostly initially (when the webservice is first accessed) and then don't appear as long as no iisresets are don ...Show All

  • Visual Studio Express Editions VB6 to VB2005 compile errors

    I am trying to migrate a project from VB6 to VB2005. It is about 70,000 lines of code. After the upgrade wizard completed, it gave me a UpgradeReport.htm. In this are four sections. I have 181 Compile Errors, 1431 Design Errors, 3143 Warnings, and 11 Misc. It was my understanding that if I fixed the Compile Errors, the project would compile. It does not. I eliminated all of these Compile Errors. If I try to do a build, I get 102 Errors. Of course the last one says "Maximum number of errors has been exceeded." So, I don't know if I have 102 more fixes to get it to compile or 5000 more fixes. I would like to start by just getting it to compile and then set about fixing the other things. Am I going about this the right way ...Show All

  • Visual C++ stdafx.h

    How does VC++ decide whether to put a stdafx.h into your project or not I am looking at older code that I wrote a while back and I noticed that it does not include a stdafx.h I would like to add a #define _CRT_SECURE_NO_DEPRECATE 1 to stdafx.h, but the project doesn't have the file. And I'm not sure if it is safe to add it after the program has already been written. Thank you. longwood stdafx.h is generally a precompiled header, added by the VC++ project templates. Some templates (if not all) do have boxes you can to control whether or not to generate the header. See http://msdn2.microsoft.com/en-us/library/syth7b6s.aspx and the linked urls. ...Show All

  • Visual Studio Team System added

    Hello, I added the value "Cannot Reproduce" to the "State" object of our process template (see below). How can I get the value "Cannot Reproduce" to appear in our _current_ project <WORKFLOW> <STATES> <STATE value="Not Done"></STATE> <STATE value="In Progress"></STATE> <STATE value="Done"></STATE> <STATE value="Deferred"></STATE> <STATE value="Cannot Reproduce"></STATE> <STATE value="Deleted"></STATE> </STATES> [...] Thanks Chris, I did update the state transition map. How can I get a resp ...Show All

  • .NET Development Problem creating Zip File using Shell32.dll

    Hi, I'm trying to create a zip file using the Shell32.dll com component in C#. I believe that the code should work fine in Windows XP & 2003 Server. My test environment is XP and the code works fine. But this does not work in win server 2003. It does not throw any exception as well. Please help me in solving this issue. This is my code: ///There is no issue with this method. this creates a new zip file normally. public bool CreateZip ( string ZipFileName ){ try { //Create an empty zip file byte [] emptyzip = new byte []{ 80 , 75 , 5 , 6 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 }; FileStream fs = File . Create ( ZipFileName ); fs . Write ( empt ...Show All

  • SQL Server Placing a sum in a table header column

    I have been requested to add the sum of an interger field to the table header. I have the sum in the footer (which is very easy to do), but I cannot get the sum to appear in the table header. I then set-up the stored procedure to run the sum, and place it into a dummy field. I still cannot add this field to the table header. Instead of printing the data for the dummy field (the correct total), it instead prints the actual field name on the report. Is there anyway to place a sum in a table header on a SQL Server Report Let me know. Thank you, T.J. Can you post your expression you have in your textbox You should be able to use something like this: =" # of Boxes - " & ...Show All

  • SharePoint Products and Technologies Cell Formatting Task Pane

    Anyone know how to get the Cell Formatting Task Pane to appear I closed it and now have no idea how to get it back! If you select the cell in the Quick Tag selector in the top bar of the design view, do you see the Data/Cell Formatting option I don't have a copy of the program handy at the moment so maybe I am just deeply confused. ...Show All

©2008 Software Development Network