10131011's Q&A profile
Visual Studio Express Editions Submitting a Form
I downloaded a copy of VWD and thought it would be a great tool for making an online application. I have made a form where people can input their information and apply for a job online. I want to make it so that when a person clicks my "submit" buttton it creates a unique file in a folder on my webserver (preferably in xml). Preferably the filename would be a composite of the person's first and last name (textbox1 and textbox2). I know how to link the button to a sub, but I don't know what code I need to write in the sub to get the information from the form and create an xml file with the information in it. If it's not possible to ...Show All
Visual Basic Index was outside the bounds of the array.
I am trying to display to role my user is in a label and it works just fine as long as a user is in a role. If the user is not in a role then I get this error message: Index was outside the bounds of the array. on this line labelRole.Text = strRoles(0) I am new to programming, but I am getting the error because the string is empty <code> Dim strRoles As String () strRoles = Roles.GetRolesForUser(UserName) If Not strRoles Is Nothing Then labelRole.Text = strRoles(0) Else labelRole.Text = "User is not in a role" End If </code> Change your declaration from Dim strRole ...Show All
Visual Basic Generating a PDF File
I need to generate some type of document that will display a series of information. Is there anyway to take information from my program, format the information into a reader friendly layout, and then turn that layout into a PDF file Is it possible to accomplish this process WITHIN the program and not by using a distiller printer setup Thanks! First I would like to know what version of VB you are using If you are using 2005 standard or above, you can use the ReportViewer Control to do what you want. This article in MSDN2 , gives an overview of the ReportViewer control. Note you can create reports that pro ...Show All
Windows Forms Updating DB Using Datagrid
Hi, I am testing datagird update, it works fine with Northwind database but if I try switch to another database its not working. Here is the sample code: DataGrid1.Update() SqlDataAdapter1.Update(DataSet31) I am not getting any error message, but its not updating the database. I am not too sure but Is it permissions issue with database Thanks! ...Show All
Visual Studio Team System Team Project Creation Failed
Hello, We tried creating new team project but failed with the following error: Team Project Creation Failed <snipped> Error: Unable to connect to the Windows SharePoint Services at DAGOBAH Some info to further help in troubleshooting this problem: (installed in the following order) - installed SQL Server 2005 - installed Visual Studio 2005 - installed Team Foundation 2005 (single server installation) - installed Windows SharePoint Services SP2 - installed Team Foundation client - for testing purposes, we installed both the foundation server and visual studio on the same box (yup, you guessed it, DAGOBAH) - SharePoint IS running as I ca ...Show All
Visual Studio Tools for Office URGENT: Cannot Install VSTO June 2006 CTP!
When I click on the setup file 'vsto3ctp.exe', I am receiving the following error message: "You must first install Microsoft WinFX Runtime Components February CTP before installing or repairing this product." yet i am running the latest WinFX runtime components 3.0 beta 2, which it says should be fine in the documentation. Can anybody please help me to install this CTP as a matter of urgency. I have a deadline in a couple of weeks and really need to get cracking. Thanks! According to the installation instructions you are required to have the WinFX February CTP installed: Install Vis ...Show All
Visual Studio Express Editions Problem with my VB program!
Public Class Form1 Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click End Sub Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim mail As New Net.Mail.MailMessage() mail.From = New Net.Mail.MailAddress("soda_91@hotmail.com") mail.To.Add("soda_91@hotmail.com") mail.Subject = "I want it to send a TextBox1 here" mail.Body = "TextBox2 and TextBox3 here!" Dim smtp As New Net.Mail.SmtpClient("smtp.google.com&qu ...Show All
SQL Server How can we deal with unknown member in cubes for data mining?
Hi, all here, I currently have a question about unknown member in cubes (as we know, there is always an additional member called unknown in an OLAP dimension)for data mining. I mean is there any way for us to deal with unknown member in cubes when mining cubes Thanks a lot in advance for any guidance and help. The property change should work. Did you re-process the dimension as well The property change may not be a "structural change" that forces dimension re-processing when the cube is reprocessed. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. VC++ 2005 beta 2 and directx9 = screen corruption?
Hello, I am new to the forum and I am having the strangest problem with compiling directx... Things will compile fine and run fine for a while, generally about 30 min of active running...then strange artifacts will begin to appear on the screen, first little shimmers, this is just in the directx window mind you, then the whole window will be covered in a haze of short vertical blue lines. Then, when I close the window, it will spread to the entire screen and dramatically distort any geometry in subsequent runnings. Shutting down does not make a difference, the lines appear regardless of the screen mode and are to scale with the scree ...Show All
Smart Device Development MessageBox not showing correctly
Hi, I'm running into what I think is a critical problem. Thought I'd give it a shot here in this forum. Well I have an application, bunch of forms and bunch of threads. In one form I have couple of threads that run, but run one after the other by waiting on flags. The last thread waits for all the previous threads to terminate and set all those flags to false before it can run. This last thread will show the results of the previous threads by displyaing a MessageBox. Well this MessageBox sometimes looks fine, but sometimes it's all a white background but still displaying the message. Click ok on this messagebox and i ...Show All
Visual Studio Tools for Office Automate the excel chart
Hi , I am trying to automate the generation of charts on excel sheet data using c# code . I have columns A , B , C and D I wanted to generate charts for A,B ... A,C......A,D seperately Can anybody help please You can use the Excel._Chart interface: Excel._Chart oChart = (Excel._Chart)workBookObject.Charts.Add( Missing.Value, Missing.Value, Missing.Value, Missing.Value ); oChart.ChartWizard( oResizeRange, Excel.XlChartType.xl3DColumn, Missing.Value, Excel.XlRowCol.xlColumns, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value, Missing.Value ); ...Show All
Visual Studio Express Editions Visual Studio version recommendation
Hello, I have a customer that wishes to purchase a version of Visual Studio, but being a (VERY) newbie to VS 2005, I cannot give her the proper recommendation. Her primary concern is that her PC OS is Windows XP Home, which obviously has no IIS component option, but she needs to have IIS to test her VS developing. Is there a version of VS 2005 that includes the IIS framework so she can perform web app testing. Thanks, John Well Visual Studio 2005 has not been released yet and is not due out until the end of the year. If she is a newbie, I would suggest that she downloads the beta of Visual Web Developer Expr ...Show All
Smart Device Development adapter connected?
Good day! I've using opennetcf got all the available network adapters on my device by using the code below. I now need to know how I can get the conencted status of each one. Basicly determine wheter the adapter is connected. (Like if Active Sync/WiFi/GPRS is connected) How do I do this AdapterCollection ac = Networking.GetAdapters(); foreach (Adapter a in ac) { if(a.IsWireless && !a.SignalStrength.Equals(0) && a.Type == AdapterType.Ethernet) { MessageBox.Show("WiFi card!"); } else if(!a.IsWireless) { MessageBox.Show("GPRS or ActiveSync&qu ...Show All
Software Development for Windows Vista IsExecutable
CompositeActivity has an ExecutableActivities property that returns all child activities that will be executed. I'm sure ExecutableActivities takes into account whether or not a child activity is commented, but it may also include other factors. I was hoping that Activity would have an IsExecutable property on it, but it does not. Is there another way to determine if a single activity is executable Or could an IsExecutable property be added to the Activity class Well, I know I would need to check ExecutableActivities.Count as well as IsCommented. In addition to IsCommented, don't know what else the ...Show All
Visual Studio Express Editions A problem has been encountered while loading the setup components. Canceling setup.
Running WinXP Pro SP2. Downloaded the offline/network installer for Visual C++ 2005 Express and extracted the image's files like the Manual Install instructions tell me to with ISOBuster. I get the following error when I try to run setup.exe and autorun.exe: A problem has been encountered while loading the setup components. Canceling setup. Any help would be greatly appreciated. I have a fresh Win XP SP2 (Brazilian Portuguese) installation with All Updates from Windows Update! No Beta, No Office, No others applications! Now I installed the Visual C# with the Internet Installation! Works Fine! But the Visu ...Show All
