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

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

mmenasches

Member List

Lu Campos
specialk92282
rthurber
Dean Wills MSFT
zenguitar
rpattal
primevest
Emil Helldin
koti
BDavlin
João Gonçalo Bilhim
JaganMalkareddy
WaltXS
bigmanu
Knubbi
pritam pathare
ErmyasF
Lew130
SharePointKhan
Don Juan
Only Title

mmenasches's Q&A profile

  • Visual Basic vb.net and updating database

    I've been doing a tutorial on http://www.homeandlearn.co.uk/NET/vbNet.html and everything was fine until the part on databases and using dataAdapter.Update. I keep getting an error message. Here is the part that I have problems with Private Sub btn登 _Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn登 .Click Dim cb As New OleDb.OleDbCommandBuilder(dadapt) dset.Tables("bihin").Rows(increment).Item(1) = txtCD.Text dset.Tables("bihin").Rows(increment).Item(2) = txt名.Text dset.Tables("bihin").Rows(increment).Item(3) = cmbbx備品 分.Text dset.Tables("bih ...Show All

  • .NET Development Debug and Release Buids

    I have a solution containing a windows forms application and a class library.  The windows forms application has a reference to the class library project.  When I build the project, it fails to find the class library output.  Looking closer at this, it appears that VS.NET is looking for the debug build, but the class library has been built in release mode. Since I have no idea how to switch between debug and release (used to be a toolbar option) I would have assumed that since I must be in debug mode, VS.NET would have built both in debug mode and no problems.  So why has it built my class library in release mode and atte ...Show All

  • Visual Basic Having trouble getting a correct value of textbox3

    Hi Im using VIsualbasic2005 Express (its .net of course ) Dim intText1 As Double Dim intText2 As Integer Dim intText3 As Double intText1 = Val(Frm3.TextBox1. Text) 'Here is says Conversion from string "" to type 'Long' is not valid. intText2 = Val(Frm3.TextBox2. Text) intText3 = CDbl(Val(Frm3.TextBox2. Text) * Val(Frm3.TextBox1. Text)) Frm3.TextBox3.Text = intText3 Textbox3 is still 0 When textbox1 = 0.04 and textbox2 = 456 the problem is the Third teextbox3 is just givine me 3 and not the value of Textbox1(0.04) * Textbox2(400) Actually, what my other reply did not a ...Show All

  • Visual Studio 2008 (Pre-release) CheckBox bug when databound and IsEnabled="False", IsChecked="True"

    Here's the code the replecates the bug I'm seeing... < Window x:Class = " checkboxbug.Window1 " xmlns = " http://schemas.microsoft.com/winfx/2006/xaml/presentation " xmlns:x = " http://schemas.microsoft.com/winfx/2006/xaml " Title = " CheckBox Bug " Height = " 300 " Width = " 400 " > < Grid > < Grid.ColumnDefinitions > < ColumnDefinition Width = " 150 " /> < ColumnDefinition Width = " 250 " /> </ Grid.ColumnDefinitions > < ListBox ItemsSource = " {Binding Path=Items} " Dis ...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 personally, i love the lambda expression additions. in school, i used SML most of the time, and it was an amazing language. i know lamba expressions are probably a little foreign for a lot of programmers, but the power of being able to inline functions creates many possibilities for streamlined implementations. give it a chance, and then you probably will wonder where they have been your w ...Show All

  • Visual Studio xp64 hangs random during and after vs2005 installed

    my poor machine stopped without any response, keyboard and mouse not responsed. The CPU temprature is below 40'c and I have tested memory with MemTest tool. The CPU runns well on full load for for half an hour before I installed vs2005, and the temperature reached 42'c only. I haved updated BIOS flash to newest version. the cpu is amd64. Daemon tools x64 and Norton antivirus x64 is installed. The system also hang while system starting.... so.....what can i do forget vs2005 or enjoy it in vmware try this: 1. unplug your machine from the network 2. disable norton anti virus 3. try inst ...Show All

  • Visual Studio Team System Why am I not able to change the app config file using the assembly initialize method of a unit test?

    I have spent some time trying to figure out the best way to use different app config files for a unit test.  I have discovered, at least to the best of my knowledge, that the only way to use an app config that is different then the one that lives with the project is to use the setup scripts via the testrunconfig.  Please, someone tell me that I would be able to test more then one app.config file per test solution with out having to create a new solution for each test   Lots of bugs can ly in wait in an app config file, especially when you don't know how the final consumer of an assembly is going to change it.... I a ...Show All

  • Software Development for Windows Vista regarding LogOn User

    Hi, I need information regarding the following.. How are consent admins supposed to administer vista boxens remotely, e.g. by making a connection to \\vistabox\ipc$ and starting and stopping services or doing other privileged work This always results in an "accesss denied" error and only works for the builtin first ("non-consent") administrator. The fact that this doesn't work suggests to me that restricted tokens are not only created for interactive logon sessions but also for network style logon sessions. It was told that UAC is an interactive issue only, which it is apparently not . It also seems as ...Show All

  • Visual Studio Team System Web tests resulting in Internal Server error due to Invalid ViewState

    I am seeing an odd problem when testing our web site.  I have no problems navigating through our website manually from a web browser and experience no problems when creating a web test that navigates through our web site. But, when I run the web test I created, then I keep getting an "Internal Server Error" on the first server page transfer.  When I look at our server logs it indicates that the problem is caused by an invalid ViewState. But, this problem only occurs when playing back (running) one of my web tests.  The ViewState appears to be formatted correctly (it can be parsed) but the error message gives no further indic ...Show All

  • Visual C# How to retrieve the key value of a listitem in C#?

    While adding a listitem to any listview, we can pass-on "key" value, but how to retrieve this key value back I could not find this, plz. anyone help me out. First up... you are adding a ListItem to a ListView Is this for a WinForm app or an ASP.NET one I ask because ListView's are used in WinForm apps while ListItems are used with ListBox's in ASP.NET. If you did mean ListBox and not ListView... Which key value do you mean The non visible portion of the ListItem If so, simply read the SelectedValue property of the ListBox in question. ...Show All

  • SQL Server Changing column data type to Unicode data type

    Use databases a bit, but new to SQL Server. We just want to change a column of existing SQL Server 2005 data from a string data type to one of the UNiCODE data types, such as DT_WSTR or DT.NTEXT (such as one can use for various data mining tasks, etc.). It seems to do this one needs to "the data conversion transformation editor". To use that one has to have a package and a project Does any one have a full script or set of steps to do the full set of steps for what should be a simple task This would be a great example for BOL, but each atomistic bit of BOL refers to another, and one gets lost in the circle when a complete exam ...Show All

  • SQL Server Semi-additive measures in AS2005 Standard Edition

    I am not able to find any work-around for semi-additive measures (specifically Avg) in Analysis services 2005 Standard edition. (Aggregation type 'Avg' is not supported in Standard edition, however 'Count' works!) Any suggestions would be appreciated. Regards, Mahesh Dear Deepak, sorry for my late and thank you for your courtesy. The fact is that, if I have a ragged hierarchy implemented as a "attributes hierarchy", I'd like to hide the members which have the same name of their parent, of course. But if I try to apply to this hierarchy some MDX calculations, based on the descenda ...Show All

  • .NET Development .Net data could be simpler than this!

    Back to my sporadic learning project in ASP.NET I have a dropdown on a page populated at runtime from a table with country names to select a country, returning the corresponding country code. Everything works fine so far. I want to add a top record to show as default in the dropdown saying "-- Select Country --" DataSet oCountriesDS = new DataSet(); string sSQLCommand = "select ctry_name,ctry_code from countries order by ctry_name"; // Execute query and return a DataSet object SqlDataAdapter oDataAdapter = new SqlDataAdapter(sSQLCommand, oConnection); // Fill the DataSet oDataAdapter.Fill(oCountriesDS); DataTable oTable = oCountriesDS ...Show All

  • Visual Studio Express Editions Is it possible to connect to SQL Server Express?

    From the SQL Server Express web site it claims that you can use Visual C# Express 2005 with SQL Server Express 2005, but I have yet to find a way to make that happen. When I try to select a data source the only options I get are Microsoft Access Database File Microsoft SQL Server Database File When I try to select the latter, I just go on a wild goose chase where it claims that I don't have credentials with the server. When I use the regular version of Visual Studio 2005 at work, I also get the option Microsoft SQL Server Which lets me connect to SQL Server Express 2005 no problem. What is a "Microsoft SQL Server Datab ...Show All

  • .NET Development How do I send mail using C#?

    Does anyone have a code snippet that shows how to send mail from c# Here is the code snippet I found... System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(); message.To.Add(" luckyperson@online.microsoft.com "); message.Subject = "This is the Subject line"; message.From = new System.Net.Mail.MailAddress(" From@online.microsoft.com "); message.Body = "This is the message body"; System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("yoursmtphost"); smtp.Send(message); ...Show All

©2008 Software Development Network