Tom_123's Q&A profile
.NET Development TableAdapters.....
Is there a way to expose the SqlDataAdapter within a TableAdapter as a Public property even after re-generating the TableAdapter I can't use TableAdapters, because they don't expose the SqlDataAdapter as a Public property since I need to pass down the DataAdapter to a separate DB I/O method. Not a generated DB I/O method within the TableAdapter. I'm forced to use the Component Designer and create a SqlDataAdapter like I have been doing in VS.Net 2003. The following code is generated when creating a TableAdapter: <code> <System.Diagnostics.DebuggerNonUserCodeAttribute()> _ Private ReadOnly Property Adapter() As System ...Show All
SQL Server MSDE database limits?
I know MSDE has a concurrency user limit - -but does it have a database limit size like SQL Server 2005 Express ...Show All
Windows Forms WebBrowser:How to navigate and send values with method post
WebBrowser How to navigate (with WebBrowser.navigate(...) ) and send values of textbox with method post Can i have two methods ( not with mouse) * change the value of textbox and click in bottom (Send events to the browser (ex. Web1.Document.Forms(0).RaiseEvent(.. .)) * the values to the headers( ) and navigate to the page can you tell me how to do with this two ways.. thanks Dim postData As String = "login=" & txtLogin.Text & "&pass=" & txtPass.Text Dim postBytes As Byte() = Encoding.ASCII.GetBytes(po ...Show All
Visual Studio Express Editions Read from port
Hello! I have any problem with reading from port. when i send AT command I don't see anything. Please help! There's example what I've written: SerialPort sp = new SerialPort("COM4",115200,Parity.None,8,StopBits.One); sp.Open(); string l = "ATI4"; sp.NewLine = "\r\n"; sp.WriteLine(l); sp.WriteTimeout = 50; bytes = sp.BytesToRead; buffer = new char[bytes]; // Read the data from the port and store it in our buffer sp.Read(buffer, 0, bytes); //Here is 0; textBox1.AppendText(bytes.ToString()); ...Show All
Visual C# how to add columns in listview
hi friends, any body tell how to insert multipul column in the listview using the datareader while (reader.Read()) { ColumnHeader column = new ColumnHeader(); column.Width = 50; column.Text = (String)reader["Text"]; listView.Columns.Add( column ); } ...Show All
Windows Forms How to register custom file type
What would be the best way to go about registering a custom file type (with custom icon) and associating it with the application being installed in a Windows Installer project You can use the File Types dialog. You can display by doing the following: In Solution Explorer , right-click on your Setup project and choose View -> File Types . ...Show All
Visual Studio Team System Project Creation Problem: Unable to connect to the Windows SharePoint Services
After installing TFS Beta 3, everything seems ok. Can connect to it, manage it, etc. However I cannot create projects sucessfully. When I try to I get this (excerpt from log): Event Description: TF30162: Task "SharePointPortal" from Group "Portal" failed Exception Type: Microsoft.TeamFoundation.Client.PcwException Exception Message: Unable to connect to the Windows SharePoint Services at TEAMSYS1 Exception Details: The Project Creation Wizard was not able to connect to the Windows SharePoint Services at TEAMSYS1. The reason for the failed connection cannot be determined at this time. Because the connection failed, the wizard was not able to ...Show All
Visual C++ SendMessage to a MessageBox to simulate OK button click
Is there a way to send a message to a dialog box created using MessageBox method, to simulate OK button click (without user input) Rajesh I can't believe this ! The SendMessage func is probably the best way to do this. So now what about the System.Windows.Forms assembly for WinCE 5.0 ! all GUI library I used permit to simulate (or post, or send, or whatever) any kind of event on a Control if this one implements the event you wish to append. SendMessage is the way to do that with .NET Framework, so know what about the .NET compact framework !!!! ...Show All
Visual Studio Express Editions UTF-8 Encoding
Hello How can i write the contents of a string variable to a HTML page with UTF-8 encoding Please help Navaneeth hi, regarding to the asp.net encoding system like that <%@ Page Language="VB" ContentType="text/html" ResponseEncoding=" UTF-8 " %> regarding to the html part of the page you can set the encoding like that <html> <head> <meta http-equiv="Content-Type" content="text/html; charset= UTF-8 "> ...Show All
SQL Server The Trash Destination Adapter - Really needed?
Quick question... I have a conditional split transform in a dataflow... One of the outputs of the conditional split will take records that are just not needed... Do I have to send that output into the Trash Destination adapter Or can I just let those records hang Will there be a memory leak if I don't use a trash adapter I'm just thinking about if I move the package I'd have to go reinstalling the trash adapter every time... Thanks To be clear, don't use anything, including Row Count, unless you really want to. If you will use the Row Count then fine, otherwise just ignore it. It does ...Show All
Visual Studio Express Editions Problem in the Installation VB 2005 Beta 2
When executing the file setup.exe it was generated in the paste TEMP the following files. dd_vserror80.txt [04/20/05,09:05:36] setup.exe: [2] CSetupManager::GetLibraryAndGUID() - Failed to Initialize [04/20/05,09:05:36] setup.exe: [0] CSetupManager::LoadSetupObjectName(), CoLoadLibrary failure: vsbasereqs.dll,{a67b1e72-f530-4d0f-bef3-b4cea450c1a3} [04/20/05,09:05:36] setup.exe: [2] CSetupManager::GetLibraryAndGUID() - Failed to Initialize [04/20/05,09:05:36] setup.exe: [0] CSetupManager::LoadSetupObjectName(), CoLoadLibrary failure: vs70uimgr.dll [04/20/05,09:05:36] setup.exe: [0] LoadUIManager(), LoadSetupObjectName failure: vs70uimgr.dll [ ...Show All
Visual Studio Express Editions Menu Item Access Key (underline) won't display
Just installed VB Express 2005 and tried a simple application. I cannot get a menu item (using designer) to display the underline when I run the project. I am creating a menu item of "File", and I want an access key for ALT-F I entered text of: &File In the forms designer, the "F" in "File" WAS underlined. When I run the project, the underline is NOT displayed, although the ALT-F access key DOES work. Anyone else able to reproduce this Any thoughts on what I need to do to get this to work Ed Tenholder Are you using Windows XP This is a "feature" of WinXP, it automatic ...Show All
SQL Server SQLExpress on a dual core processor
I've just been reading a bit on SQLExpress. One of its limitations is that is only supports 1 processor. What would actually happen if it was installed on a dual proc box And what would happen on a dual core processor Regards Graham Microsoft's licensing typically refers to processors in the physical sense, so a dual-core hyperthreaded CPU (4 virtual processors) should qualify as 1. There may be bugs in SQL that cause it to incorrectly determine the number of physical CPUs, but if not, it should work fine (and fast :). -Ryan / Kardax ...Show All
Visual C# Overloaded methods with generics problem
I am trying to use some overloaded methods within a generic class method and have the parameter type choose the proper overloaded method. I feel like there must be a way to do this with reflection, but I have not stumbled across it yet. Here is a code example that should hopefully illustrate my problem: using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; class GenericExample { class Scalar<T> { private T value; public T Value { get { return value; } set { this.value = value; } } public void accept(Visitor visitor) { visitor.visit(this); ...Show All
Visual Studio 2008 (Pre-release) Getting Started with WPF But Can't
I have installed the upteen components required to take a look at WPF on an XP SP2 box. However, when loading a sample "lab" in VS 2005, a namespace error arises: " http://schemas.microsoft.com/winfx/xaml/2005 is not a recognized namespace." When I try to open a simple xaml file: < xml version="1.0" standalone="yes" > <Page xmlns=" http://schemas.microsoft.com/winfx/avalon/2005 "> <Button>Hello World</Button> </Page> IE automatically tries to open it and yields a very pretty error dialog: "Trust Not Granted" Thanks for any help! ...Show All
