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

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

XtremeISP

Member List

Kevin Stephens
kgs1951
Drudkh
progames25
Mystret
WayneW
Benin
MarkBosley
Ofir Epstein
Fahad349
CV.
Ricardo Francisco
Sami Karaeen
Omega_C#
mshvw
Christopher Ireland
aashta
Uğur Gümüşhan
keithy02
Junlin Liao
Only Title

XtremeISP's Q&A profile

  • Visual Studio Express Editions Another Problem

    Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks Well WayneSpanglers example does work but the other one might be nice for future use, ad thanx for showing me how to use cases.    Just note that all the cases ...Show All

  • SQL Server Can Data Partitions be used with associative tables?

    First of all, we are using SQL Server 2005 with a SQL Mobile subscriber and we are attempting to use Data Partitions on our current database schema which contains associative tables for many-to-many relationships. We have two tables, a User table and an Audit table. A user can be assigned more than one Audit. An Audit can be assigned to more than one User. So an AuditUser associative table exists. If data partitions are used based on User, then any Audits that are assigned to one or more users should be copied to the proper partition for each User (the msmerge_current_partition_mappings table with the proper partition_id values). In order to insert records with such a schema, the following steps occur in order: ...Show All

  • Visual Studio Express Editions BalloonTip

    Can someone please explain to me why no matter what value I set the timeout value to for the BalloonTip of a NotificationIcon in my project, it always shows for the same length of time Below is the line of code to call the BalloonTip: nfyNotify.ShowBalloonTip(1000, "SubSelect Watchdog" , _ "SubSelect watchdog will remain in the notification " & vbCrLf & _ "bar until it successfully allocates you to your first" & vbCrLf & _ "preferences or you cancel the operation." , ToolTipIcon.Info) yeah, I find the same problem yesterday. the timeout value may only mean ...Show All

  • Visual FoxPro application and webdata interacting.

    ok first off here is some info about my webserver: i dont no if you needed the information but maybe you do General server information: Operating system Linux Kernel version 2.6.17.11-grsechg Machine Type i686 Apache version 1.3.37 (Unix) PERL version 5.8.7 Path to PERL /usr/bin/perl Path to sendmail /usr/sbin/sendmail PHP version 4.4.4 MySQL version 4.1.21-standard cPanel Build 10.9.0-CURRENT 117 Theme cPanel X v2.6 ...Show All

  • .NET Development Asynchronous Vs Threading

    Hi, I want to know what are the differences between Asynchronous invocation and threading.Does Asynchronous invocation creates a new thread Thanks, Suresh Hi Ian, Thanks for your comments, The CLR uses fibers internally in order to consume less kernel threads, for example, if you create a new thread on your application the CLR may decide to use a fiber instead, and will do the schedulling for you (as the OS does know nothing about fibers). What I was suggesting is that when you run your async invocations (not using delegates), the internal APM (Async Program Manager) of the CLR uses a combination of threads and fibers in order to execute your code without using too many threads. The Fibers ...Show All

  • Windows Forms Possible C# bug in a definition and use of an event/eventhandler in a user-defined class

    Hi, I have defined a class derived from Panel class (let’s call it MyPanel). It contains three buttons, called btn1, btn2 and btn3. I have defined an event called BtnClicked, and I have thrown it in the code of btn1_Click, btn2_Click and btn3_Click (in practise, it raises when the user clicks on everyone of the three buttons). Definition of the event: public event EventHandler BtnClicked; Event throwing in the inner of the buttons’ click event handlers: void btn1_Click( object sender, EventArgs e) { BtnClicked(sender, e); } void btn2_Click( object sender, EventArgs e) { BtnClicked(sender, e); } void btn3_Click( object sender, EventArgs e) { ...Show All

  • Smart Device Development random TypeLoadException

    I am having real issues with a TypeLoadException that occurs generally randomly. I've been working on a .NETCF 2.0 app all day, debugging and generally being productive. All of a sudden, with no changes to the assemblies, I get a TypeLoadException on one of the types in one of my referenced assemblies. It's one of my own assemblies, and I checked the manifest and didn't notice anything untoward. // Metadata version: v2.0.50727 .assembly extern mscorlib { .publickeytoken = (96 9D B8 05 3D 33 22 AC ) // ....=3". .ver 2:0:0:0 } .assembly extern retargetable System.Data { .publickeytoken = (96 9D B8 05 3D 33 22 AC ) // ....=3". .ver 2:0:0:0 } .assembly extern retargetable System.Xml { .publickeytoken = (96 9D B8 05 3D 33 22 AC ) ...Show All

  • Windows Forms TreeView: SelectedNode always null?!

    I'm experiencing a weird problem with a System.Windows.Forms.TreeView. After the following few lines of code: TreeNode myNode = new TreeNode("foo"); treeView.Nodes.Clear(); treeView.Nodes.Add(myNode); treeView.SelectedNode = treeView.Nodes[0]; treeView.SelectedNode is null. I'm doing a whole lot of things with my treeView before that, so I don't know what messed it up. Anyway, after clearing it, adding one Node and setting SelectedNode to this one node, it's not supposed to be null, right Apart from the fact that SelectedNode is always null, everything's just fine with the treeView... I'm pretty sure it's not a thread-issue as I used Invoke to call the method containing the snippet above. I'm also on the same thread the tree was cr ...Show All

  • SQL Server How to locate the database folder in sql 2005

    We want to locate the database folder/files (where the databases are stored) like SQL Server Management Studio UI does, when you click on attach database / Add. The question is how to retrieve this folder/files programmatically (C# or VB, SMO ). For example we want our application client to connect remotely to an SQL Server and attach a new database, using the folder/files obtained from the retrieved method. So..., if the database is not attached, then you can put it just about anywhere you wish. There are 'default' locations, and there are the locations you decide to use. If you are not concerned about currently attached databases, and their locations, then what is the issue All serv ...Show All

  • Visual C++ Newbie question about classes

    Hi, this is the declaration of a class for handling matrices. http://doc.coin3d.org/Coin/classSbMatrix.html In this way i create an object SbMatrix: SbMatrix a=(1, 2, 3, 4, 5, 6, 6, 3, 5, 6, 6, 6, 5, 6, 3, 9); How can i print the content of that matrix and How can i give values to each one of its components no, he was right the array has 16 elements, and is zero based, so it has indexes 0 through 15. you need to use either of these two lines: [code] for(int i=0;i<16;i++) for(int i=0;i<=15;i++) [/code] (i personally prefer the first one, but either one is correct) ...Show All

  • Visual Basic Change system time using vb.net

    Does anyone know how to change the system clock using code. I want to be able to set the date and time in my code. Any thoughts Thanks!!! indeed you are declaring it and thats how you import a dll/Win32 (also known as P/Invoke) this goes at the top of the class, just after public class form1 for example, the same applies for the structure decleration. Snippet: Public Class Form1 Structure SYSTEMTIME Public wYear As Short Public wMonth As Short Public wDayOfWeek As Short Public wDay As Short Public wHour As Short Public wMinute As Short Public wSecond As Short Public wMilliseconds As Short   End St ...Show All

  • Visual Basic Err.LastDllError Equivalent in VB.NET

    Hi, I'm working on a conversion project: I would like to know If there is any .NET equivalent for the below statements: 1) Err.Raise (...) - I'm thinking of using throw statement. 2) Err.LastDllError Thanks... Kannan Online wrote: 1) Err.Raise (...) - I'm thinking of using throw statement. 2) Err.LastDllError 1. Yes, use Throw 2. System.Runtime.InteropServices.Marshal.GetLastWin32Error ...Show All

  • Visual C# Connect to Database...

    I have install the Northwind sample database by entering at the DOS prompt osql -E -S (local)\sqlexpress -i instnwnd.sql which runs through lots of numbers so I assume has all gone ok. When in VS I go to "Tools/Connect to Database...", choose "Microsoft SQL Server" and ".NET Framework Data Provider for SQL Server", then in the next dialog there is one server in the combo which I select, but I cannot get any databases to appear in the "Select or enter a database name" combo. I do have SQLExpress installed and the configuration manager is on my Windows Start Menu which shows "SQL Server (SQLExpress)" as running but "SQL Server Browser" is ...Show All

  • Visual Basic Coding for even and odd numbers

    How do you code for an even or odd number, as in If x (is even) Then... Thanks. you could use the Mod operator like so: if myNumber Mod 2 = 0 then    MessageBox.Show("Even number") else    MessageBox.Show("Odd number") end if   does this help odd numbers return 1 when divided by 2 :-) ...Show All

  • SQL Server SQL 2000 Database upgrade to 2005

    Dear All.. I have a few databases running a sql2000 and the time as come to move them onto sql2005. Which would be the best route to take. If I can think back to older version it was just a simply job of doing a backup in it's current version then restore in the new version and upgrade was taken while restoring.. I could be wrong but any help !! Thanks Martin. HI Hemantgiri Many thanks for the info, I knew my old memory was right - I shall remember your points when I upgrade thanks again Regards Martin ...Show All

©2008 Software Development Network