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

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

pjtaylor

Member List

Sandeepp
ryanlcs
Wayne Arant II
Markus Fritz
Timmy0614
Jeff Wyrick
GRK
jmelvin
gala123
DaPosh
marcyduan
Luis Fraile
voila jacques
laqula
Tom Lake - MSFT
ForEverLearning
dy_namit_e
alan32818
Bluehunter
AaronL
Only Title

pjtaylor's Q&A profile

  • Visual Basic Fixing a NullReferenceException

    What would be the correct way to do this SubGroups(0).IsGroupMember(0) = False Here is my function but I get an error about NullReferenceException. Private Function GetSubGroupIndex( _ ByVal Title As String , _ ByVal CreateNew As Boolean ) _ As Integer '-1 if not found or created Try '$ GetSubGroupIndex Dim I As Integer = Nothing Dim Found As Boolean Dim SubGroupCount As Integer = Nothing Found = False GetSubGroupIndex = -1 For I = 0 To SubGroupCount - 1 If (UCase(Title) = UCase(SubGroups(I).SGName)) Then GetSubGroupIndex = I Found = True End If Next I If ( Not Found) And CreateNew Then Su ...Show All

  • Windows Forms When CheckForIllegalCrossThreadCalls == true, does the framework inform of ALL the control access errors?

    Hello, When I set the Control.CheckForIllegalCrossThreadCalls to true, Visual Studio generates an exception each time I try to access a control from a thread other than the thread on which the control was created. However, in some cases this exception is not generated. For example, I am using the ComponentOne Chart ( www.componentone.com ), and I am able to update the graphs of the chart from another thread without Visual Studio generating an exception. However, in 1 case out of 10, an exception is still generated, by the control itself, although visual Studio does not inform me that I am accessing the control illegally from another thread. That is, is seems that the framework (Visual Studio) does not inform of ALL the illegal acc ...Show All

  • Windows Forms passing data between 2 datagridviews

    Hi, How to pass data/rows from between 2 datagridviews For example: datagridview1 item id(txtbox) || item desc(txtbox) || 100(chkbox) || 200(chkbox) 1 || apple || (checked= Y) || (checked = N) 2 || orange || (checked= N) || (checked = Y) When user click on the specific row, it will transfer all the 4 columns and the row values into datagridview2 datagridview2 item id(txtbox) || item desc(txtbox) || 100(chkbox) || 200(chkbox) 2 || orange || (checked= N) || (checked = Y) Thank you for the help. Hi, TommyGL ,         W hat yo ...Show All

  • Visual Basic Needing Some Knowledge About Visual Basic

    What are the limatations of Visual Basic - I am familiar with html, and dhtml, I'm learning CSS & C+ currently. -- Anyway, my hobby is making all kinds of websites. My cousin wanted me to make her a virtual pet site. Like Neopets R something interactive, where you can have items, stores, pets, and stuff like that. I don't know how to make this, and I've been trying to learn for what seems like forever. However I don't know what to search for to learn this. I found Visual Basic yesterday, and it is soo much easier than notepad. I haven't found out everything about it yet, and I was hoping someone can point me in the right direction, what to search for to learn how to make a virtual pet site.. I know it sounds childish but it's imp ...Show All

  • Visual Studio VSTA and ClickOnce deployment

    Hi, Is it possible to deploy a VSTA application supporting macros by using ClickOnce I saw that we need to write keys to the registry to enable the IDE (macro) and this is one of the ClickOnce restrictions. Is there a "how to" deploy VSTA application with ClickOnce Thanks Hi, About this observation, and the other one in a separate thread, when you get no answers for a question it could be that: - The question is not well formulated, it does not have enough data, etc. This does not seem your case, but I see it quite often. Quite a few people don't bother to say if they are using VS.NET 2003 or 2005, if they are building an add-in or a VS SDK package, they don't provide sampl ...Show All

  • Visual Basic Printer Compatability PowerPack with VB.NET 2003

    Hi, I've downloaded the Printer Comp PP to see if it will work with vb.net 2003. When I follow the instructions to add the .dll file as a reference to my project, I run into a problem. The .dll file doesn't appear on the list in the Add Reference Dialog Box, so I have to browse for it. Then, when I click OK, I get an error box saying, "A reference to 'C:\..... .dll' could not be added. This is not a valid assembly or COM component. Only assemblies with extension '.dll' and COM components can be referenced." Yet this file does end in '.dll'. Is this because VB instantly recognises that this library won't work with vb 2003 Any ideas ...Show All

  • SQL Server RS 2000, Forms Authentication, Argument Exception adding auth cookie to the web request for graph

    Hello, I have run into a strange problem with RS 2000. I have a base class that will call a reporting server web service, render a report to pdf, then write the report output to the stream. This has worked fine for me for reports. However, when I render a graph to pdf, I get the following exception: [ArgumentException: cookie.Domain] System.Net.CookieContainer.Add(Cookie cookie) +583 Learning.Common.Reporting.ReportServerProxy.GetWebRequest(Uri uri) ... I only get this exception in our staging environment, not locally. Here is a code snippet from the ReportServerProxy class, but it is pretty textbook according to the MSDN samples.. public class ReportServerProxy : ReportingService { protected override WebRequest GetWebRequest(U ...Show All

  • Architecture WebServices or SQL replication

    Hi, I need to develop an ASP.NET application that must connect to several different databases. Those databases are on SQL servers (except one) which are not exposed outside of the company. The application will be host on a public area. Then, I'm working on 2 different solutions for this application to get its data : * SQL Server replication : Replicate data from the private area to the public area in a new database. + Performances for the web application - Data duplicated - Conflict management (risk of concurrent updates) * Services oriented : Expose web services from the private area + Easy for others applications to get data (hide the complexity of the sub system) + More secure as no SQL server exposed to outside ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DirectX9 for per Pixel Rendering

    Hello I'm developing an app wich must render 2d graphics in real time, so I've decided to use direct3d9. I want direct3d to render the vertices pixel per pixel. Is it possible I've only done 3d stuff... Thx! I had the same problem of speed when I try to draw Wave file You could address a texture by pointing the x,y you need on it with pointer and draw your pts this way in the texture and simply render a quad aligned to the screen using the resulting texture This would draw very fast your signal in a simple BMP format texture offscreen and the render is very fast, basicly that is what GDI was doing when it used BMP to speed the render... In RenderMonkey you have some sample of Pixel Shader drawing on a quad align sh ...Show All

  • .NET Development What is the best approach for mapping external data? Any ideas?

    Hi all: My boss and I are having discussions on what is the best way to migrate data from one (unknown) database to our database. Let me explain: We are looking to develop an application that should be able to attach to any ODBC database to grab data or individual records and import them into our database. Here's the problem, we may be unfamilair with the database or how the tables are laid out, we don't know where the data is located (up to their DBA), it could be normalized where our database or table is not, etc... I wanted to have the DBA for the database we are attaching to create a view of some sort or "export" the data into a specified format and then our application just do a field-to-field read into our da ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Generating More Random Numbers

    I'm currently using the following code to generate a random number between 0 and 6: Random random = new Random(); int rand = random.Next(6); It seems to repeat some numbers quite frequently though. What I'm wanting to know is if there's a better way to generate random numbers that seems more... random You're not creating a new Random instance everytime are you Each Random instance starts with the same seed, unless you pass one in to the constructor, so you will get the same sequence of random numbers each time. Usually you would create and keep a Random object and then just call Next() whenever you need a number. If the problem is that you don't want the same sequence of random numbers everyt ...Show All

  • Software Development for Windows Vista Visual Studio 2003 hangs on Vista Build 5472

    If I try to use the "Find in Files" feature of VS 2003, it just hangs VS and you can only kill the process. This happens when you select search in Entire Solution or Current Project. Note: I have launched VS to run using Administrator. This did not happen on Vista Builds 5342 or 5308. Is there any workaround I guess this strange issue depends on the hardware: I'm working on an AMD Athlon PC and it hangs, but on a Pentium workstation it's working fine. ...Show All

  • Visual Studio Express Editions Question on Form1.Load event

    Hi, This has to be a simple problem; tonight I'm unusually dense. I have a simple application that has a Start button. The Start button calls a subroutine DoIt(). I'd also like the DoIt() subroutine to be called when Form1 loads. The Form1.Load eventhandler has a single statement; DoIt(). The Start button works fine; DoIt() is called, but the Load event handler does not DoIt()! I have tried to DoIt() from different Form1 eventhandlers i.e., Activated and Shown, but they don't DoIt() either. DoIt() reads default data from two Form1 textbox controls, does some calculations, and writes the answer to a textbox. How can I DoIt() when the Form1 loads Thanks. Hi GrandpaB, There's a series of short articles on devcity that walks ...Show All

  • .NET Development SqlMembershipProvider, use from WindowsForms with not trusted connectionstring?

    Hello, i use the Login controls supported by ASP.Net 2.0. But i have some problems... :) I have an application with two GUI-s: - winforms (the core, maintenance, etc.) - asp.net 2.0 (basic public functions) So, i had to solve the problem: create/manage users form winforms - it's not a big deal: [problemsolver article ]. But! What is when i have users with a not trusted connection ! So, the connection stirng might be look like this: string conStrFromConfig = @"server=srv1\sql2005;Database=MyDB;trusted_connection=no;"; When the application starts, ask for the user name and password. When clicks Login: conStrFromConfig += "user id=user1;password=xxx;" Then everything is ok, connection can be estabilished with the db server ...Show All

  • Windows Forms missing row in datagrid

    for some reason i am missing a row in the datagrid; the row is present in the table. first i have a method which inserts multiple rows in the table using the 'insert into' so the first row that is intserted is actually at the bottom of the table. then when displaying the data in a datagrid i dont see the first record inserted (ie the last row) in design view if i choose to preview data in the datagrid then i see ALL the rows. any ideas thanks heres the code that populates the table Private Sub process_gvmoi( ByVal inFile As String , ByVal outFile As String ) Dim ifs As FileStream 'Dim ofs As FileStream ifs = New FileStream(inFile, FileMode.Open, FileAccess.Re ...Show All

©2008 Software Development Network