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

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

Deza

Member List

Paul Baudouin
Dan10468
Cem DEMiRKIR
dagfari
Brandon Tucker
Daikoku
C#noob
James Asher
ArthurTLK
Dave_Novak
kissii
Darril
Steve Dunn
Kashif Arshad
JustinS
sgibson
Bastiaan Molsbeck
SQLServer2050
Mustansir - MSFT
Zapp
Only Title

Deza's Q&A profile

  • .NET Development DataAdapter.Update is not updating the source database

    Hello all, I have a dataset that contains new rows. But these rows are not been added to the database table when I call the update method. The program runs without any errors but there is no data when I view the table. Thanks. The code is below: SqlConnection cn = new SqlConnection(conStrGetMembers); SqlCommand cmdGetMembers = new SqlCommand(strPullMembers); SqlDataAdapter adapMembers = new SqlDataAdapter(strPullMembers, cn); DataSet dsExistingMembers = new DataSet(); cn.Open(); adapMembers.FillSchema(dsExistingMembers, SchemaType.Source, "Members"); adapMembers.Fill(dsExistingMembers, "Members"); cn.Close(); ...Show All

  • Visual Basic VB.Net String Pattern Matching

    Hi, I created a post here yesterday about copying/searching, now there's another part. I need to know when I perform a search how to invoke string pattern matching, if i was to type any specific data, i.e. A12345 or B54673 and so on. Can anyone help so you wish to do a search when the user presses the button The above code does just that. As you learn to develop more and more you will realize that having functions or sub methods of your own will be handy so you can call them from anywhere within your class instead of just a button click for example. All you need to do is place the pattern matching code in the function and that's it The function returns a boolean meaning true or false. So it d ...Show All

  • Visual Studio Express Editions Working with classes

    Hi, I am learning C# and I am still little little confused about classes, methods... here is what I am trying to do: I have a class in seperate file. Inside that class I have a method . From that method I would like to change text property of label on my form . This form is generated with designer and is in different file and in different class but in the same namespace . Any suggestions That works now. Thank you. But I still don't fully understand what is actually happening. So in MyClass new instance of Form1 is created private Form1 mForm; that is an object that its type is Form1 and takes its own block of heap memory. Then there is a constructor in MyClass that takes one Form ...Show All

  • Windows Forms Control textbox, promtly

    How I can limit textbox control So, when I must input decimal number, but, if I make mistake and input text or integer, system must alert me that I can input onli decimals numbers. I know for maskedtextbox. Dou you have another choice. Please help me and thx. one other way would be to implement a textbox keypress event, then check to see if the key pressed is a number, if it isnt, handle the event (cancel imput)   private void textbox1_keypress(object sender, KeyPressEventArgs e) {    if (!Char.IsNumber(e.KeyChar) && !Char.IsControl(e.KeyChar))    {       e.Handled = true;       MessageBox.Show("Only numeric input please!"); ...Show All

  • Visual Studio 2008 (Pre-release) How to compare SolidColorBrush

    Hi, I'm trying to find a way to compare the color in the SolidColorBrush, so I could sort a list of SolidColorBrush. Thanks in advance. public int Compare( Color x, Color y ) { System.Drawing. Color xColor = System.Drawing. Color .FromArgb( x.A, x.R, x.G, x.B ); System.Drawing. Color yColor = System.Drawing. Color .FromArgb( y.A, y.R, y.G, y.B ); int alphaDiff = xColor.A - yColor.A; float hueDiff = xColor.GetHue() - yColor.GetHue(); float saturationDiff = xColor.GetSaturation() - yColor.GetSaturation(); float brightnessDiff = xColor.GetBrightness() - yColor.GetBrightness(); return ( int )( ( ( alphaDiff * 360 + hueDiff + saturationDiff ) * 255 + brightnessD ...Show All

  • SQL Server how to set up database diagram in SQL Server Management Studio Express

    After i created my database, i want to set up the database diagram, when i click "new database diagram", one message came out   "Database diagram support objects cannot be installed because this database does not have a valid owner.  To continue, first use the Files page of the Database Properties dialog box or the ALTER AUTHORIZATION statement to set the database owner to a valid login, then add the database diagram support objects."   why my database do not have a valid owner and where is the "ALTER AUTHORIZATION statement Recording to the message, i go to my database "Properties" and click "files" , then i saw the "Owner" item, i click the browse, i read the examples,  but i do not understand it: ...Show All

  • SQL Server General Network error even good connection and small amount of data

    Hy everyone, I have a problem at pulling data on PDA using Sql Mobile 5 from Sql Server 2000. It work s for most tables, except for two . Every table of those two has about 1000 records and every record about 150 bytes, so all data is about 150 kbytes. When I connect to the Sql Server 2000 through LAN, no problem. But when I connect through GPRS - VPN, the error occurs. But, the PDA- phone connection is via Bluetooth and at ping no TimeOut appears, the replies are about 600-700 ms. When connecting with a desktop computer through GPRS no such problem occurs. So , I don't know what could be the cause: the connection or the Sql Mobile which doesn't retry enough in case of error to transfer all data . A specialist from the GPRS ...Show All

  • Visual Basic Adding a right-click function to a control

    I hope someone can help me out with this. I'm trying to add a function to a button when it's right-clicked , but I can't find any way to do it. Thanks (in advance!) for helping. Hi Suliman, Well use hte Mouse_Down event and you can easily determine which button is pressed and take the required action.. Hope this answers the question.. Regards Ahmad Microsoft Student Partner - India ...Show All

  • Visual Studio Change database name in runtime (VS 2005)

    I have a report in Visual Studio 2005. I implemented it with assistant designer. When this report don't find database shows a window: ------------------------------ ------------------------------ -------------------- database connection ------------------------------ ------------------------------ -------------------- - Server name : c:\mydatabase\name.mdb (this text box is disabled) - - Database: c:\mydatabase\name.mdb (this text box is disabled) - - Login: (this textbox not disabled) - Password: (this textbox not disabled) ------------------------------ ------------------------------ -------------------- How I can modify content of textboxes "Server name" and "Database" in runtime I'm looking for around ...Show All

  • Software Development for Windows Vista Linker problems with VStudio 2005 and DirectShow

    Hello all, I'm currently doing some porting of projects from Visual Studio v6.0 to Visual Studio 2005. A number of these projects are filters that use the DirectShow API, which is installed on the computer as part of the DirectX v8 SDK. While VS2005 is able to update the project files etc. all right, when I try to create the filters, I get linker errors related to the DirectShow library, strmbase.lib. Currently I am using a version of strmbase.lib that was built using Visual Studio 6, and using the project/workspace files that comes included with the SDK. An example of the set of linker errors I get are as follows: Creating library .\Release/AudioResample.lib and object .\Release/AudioResample.exp Aud ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Creating .tga UVwrap for XNA?

    Hi, I am new to this, but I have 3ds max and the DirectX SDK along with XNA GSE. In the tutorial they have a model (.fbx) and its texture wrap (.tga). I want to use a different model. I import one into 3ds max and it loads and the textures/materials are wrapped on it. I export the model to .x (which XNA can use too I believe) and now need to create a .tga that XNA can wrap it with. Thanks for the tip to this. Darren You have to assign the material to the object in 3D Studio MAX. I would search around for some tutorials on the subject that would help you get started. http://search.live.com/results.aspx q=3D+Studio+MAX+Texture+Tutorial ...Show All

  • SQL Server SQL Query Help

    I got a form to return a cd by just entering the movies id. What i want it to do is add a fine to the user if the cd is late and then add it. So i know i need to times the price by dayslate. Rent table contains: cd_id, Member_id, date rented, datedueback, returnedDate, dayslate cd table: cd_id, title, price_band price band: price_band, price, daysRent Member: Member_id, name, fines, noof_cds_rented How should i go about doing this and most of all what would the SQL be to do this Change of plan guys was making it to complicated for myself. What i'm going to do is have two SQL querys. What i need to do is just get the the price of the cd being returned. For this i ...Show All

  • Visual Basic Graphics Not Displayed on my form

    I am a struggling newbie to VB 2005 and am having difficulty drawing any graphics on a form. I don't get any error messages, but at the same time, I don't get any graphics drawn on the form. I created a toolbar button that should draw an ellipse on my form when I click on it, Here is the code for that button. Does anyone have any clues as to what I am doing wrong...this code is straight from the book yet fails to work Private Sub ToolStripButton2_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton2.Click Dim myPen As New System.Drawing.Pen(System.Drawing.Color.Aqua) Dim formGraphics As System.Drawing.Graphics formGraphics = Me .CreateGraphics() formGraphic ...Show All

  • .NET Development Parameters.Add - @MyParam doesn't get resolved with Advantage DB server

    First of I gotta say that "Advantage" was THE WORST database that I've ever had experience with and it's only got 5% SQL support from my experience. It's supported by their own OleDB driver, but I'm not sure if this problem lies in there. Here's what I'm trying to do: OleDbCommand c = DBConnection.CreateCommand(); c.CommandText = "UPDATE items SET ITEM_DESC=@ITEM_DESC WHERE ITEM_ID=@ITEM_ID"; OleDbParameter p = c.CreateParameter(); p.ParameterName = "@ITEM_DESC"; p.Value = "AAAAA"; c.Parameters.Add(p); p = c.CreateParameter(); p.ParameterName = "@ITEM_ID"; p.Value = "715000134-00"; c.Parameters.Add(p); ...Show All

  • Visual Basic RegExp

    Hi, If I had a textbox that contained the following: --------------------------------------------------- Mr FirstName LastName ABCD Ltd, Address 1, Address 2, Town/City, PostCode, Notes1, Tel: 0171 800900, Fax: 0171 800909 --------------------------------------------------- how can I parse this to -------------------------------------------------------------------------------------------------------------- Mr, FirstName, LastName, ABCD Ltd, Address 1, Address 2, Town/City, PostCode, Notes1, 0171 800900, 0171 800909 -------------------------------------------------------------------------------------------------------------- I now this can be done using Linux GREP but I am new to regular expressions and its options. Any assistan ...Show All

©2008 Software Development Network