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

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

nielsb

Member List

efriese
Edward1
Condorito
Misiacik7
lebronJames23
Tkanos
moemen.ahmed
yoshikatsu
pd_tch
John Stewien
amiune
Joshizzle
Yogesh Ranade
Steve Jensen
Fritzenhammer
R.Tutus
treegum
lagu2653
CBuilder
SOAC
Only Title

nielsb's Q&A profile

  • Visual Studio 2008 (Pre-release) drag problem

    I put an button on a canvas,and write some code to drag it. Everything was fine until i replace the button with rectangle. The drag action would stop if i drag fast,and the cursor was out of the rectangle. my code : xaml: <Window x:Class="WindowsApplication1.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="x" Height="500" Width="500" > <Canvas Name="canvas1"> <Button Name="myElement"></Button> <!--if i drag rectangle fast,it will stop--> <!--<Rectangle Width="100" Height="20" F ...Show All

  • SQL Server Image without code!

    Is it possible to insert a image in SQL Management Studio without use codes Like you search the image with a explorer window, click on it and... done! The short answer is No. Now it might be possible to visit a website that handles images for you -but it will be using SQL Code behind the scenes to SELECT/INSERT images for the browser. ...Show All

  • SQL Server A counting question

    I'm hoping that someone has the answer. I guess I may be missing the obvious but I'm struggling to do this. Simplified, I have two tables:- One table contains a list of Customers and the other table a list of Products that they have purchased. They are linked by a customer reference no, a one-to-many relationship. What I want to be able to do is count have how many Customers have purchased both Product A and Product B. Can anyone tell me the SQL statement that would return the answer as a single number. Thanks in expectation Dave thanks. Still struggling and think the suggested solution may be too complex for what I want to do. Imagine two tables, Customer and Product, Customer has the field ...Show All

  • Windows Forms Opacity

    How do I see Opacity on a form, but not on the forms controls So far I have Opacity on my forst set.. but.. I need the button to show its normal state. P.S: Also I realized that my post are being moved.. Sorry if this is not the right place.. I will re-read the faqs and forum title/desp again. I think I know what you are looking for. Try setting the form's backcolor to color.red and also set the forms Transparencykey = color.red. That way your controls will show but your forms back ground will be transparent. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. a problem

    hey i was wondering about this xna thing so when i went to the website to get it i followed the instructions. first i downloaded microsoft visual c# studio express like it said then i intalled that. then i downloaded and installed xna. but when i open xna it just goes to visual c#. is it supposed to do that and also then when i went to make a new project it wouldnt let me. whats with that. When you open Visual Studio, just simply go to new project and there should be an icon that says "Windows Game(XNA)". After you type your project name, you'll be all set. If you're still having trouble, it may be the install. ...Show All

  • Visual Basic How to import data from a Excell wokbook to a database

    I need to create a new database with excell data, and to compare them and create a new database with the results, and write them on the screen, how I can do it simply.Use what kind of database ...Show All

  • .NET Development insert rows from datagrid into database

    hi! in my datagrid there are multiple records that needed to be inserted to my database. my problem is that it would be inserted to only one row and it would depend on the id. for example: - the datagrid will have 3 columns (student id, subject, grade) the rows will be (2006-01, Math, 88), (2006-01, English, 87). - the database has 5 columns (student id, math, english, science, history) -- i need to insert the grade in their corresponding columns based on student id.  how could i do this i'm really confused right now and any help is appreciated.. Loop through all rows of the datagrid. Then decide if you need to send an insert or an update to the database for each row ...Show All

  • SQL Server MDX Filter Problem

    Hi, I am using AS 2000 FoodMart 2000 DB . My problem is when I run the below query I am getting an error. Query 01 SELECT {[Measures].[Unit Sales]} ON COLUMNS, {[Product].[All Products]} ON ROWS FROM [Sales] WHERE [Product].[All Products].[Drink] “ Duplicate dimension across (independent) axes when calculating a query axis ” But it is understood that I can use any other slicing dimension with WHERE clause to filter instead of the Product dimension, just like the below query: SELECT {[Measures].[Unit Sales]} ON COLUMNS, {[Product].[All Products]} ON ROWS FROM [Sales] WHERE [Customers].[All Customers].[USA].[CA] This query works fine. My point is that I know AS 2000 does not use the same dimension in two ...Show All

  • Visual C# Delegate.BeginInvoke

    I am getting the build error: c:\inetpub\wwwroot\Remoting2Project3\WebForm1.aspx.cs(33): No overload for method 'BeginInvoke' takes '3' arguments Pls. help and thanks in advance, Elizabeth Bradley Code: Webform1.aspx.cs public class WebForm1 : System.Web.UI.Page { public delegate int MyDelegate( string username, string password); private void Page_Load( object sender, System.EventArgs e) { TcpChannel m_TcpChan = new TcpChannel(); ChannelServices.RegisterChannel(m_TcpChan); IAuthenticateUserService m_RemoteObject = (IAuthenticateUserService) Activator.GetObject( typeof (IAuthenticateUserService), "tcp://localhost/remoting2project1"); MyDelegate m_delegate = new MyDelegate(m_ ...Show All

  • Visual C# validat string start with 4 or 5 digit number

    Hi All, I'm able to validate if input string is number; however, is there anyway that I could validate if string is start with 4 or 5 digit number. String ValidateInput = comment.Trim(); Double InputIsNum; bool isNum = double .TryParse(ValidateInput, out InputIsNum); if (isNum) MessageBox .Show(InputIsNum.ToString()); else MessageBox .Show( "Invalid comment" ); You will find regular expressions to be allot more useful. Take a look at this code: string str1 = "12345shkdj" ; string str2= "1234shkdj" ; string str3 = "123shkdj" ; System.Text.RegularExpressions. Regex regex = new System.Text.RegularExpress ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Rendering a D3D Device in a Panel within a Form

    Hi All - I'm writing a simple application using Visual C# and have a Form with several Panel controls on it. I would like to render to some of the panels to provide multiple 3D views of models etc. I have successfully created a Device that is rendering to the desired panel correctly, but I notice when I resize the application window my D3D panel is "Flashing". It looks like it is rendering the background color of the Form then rendering. I notice if I set the Device to rending in a single Form (not within a panel on a form) I don't see the flashing problem. But of course I would like to render to the panel for my design. Any suggestions 1. If you're using the simplest implementation, y ...Show All

  • Windows Forms ClickOnce and Dotfuscator

    Is there a way I can use ClickOnce combined with the output from the Dotfuscator It seems that everytime I publish, it rebuilds a new one, so putting a output from the dotfuscator into the bin/release didn't work and replacing the deploy file with the dotfuscated file in didn't work either. id dearly love to know this as well!!! the dotfuscator site didnt have any detaisl abotu how to automate this process, but it would be a killer app if they coulde make it nice and simple :) ...Show All

  • Visual Basic Copy dictory

    Hello   I am trying to make my program to copy a folder and paste it to somewhere else. But it gives be an error when i try this. btw i am trying to make a timer do this. when i use my.computer.filesystem.copydictory will it then overwright the other files in the folder cuz i need it to do that... Just keep copy and overwright but if a file in the folder that is copyed from gets deleded it may not get deleded in the copyed folder   my code:   Public Class Form1 Dim hvor As String = "C:\Programmer\Wizet\MapleStory\GameGuard" Dim hvortil As String = "C:\Programmer\Wizet\MapleStory\GameGuard2" Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As Sy ...Show All

  • .NET Development Activator.CreateInstance(Type, args) issues with Nullable types

    Hi, I'm trying to use Activator.CreateInstance(Type, args) and I have a null as the first item in the args. The constructor of the object takes a Nullable type of int , so it is a valid argument. The weird thing is that I get this error: System.InvalidCastException: Object cannot be cast from DBNull to other types. I'm not passing a DBNull, just a regular null. If I change the constructor type to int, then the null gets passed into the constructor as a 0. Is there anything I can do besides check for 0 in the constructor and set it to null If this is truly a .NET 2.0 bug, how do I report it Thanks! I tried your code and it worked, so I went back and created a test with my class and i ...Show All

  • Software Development for Windows Vista CardSpace and Single Sign On

    Hello, When I have authenticated myself once to get a token for using a specific card, I don't want to be asked for authenticate again with the same card, for another RP, during the session. In fact, I want Single Sign On. Is it possible Just to double-check my assumptions, let me ask - does anybody know of anybody in the world who does not think that the future of identity on the internet will be, you know, 'card-centric' one way or another - for SSO purposes, as well as sharing/controlling profile information If there is such a person, who is it and what is their reasoning If there is no reason to expect that things will not be card-centric - other than the marketplace has not adjusted to the technology yet - then it ...Show All

©2008 Software Development Network