Jerrycee11's Q&A profile
Visual J# WindowsApplication with j#
Hi all, I am new with J# programming. How I can build a windows [form] application that has single input line and a button, that reads an integer number when button is pressed prints factorial of that number. create the forms application through " create project , J# , Windows Application " add a button from your toolbox ( in the following case button1 a basic example ... private void button1_Click( Object sender, System . EventArgs e) { int x = 3 * 2 * 1; MessageBox .Show( System . Convert .ToString(x)); } ...Show All
Visual Studio Express Editions SelectedIndexChanged fires through manual and code changes to combobox
I am using the SelectedIndexChanged event on a combo box to set an associated value, unfortuantelly when I use code to set the selected index of the combox and this is also firing the SelectedIndexChanged event. Is there an easy way for me to check that the combobox value has been changed by the user as opposed to changed via code Sorted this one aswell, why do I always find the answer 5 minutes after posting! For anyone thats interested I used the SelectionChangeCommitted event ...Show All
.NET Development Sending a html page as an e-mail using Net.Mail.MailMessage
I have a .net page that sends an email but i want it to send a html page as the body. Is there anyone that knows how to do this in VB Hello, I am trying to do this but sending current page as an e-mail body. This is a web form that users will fill some fields and send form with the information thery entered. Is this possible Thanks, Gus G. ...Show All
Visual Studio HELP using reporting services on hosting company
I need some serious help and I am at my wits end: I am using webhost4life and using their reporting services. I am 'trying' to create a simple aspx page with the web report viewer and point to a report on the server. I found some code on this news group (see below) regarding passing credentials but I am still getting access denied in the report viewer. Can any please help me Imports Microsoft.VisualBasic Imports com.mysite4now.sql332reporting Imports Microsoft.Reporting.WebForms Imports System.Security.Principal Partial Class reportviewer Inherits System.Web.UI.Page Public Class ReportViewerCredentials Implements IReportServ ...Show All
Visual Studio 2008 (Pre-release) duplex contracts behind a loadbalancer
Hello, Just starting to work on some duplex communication samples. Can someone confirm that this will work behind a loadbalancer Regards, Ruurd Boeke Probably :-) - Most load balancers are configured to return the client to the same server. Though not ideal it prevents a lot of programming issues ( like not having to track session state in a DB ) If you are using a true load balancer im not sure , but my hunch is it may not work. The issue is not so much the server talking back to the client but the state on the server . Most Duplex channels implementations have a program model where a request is intiated by the client , w ...Show All
Windows Forms Simple way to populate treeview from database
What is the simpliest way to populate a treeview from a sql or access database with 1 table (category and subcategory) Thx in advance Thx DMan1, now i know that i have a long way to walk with programing. ...Show All
Visual Studio Using variables for subreport and Main totals
Hello and thank you for any help. I am totally new to Crystal Reports and need to finish this report for the project I'm doing. The problem is: I don't know how to use the variables to pass the totals to the main report, the help file was not that much help for this. I have tried using Formula fields to do this: Global x As Currency formula = SUM({sub-report field name}) x = formula...........(problem with this part) Could someone please give me some code and an explanation for this Hello, To use variables with subreports, you need to use shared variables. From the help file (Basic Syntax): Sha ...Show All
Visual Studio Team System Upload Bugs Database
I have been able to convert our current Bugs Database into a Excel or .CSV file. How can I upload these bugs into VSTS without manually entering in the information. Export the bugs that are currently contained within your TFS team project into a new excel spreadsheet. Cut and paste the text from your current Bugs Database spreadsheet into the new excel spreadsheet, you may need to massage the data a little in order to get user id's to match and you may also need to adjust what columns are shown in order to import something not shown by default. ...Show All
Visual Basic Data Sources window in IDE becomes disabled...
..when trying to drag & drop tables onto a form. Not only is disabled but also no data sources are shown in it even after adding them to the solution. Actually this feature was working after the initial installation of Visual Studio but obviously I managed to disable it somehow. If this is of any help, when I enable data sources window I also don't see the combos next to field or data-tables that characterize how it will be displayed when dragged & dropped on a windows form. Tnx in advance, Nick Panoussis ...Show All
Smart Device Development How to achieve Delegate.CreateDelegate() in .NET CF
I have asynchronous callback , that I would like to call from a .NET CF application I retreive attribute from a method , and I would like to instanciate a delegate on the method tagged with this attribute in .NET I use Delegate.CreateDelegate() from the MethodInfo and it is OK but in .NET CF the CreateDelegate Doesn't exist How to do this I have allready tested that, but when I try these statements (partial ) public delegate void MessageHandler ( IvyClient app, string [] args); MessageHandler handler; handler = ( MessageHandler ) new Createdelegate (m, null , ...Show All
Software Development for Windows Vista How to pass a Strongly-Typed Dataset to a workflow
Hi, Can anyone tell me how to pass multiple parameters one being a strongly-typed dataset to a workflow. It would be good it I could pass the dataset by reference too What I'm trying to achieve is two-way communication between the host and the workflow via a dataset. There doesn't seem to be many examples of this on the web - can anyone help Thanks! The 'Ref' Parameter type in workflow is somewhat misleading, in that it doesn't actually mean you are passing the object by reference. What it means is that you can read the parameter again, after the workflow completes, using the OutputParameters collection (which is passed in ...Show All
Visual Studio Team System deployment of the .NET 2.0 Beta2 Framework
I really would like to use the datagridview functionality in a new application that needs to be developed by July 1. The application will only be internally used (so no third party) in our company. - Can the .NET Beta2 framework be deployed without any limitations - What are the potential risks to use the Beta2 version - I read about the go-live license. What exactly does this license include/permit - Is there already any release data anounced for the final version of the .NET 2.0 Framework Can someone confirm this If you are using clickonce, is it ok to allow install of the .NET framework If my app is on ...Show All
Visual Studio Express Editions code prob
ok i've got this code Dim sText As String = InputBox("Enter some text") If String.Empty.Equals(sText) then return If sText.length <= 0 Then Return Dim oTW As IO.TextWriter Try oTW = New IO.StreamWriter("c:\text.txt") oTW.WriteLine(s) Catch ex As Exception MessageBox.Show(ex.Message) Finally If oTW isnot Nothing then oTW.Flush() oTW.Close() End If oTW = Nothing End Try This shouls save my input to a text file. it's making the file alright but the text isn't getting saved also i've got and error around the "If oTW i ...Show All
SQL Server Problem recreating database
Had a crash and am trying to recreate my database. I have large files (200mb each)created using sql 7, a mdf and ldf file. When restoring on sql 2000 I get an internal consistency error trying to attach the mdf and ldf files. It fails half way through. I desparetly need this database restored and would appreicate any help Hi, you could try to use the sp_attach_single_file_db and hope that this will be successfull. Seems that your database is inconsistent, do you have a valid backup That would be the best solution. Otherwise I hope for you that only attaching the MDF file with the above command works for you. HTH, Jens Su ...Show All
Visual Studio Crystal Report using Dataset
Hallo, My problem is to genearte a report for the selected rows in a datagrid.I tried with the dataset, i generated for the selected rows. But i get report for the whole table.why it happens ReportDocument repDocument = new ReportDocument(); repDocument.Load(reportFile); repDocument.SetDataSource(ds); reportViewer.ReportSource = repDocument; reportViewer.DisplayGroupTree = false; this is how i generate report.What is wrong with the code or missing thanks You can do repDocument.SetDataSource(tableName); whe ...Show All
