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

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

Stevooo

Member List

Robert-UTS
Norge
wessen
leecsone
Martin Montgomery
Warwick Jaensch
Mangix
StatlerW
Feint
Mario Moore
calabonga
TopSQL
Thomas Ott
TimSE
IrvineLewis
Amitkumar Jain
sl0140
Akwest
echobaseuk
anthonyjl
Only Title

Stevooo's Q&A profile

  • Visual C# Aborting and Managing Threads: The Dog or the Cat?

    Newbie here .... thanks in advance for your patience. I'm working w/ C# Visual Studio 2005 I've read up on all the comments about problems w/ aborting and suspending/resuming threads.  Lots of things to consider.  Looks kinda ugly on all fronts.  Note that I'm not thinking of using suspend and resume to synchronize threads.  I would like to just pause and then restart a particular thread from where it left off.  Worst case is to abort the thread. I'm not using a ThreadPool.  This is because some of my operations may take a long time (long running database access routines), may require different prioriti ...Show All

  • Visual Basic Problems with a CLASS

    Ok, here is my situation. I have created a class called “Calculations” in the main form of my project, I declare this class as   “Dim Calcs as New Calculations” and everything is fine and dandy, but In this same project I have another form where I also have to access the same class. So I do the same declaration to access the same class “Dim Calcs as New Calculations” For some reason other than I’m a rookie programmer wana-be , the values that I set while in a form other than the main form do not stay permanent, in other words, as soon as I exit that form, the value goes back to “0”. Can anyone help me on this one Thanks   W ...Show All

  • Visual C# Help with fonts and char size...

    I can find out where to get the actual height data about a particular font. But is there a simply way to determine the width of any given char in that font Thanks, Devin Try this; int charWidth = TextRenderer.MeasureText("a",myFont).Width; ...Show All

  • Windows Forms Context Menu Size

    Hi, is there a way to make the context menu bigger  make the bars in the context menu larger so its easier to select You can find a sample for OwnerDrawn Menu Items (this one adds Icons) right <a href="http://www.msjogren.net/dotnet/eng/samples/dotnet_iconmenu.asp">here</a>.  It should be a nice foundation for your efforts. ...Show All

  • .NET Development ExecuteNonQuery: Connection property has not been initialized Error

    laptop spec: XP pro Programs using: ASP.NET Web Matrix I am trying to create a webpage using ASP.NET Web Matrix that will accept 2 fields and then upload into the database. This a portion of code I have in C#: <%@ Page Language="C#" Debug="true" %> <%@ import Namespace="System.IO" %> <%@ import Namespace="System.Data.SqlClient" %> <script runat="server"> void Upload(Object s, EventArgs e) { SqlCommand dataCommand = new SqlCommand( "INTERT INTO SongDetails (SongTitle, SongArtist, Song" + "VALUES (@Song ...Show All

  • Windows Forms Alpha transparency for a form

    Hi. Consider this: I want a form that is completely transparent. On this form I want to draw shapes and images (using Graphics.DrawImage etc. ), that are alpha blended (the images are png with soft edges). Is there a good way of doing this Up until now, I tried using the TransparencyKey property on the form, but this does not give alpha blended transparency. Thanks Chris Is there noone who knows anything about transparency of this kind. Any suggestions are welcome! Thanks ...Show All

  • Windows Forms How to Use Mask Edit Control

      Hi All, I am a begginer in VB.NET and my project requires Mask Edit Control I have added the reference for that control but can anyone tell me how do i create ( drag and drop) that control in the form TO say i have added the reference of Mask Edit Control but i am not able to find the mask edit control in the toolbox Hi, Adding the Masked Eit control in the toolbox, you must right click the toolbox and choose Items. A Choose Items Dialog box will appear. Just find the Masked edit toolbox in the .Net Framework Components Tab...     cheers, Paul June A. Domag ...Show All

  • Windows Forms A problem with databinding

    As I know, in the .NET Framework 1.1, if I bind a string property of a type to the Text property of a TextBox and when I change the Text of the TextBox in code, the string property doesn't get updated. Only if the Text is changed by UI action, for example, input some text into the TextBox , the string property will get updated. What I would like to know is in the .NET Framework 2.0, if I use BindingSource, Do I have the function of updating source automatically if I change the text of a TextBox in code. Thanks, Chester ...Show All

  • .NET Development New System.Threading.Thread vs BeginInvoke

    Hi! I'm having the following dilemma on how to handle multi threaded operations. I have to handle the case of multiple of calls per second that must be executed asynchronously. Creating a new Threading.Thread object is a simple solution, however I dont think its the best choise, since thread creation and destruction overhead would be too much. Creating a delegate sub and calling BeginInvoke also creates a new thread. My Question: 1) Is there a difference in performance between the two methods 2) Do the two methods use a thread pool For instance, if 100 calls are made almost simultaneously, would 100 threads be created ThreadPool::Qu ...Show All

  • SQL Server Detach sql2000 msde database using SMO.

    Hello, I am trying to detach a database from an instance of msde 2000 using smo.  When I call the Server.DetachDatabase function using my valid server object I get the following error. "This method or property is accessible only while working against SQL Server 2005 or later." Does anyone know if it is possible to detach a msde database using the .net smo objects.   What I am trying to do is detach the database and then re-atach to an instance of sqlexpress.  I thought about just stopping the server and copying the mdf file to a new location but I cannot figure out how to sto ...Show All

  • Windows Forms Dataview Search with Wildcards

    Hello, The code below lets me search a dataset field called Category with an inputbox.  Is there a way to allow Wildcards to help in the search, If the search criteria is not exactly like the data in the dataset, it will not show.  Private Sub btnSearchCategory_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearchCategory.Click   &nb ...Show All

  • Visual Studio Team System Missing Default Rules?

    Hi all, I'm new to using FxCop and have been trying it out over the last couple of days. Now that I'm getting more into using it I've noticed something strange. I expect it's just because I'm new to it and seem to be missing something but could someone please clarify this for me Why does the Rules list under the Rules tab in FxCop not match up with the Rules list on GotDotNet (Naming Rules and http://gotdotnet.com/team/libraries/FxCopRules/NamingRules.aspx) Specifically, under the Rules tab in the Naming Rules, there doesn't seem to be the rule: Parameter Names are Camel Cased. Is it part of one of the Rules listed under the tab It's ...Show All

  • Windows Forms Datagrid totals

    Does someone knows how can i calculate the totals of a column in datagrid   Hello dear. Here is the good Idea to calculate datagrid columns: Bound you datagrid to dataset or dataview. Than use the following command. Syntax: DirectCast (DataSet.Tables("Table").Compute("Sum(Field)", "FilterAsString", Integer ) Sample to sum Amount field of Orders Table where order number is 1: DirectCast (DataSet.Tables("Orders").Compute("Sum(Amount)", "OrID = 1", Integer ) Same as  you can use Max(), Min(), Count functions Thanks ...Show All

  • .NET Development My Typed Dataset is Serializable, a single Row isn't?

    .NET 2.0 beta 2 Hello Community, I have a .NET Service which is able to return a whole list of Articles (Typed DataSet: ArticleDS including a DataTable ArticleDS.ArticleDTDataTable ) which works great. I have another Service Method which will return all Article Details when i pass in the selected Row (of Type ArticleDS.ArticleDTRow ) - which contains some columns i need to obtain the Details, i get a System.Runtime.Serialization.SerializationException telling me that ArticleDTRow is not marked as Serialized. The exact Message: System.Runtime.Serialization.SerializationException: Type "TransConnect.ArticleDS+ArticleDTRow' in Assembly ...Show All

  • Windows Forms Adding items to datagrid at runtime

    I have a system.windows.forms.form with a datagrid in it. in the load method i bind a dataTable into it. and i have a method that in runtime adds some items to the dataTable after an event. i did the following: DataTable dataTable =(DataTable)dataGrid.dataSourse; DataRow dataRow = dataTable.newRow(); dataRow[0] = "some string"; dataRow[1] = "another string"; dataTable.Rows.Add(dataRow); it works, but when there are more than 10 items (the max display without a scrollBar), the scrollBar is added. sometimes it's stuck, and if not, when adding a new item there are two scrollBars, and other freak things. When adding items "slowly" it doesn't alw ...Show All

©2008 Software Development Network