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

Software Development Network >> Patrik Schneider's Q&A profile

Patrik Schneider

Member List

vbgeek3
DaaDa Ng
qbnsoftware
Adam_W
Peter Kryszak
ChristosX
SzKane
Gantous
Greg B.
高?
Alexander Aza
brsphere
TheShiner
Jan Bannister
Bill Griffis
Mario barajas
KWWF
SteveS
oaktown
Gidon Shavit
Only Title

Patrik Schneider's Q&A profile

  • Visual Basic showing a new form in vb .net

    okay, this is going to sound really stupid, but i can't figure out how to open another form in vb.net. in vb6, you could just say: Private Sub command1_Click() form2.Visible= true End Sub or: form2.Show but it isn't so easy in vb.net. i've figured out that to change most of the properties of a form in vb.net, you have to use MyBase , but that doesn't work well if you want to open a different form. please help. sonny jim Sonny, Try this code Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Glob ...Show All

  • Windows Forms "Always on top" application

    How do I "always on top" application in WinXP   TopMost  property doesn't help me. Thanks. TopMost property should work, but if you have a DataGrid on your form it may not want to be topmost.   The workaround for this is to grab the handle in your constructor (anytime before you show the thing, really) IntPtr pt = dataGrid1.Handle;&nb ...Show All

  • Windows Forms UserDeletingRow fires four/five times

    I have a datagridview and I implement the event UserDeletingRow When I select 1 row and I press the delete-key, the UserDeletingRow event is firing 5 times. So when you look to the code, you can see I have to answer five times "are you sure..." private void dgv_UserDeletingRow( object sender, DataGridViewRowCancelEventArgs e) { if (!e.Row.IsNewRow){ string str = "" ; try { str = ( string )e.Row.Cells[0].Value; } catch { ;} DialogResult resp = MessageBox .Show( "Are you sure \r\n " + str, "MyApp" , MessageBoxButtons .YesNo, MessageBoxIcon .Question, MessageB ...Show All

  • SQL Server File System Task Problem

    I'm trying to realize a file system task that rename files from a foreach loop container. So that means the task have a variable in the source connection. This variable got the value (as an expression) of "c:\\.....\\" +@[User::ForeachloopVar ]. But an error message appears when i run it.The message is File System Task: An error occurred with the following error message:  "The given path's format is not supported." When i don’t use the variable in the source connection it works fine. Anyone knows what might be the problem Thanks. If you receive an error when the package starts saying that a source or destination placeholder ...Show All

  • Visual C++ UNC

    In the documentation for the CreateDirectory method, it is mentioned that UNC names can be written as UNC\filename. Cant we just use " \\\\ " instead. Also, in one of the cases, I found that a certain code generates a directory path as below: \\xxx\dir1\/dir2 (Note the consecutive backslash and front slash) When the above is given to createDirectory, it correctly creates \\xxx\dir1\dir2 but when I try to use the \\xxx\dir1\/dir2 on my windows explorer, it doesnt work. Any suggestions Thanks, Windows file names cannot contain the / character, thats why you are getting this error. It correctly wo ...Show All

  • .NET Development Application won't start without Visual Studio

    In our project we made a small application which uses dll-files. The problem is that the application won't work in a computer that has not Windows Visual Studio .NET environment installed. The latest version of .NET Framework has been installed on our environments and on the target computer we are testing with. When starting up the application nothing happens, not one error message. Also, applications made in the same environment without any dll-files work fine in the target computer. Dll-files are located in the same directory that the executable file but the application doesn't seem to find them anyway. Any idea how to make our applica ...Show All

  • Visual C++ Problem compiling a program

    Hi all, recently i had to work on a program which was running ok on VC++ 6. Due to certain restrictions i only can work with visual studio 2005 express beta 2. When i tried to compile the program in VS 2005 express beta 2, i got these errors which never occurred in VC++ 6: Compiling... STDAFX.CPP Compiling... Database.cpp DatabaseMarpos.cpp DataCom.CPP DBMarpos.cpp EBlockEntry.cpp EBlockLabel.cpp EdcsSettings.cpp EDCSSetupDialog.cpp extendedEBlock.cpp fileDB.cpp FisApiInterface.cpp c:\hsanew\datacom\fisapiinterface.cpp(400) : warning C4996: 'sscanf' was declared deprecated c:\program files\microsoft visual studio 8\vc\i ...Show All

  • Visual Studio Remove Solution from Source Safe

    Dears, I faced a problem of "Unable to load one or more breakpoints" error whenever I load my project/solution. (This happen even I manually remove/add a project in/out of my solution). So now, I want to remove my solution from the source safe (which is not so reliable now) but my VS 2005 hang when I click "File", Source Control, Change Source Control Is it the only way for me to retract my solution from VSS Thanks. Start Visual Studio from the start menu (start - programs - microsoft Visual studio) and remove the solution from there. Sven ...Show All

  • Software Development for Windows Vista Deploying WWF Beta 2...

    Hi, I've got a problem - my workflows work on the development pc but not on the production server. I'm using WWF Beta 2, both machines are in a very similar hardware configuration. The error message that i'm getting is: "Cannot create more than one WorkflowRuntime per AppDomain". The way that i'm creating WorkflowRuntime object is as follows: public WorkflowRuntime WFRuntime { get { if (_runtime == null ) { try { _runtime = WorkflowWebRequestContext .Current.WorkflowRuntime; } catch ( Exception ) { _runtime = new WorkflowRuntime (); } } return _runtime; ...Show All

  • Visual C++ error LNK2005: "void __cdecl bp5(void)" (?bp5@@YAXXZ) already defined in test.obj

    Hi All, I generated a simple SDI skeleton using the wizard, and tried to #include some of my libraries. It gave me a bunch of 'LNK2005: ... already defined ' errors. I repeated the basic SDI generation in another project and this time only tried to include a single, trivial header file: mytest.h #pragma once //#include "stdafx.h" void bp5(){  int a = 0;  a+=1; } I include this file in the testDoc.h file of my test project. Despite that this simple header file is so basic, and despite the #pragma once directive, it still gives me the same LNK2005 error! Can somebody kick me and tell me what's wrong Thanks ...Show All

  • SQL Server Doing a data import using DTS Wizard in SQL Server 2005 - being efficient with 5 flat files

    I just spent some time working out how to do a seemingly simple task. I’m sharing the steps I took to do this in hopes it saves other SQL Server 2005 users (especially newbies like myself) time. My original question posed on several SQL newsgroups was based on this goal: I'm importing a series of 5 flat files (all with same file layout) into a database on one of the SQL Servers we have using SQL Server 2005 (SQL Server Management Studio) . My goal is to get 5 different tables. I want to do this without having to redo all the layout criteria 4 additional times. Below are the steps I followed to get a solution (a ...Show All

  • Visual Basic Datagridview "HideSelection"

    I'm using an unbound datagridview to display information, and I need to color-code certain cells to alert the user to status events. Is there a way to not have the selected row highlighted when the control does not have focus (similar to the VB6 .HideSelection property) I would explore using the DataGridViewx.SelectionChanged method to test your condition and if not met, set the Style.Backcolor to normal - else set Style.Backcolor to the row highlight color. ...Show All

  • Visual Studio Team System Disk Space requirement during installation

    We're installing BETA 3 Refresh on a Virtual Server for testing purposes prior to developing a production machine.  According to the installation scan, we have met every requirement except disk space.   The virtual image has a hard drive of 9.98 GB.  There are 5.02 GB of free space remaining for the install. Looking through the install documentation, there are recommended hard drive sizes, but I don't see a required minimum hard drive size.   Aside from just randomly making a larger hard drive, is there a known minimum amount of free space required Thanks in advance. - Short on Drive Space (I know it's che ...Show All

  • SQL Server Error Number : 29503 The SQL Server service failed to start.

    Is there a trick to getting this installed correctly Everything works great until it gets up to starting the service. Here is the complete section of my setup log file. SQL 2005 Standard. Machine : KINGSERVER550 Product : SQL Server Database Services Error : The SQL Server service failed to start. For more information, see the SQL Server Books Online topics, "How to: View SQL Server 2005 Setup Log Files" and "Starting SQL Server Manually." -------------------------------------------------------------------------------- Machine : KINGSERVER550 Product : Microsoft SQL Server 2005 Product Version ...Show All

  • Visual Studio 2008 (Pre-release) How do you read a lambda expression?

    Hi All, I am trying to figure out how to read out loud a lambda expression.  For example if I have the following i => (i %2) == 0 or c => c.Age < 50 etc. How would I read them to my children Cheers, Clint I think how a lambda expression is read depends on the context in which it is used.  For example, In numbers.Where(num => num < 5), the lambda expression is a predicate, so the lambda can naturally be read as "num where num is less than 5". In numbers.Select((num, index) => new {Num = num, InPlace = (num == index)}), the lambda expression is a projection selector, so I would read i ...Show All

©2008 Software Development Network