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

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

TheMaj0r

Member List

rmmcgr
GreenStone90
winstonSmith
Thiru_
Pure Krome
Neo2001
I am Mats
TomBB
eriklarsson
herbfl
rickd24
Eng. A. Kilani
Lee John
cikitani
Greg Allen
Tihomir Ignatov
GazCoder
Alexandru Halmagean
Dan.Jurden
ParityBit267563
Only Title

TheMaj0r's Q&A profile

  • Windows Forms Draw line in a user control...

    Hi, I am trying to draw a line between two point in a usercontrol or panel, Here is the way I want the program to run: (1) user click some point in the control, and will be marked with a black rectangle. (2) then whenever user move the cursor inside the control I want to draw a line from the cursor back to the black rectangle, but it's not a fix line as while the cursor(mouse) is still moving the line will be too. I managed to do the first step, but I am stuck in figuring how to do (2). Can someone help me with this I hope I am posting in the right room... Thank you, Listen to the MouseMove event and invalidate the control and store the mouse location in the event handler. Then in your Paint event handler you dra ...Show All

  • Visual Basic Generating text around an arc in an image file

    I am new to this, so please, if I am in the wrong place, tell me the proper place for this question. I am trying to generate a graphic programmatically with dynamic text. The graphic should display text written around a circle, as if on an arc, and the text itself should be angled so that if you underlined each letter, the underline is perpendicular to the center of the circle. I had code that did this in VB6, using a LOGFONT and it works really well. However, the VB6 code printed directly to a printer. I am upgrading the code to VB.NET 2005, and because of outside constraints, I need to output directly to an image file which will be printed later. I had problems using LOGFONT, namely that it did not "tilt" any of the ch ...Show All

  • Visual Basic How to set the install path for application

    I noticed that my app doesn't install to the Program Files directory as VB6 does it. Instead, the wizard creates a jumbled multi level directory and sticks your app in there. How can we change that Thanks. I'm trying to get the Setup included in the project - somehow, somewhere. VS has no organization skills whatsoever. Programs always go in the Program Files folder. Creating a random (who wrote this stuff anyway ) directory each time, is a mess! You can install the files multiple times and don't even know it. Under VB, it would have told you folder/files already exists, do you want to overwrite Instead, you have a bunch of jumbled folder names each time you run setup. Even the uninstall referenc ...Show All

  • SQL Server DataFlow suggestion

    I am transfering data from a textfile to sql server.I use a data flow task for trasfering my text files. Here is what i do. 1.Add text file source What i want to achieve here is if the text file countains the column name in the first row i should delete them and if it does not contain column name in the first row just transfer it. how can this be achieved 2.add one more column to my text file which should contain the status(insert or update). how can this be done 3.before transfering data ot destination i want to know if the record exists if exists i just want to update it instead of insert.and if new record i want to insert it .and the status in the above new column need to change. please help... ...Show All

  • .NET Development Error in Addition of Double Variables

    Hi, This is Aravind. I got an error due to addition of two varibles which is declared as "Double". It shows the wrong sum up. Sample Code is as below: Dim amt1, amt2, z As Double z = 0.0 amt1 = 74.68 amt2 = 168.49 z = amt1 + amt2 The Answer should be 243.17 But ...It shows "243.17000000000002"..... Why it happens ....it will leads to Big problem.... when summing up the Money values.... Can u please clarify this.... Its urgent.... Regards Aravindkumar.P SQL's 'real' data type is the same as .NET's 'Single' type. SQL's 'float' matches .NET's 'Double'. 'decimal' and 'money' roughly match 'Decimal'. SQL uses the same floating ...Show All

  • Visual Basic Is it possible to make a parent form a child form of another form vb.net?

    Hi! I am new here as well as the programming language I am using. I am working with forms now and I just want to ask if it is possible to make a parent form a child form of another form What i want to do is something like this (grandparent ->parent -> child) When I set the parent as a child, it gives me the error that I can't set the parent as a child. Thanks in advance. You never indicated that you wanted MDI forms :) You can only have one MDI container. You cannot have MDI Containers as children of other MDI containers (which is what the error is telling you). However, you can have forms within forms, as I stated: so your MDI container is the 'grandparent', the MDI Children are actually pare ...Show All

  • Visual C# Advice Troubleshooting Memory Leaks Using PInvoke

    I have made an application in C# that uses a lot of PInvokes to the Win32 that create shared memory using VirtualAllocEx and more. I have a pretty bad memory leak now. Surprise! I have no experience dealing with this problem. What is the best way to find memory leaks in NET Or do i simply try random things and cross my fingers Basically, manually trace through everything you do to that pieve of memory, and make sure that nothing in your code will cause it to leak, or somehow be overlooked by your deallocation code. ...Show All

  • SQL Server Add space between matrix row group

    I have a 2 row groups in a matrix and I need to add some space between the top one so that all the columns don't run together. Is there a way to do this Would you still want the tables to appear horizontally next to each other Have you considered placing the matrix in a list control and adding a groupping by subject This would effectively give you a matrix per subject but they would be layed out vertically. ...Show All

  • Visual Studio Team System Does Team Foundation Explorer work with Vista RC1 & Office 2007 B2TR?

    Does team founcation explorer (TFC) work with Vista RC1 & Office 2007 Beta 2 technical refresh I noted that the TFC install wants to deploy VSTO 2.0 & the Office 2003 PIAs which would seem outdated for at least the Office 2007 portion of the environment. ...Show All

  • SQL Server alter databse TestDB set TRUSTWORTHY on fails

    Hi all, When I try to execute the following command: alter databse TestDB set TRUSTWORTHY on I get this error: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near 'databse'. Msg 195, Level 15, State 5, Line 1 'TRUSTWORTHY' is not a recognized SET option. Can someone tell me why Thanks in advance. Hi Madhu, Thanks for the quick response, but there is no SQLServer 2000 on my PC or my laptop. My laptop has Win XP and SQL Server 2005, and my PC has Vista Ultimate, with SQL Server 2005. The command was executed in Management Studio, which SQL Server 2000 does no have. Thanks. ...Show All

  • Software Development for Windows Vista Parameters (in/out)

    Hi, I am new to the WWF world and have simple questions. I have an application that sumbits and order via a Standard .NET WinForm. I need to validate just the order value that is greateer than X then fails else approves it. I have a Worflow that houses one activity (for now) which validates the value. This activity has a property called "OrderValue" and a property called OrderID (if approved this will be populated). What is the best way of passing the order value to the activity from the WinForm, do I pass it to the workflow itself and the workself will then have to pass this to the activity or do I need to access the acivity from the WinForm Also how do I get a result back at the end of the workflow Manys tha ...Show All

  • Software Development for Windows Vista Distributed Workflow using WF

    Hi, I have a sequential Workflow which consists of activities say, A B and C. I need to execute them in a distributed environment i.e. Activity A and C on Machine A and Activity B on Machine B. Is there a built in support to realize this in WF and if not, are there ways to realize this using the runtime services provided in WF Rgds Giri Hello Serge, The approach of what you suggested of runtime subscribing to activity A close event doesn't seem to work. Within the handler of the close event, I tried calling instance.TryUnload(). There is an exception since this operation is not permitted from the runtime thread. So I posted this on a seperate thread using QueueuserWorkItem(), however ...Show All

  • SQL Server Checkpoint restart

    I have a package that uses checkpoint restart. It is resposible for truncatings many sets of tables and then loading them. There are several ExecuteSQL tasks to truncate the tables and several corresponding data flows to accomplish the loads. If a load fails I want the corresponding truncate task to be part of the restart otherwise duplicate data may be loaded. Normally, SSIS will start at the failed task. I read something about containers that led me to think that if I put the truncate & matching load pair in a sequence container that the container would be the restart point, but either I read it wrong or it's not working that way. Anybody know how to accomplish what I want to do Mark Cha ...Show All

  • Visual Studio 2008 (Pre-release) How to hide a ColumnDefinition which has a GridSplitter?

    Hi! How can I hide a RowDefinition/ColumnDefinition after it has been resized by a GridSplitter <Grid>  <Grid.ColumnDefinitions>   <ColumnDefinition Width="Auto" x:Name="LeftColumn" MinWidth="100" />   <ColumnDefinition Width="*" x:Name="DocumentColumn" MinWidth="100"/>   <ColumnDefinition Width="Auto" x:Name="RightColumn" MinWidth="100" />  </Grid.ColumnDefinitions>  <Grid.RowDefinitions>   <RowDefinition Height="Auto" x:Name="TopRow" />   <RowDefinition Height="*" x:Name="DocumentRow" />   <RowDefinition Height="Auto" x:Name="BottomRow" MinHeight="27" />  </Grid.RowDefinitions>  < ...Show All

  • Visual C# Why don't we use header file and Main in class

    Hi 1-)In c# why don't we need header files What does c++ miss.So it needs header file but c# not. 2-)In c++ main() is not in a class.Main() is called by OS.It is a special function.But in C# it is also in a class.For example: class Exercise { static void Main() { Console.WriteLine(); } } Here this is confusing thing.Why do C# designers force us to put main in a class Does OS instantinate Example class for calling main().If not what is the magic behind this rule Thanks. ok my first questions answer is metadata.Thanks carlop. But for main() question i think maybe there can be some different purpose. OK Maybe i must ask so: Also is main() must be in a class for a language that want to be truely oo. ...Show All

©2008 Software Development Network