-
- Is there a function which can disable a control with making the control grey out?
by Luo Cao
- 10 Replies
- Last post
by shahzad77
- When set control.Enable to false, the control will grey out. I just want to disable the control without grey out. Is it possible
-
- How can we databind a PictureBox control?
by maqk
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- How can we databind a PictureBox control
I tried i tlike this picPrimaryLogo.DataBindings.Add(New Binding("image", mFcPartySetup.DSPartySetup, "PartyCompany.PrimaryLogo")) but it said someThing like that: Additional information: Could not format the value to the desired type. why does this happen i m using vb.net vs2003 with sql server 2000 personal edition & the
-
- sql command and the dataset
by Four Seasons
- 3 Replies
- Last post
by Bob zhu - MSFT
- I have a question
I tried to excute a stored procedure and I need to read the data from table.
Public Sub _GetCountryByID _
( ByVal countryID As Integer )
Dim conn As New SqlConnection
Dim findCountryCommand As New SqlCommand
conn.Open()
findCountryCommand.Connection = conn
findCountryCommand.CommandType = CommandType.StoredProcedure
findCountryCommand.Comma
-
- Deploying to Program Files
by Thwack
- 6 Replies
- Last post
by Thwack
- Hi, I am using C# 2005 Express edition and I cant select a directory I want my application to install into. I would like to deploy into program files.
The Publish wizard works fine, and I can distribute my applicaiton, but I dont know where it installs into.
I cant see an exe file anywhere on the computer I deployed on, yet my app works.. Is there more deployment options in the full version
-
- How to change the Text Size of the WebBrowser control?
by juergen.b
- 3 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I would like to change the Text Size of the WebBrowser control (.NET 2.0). The control doesn't provide the function itself. I have found information that it has to be done like this:
((UnsafeNativeMethods.IWebBrowser2)webBrowser.ActiveXInstance).ExecWB(19, 2, 0);
The problem is that UnsafeNativeMethods is a static class of the Windows.Forms.dll assembly. Thus I am not able to cast the object
-
- ShortcutsEnabled in TextBox
by kokitsune
- 4 Replies
- Last post
by Rashmi Gopinath
- Is there anyway to enable the ctrl-a keyboard shortcut for a textBox
If not, what would be the easist way to select all text in a textBox
Kitsune
-
- Web browser problem
by Azurewrath
- 6 Replies
- Last post
by Azurewrath
- Hi,
I am creating a simple htm file on disk that points to a particular flash file (swf). But when I point the url of the web browser to this file, it loads but the place where the swf file should show up, only shows the square X mark, meaning the file couldn't be found or be displayed.
When I run the file in windows by double clicking, it asks me if I trust the file (using the infor
-
- DEFRAGMENT HELP!!!! 92
by David King 5464
- 1 Replies
- Last post
by Zhi-Xin Ye - MSFT
- I have tried every way to defragment my computer. It gives me then error when I click on "Defragment Now..." I pops up a box that says "Snap-in failed to intialize. Name:Disk Defragmenter CLSID:{43668E21-2636-11D1-A1CE-0080C88593A5}"
Then when I click ok it takes me to the Disk Defragmenter place, and it says in there "(red X beside this) Snap-in Creation Failed.&q
-
- Using the user interface in making a setup, password clear text
by steve1_rm
- 9 Replies
- Last post
by vikupal
- Hello,
VS 2005
I have created a web setup using deployment project for installing a web service. The setup requires that the user enters the server settings. i.e. server, user id, database, and password.
I have used the interface which has the 4 text boxes. However, there is a security risk as the text box which the user will enter the password into is always in clear text. Is
-
- Datagrid navigation
by Bertrand Caillet
- 4 Replies
- Last post
by Bertrand Caillet
- Hi all,
I have a datagrid in my aplication form that I fill in the fly by C# code. Basically, the datasource is an ArrayList.
What I want to do is enable the user to not only edit the data in the grid (which is easy), but also change the order of the lines.
The best solution will be to add 2 Up and Down arrow on the form to allow the user to do it. That will be the most friendly solution.
-
- Dynamically creating text boxes and retrieving their values
by coolarian
- 2 Replies
- Last post
by coolarian
- I have a user control consisting of three text boxes. I have to dynamically add these text boxes to a panel control depending upon a number of record selection by the user. These text boxes are loaded in pairs with one text box contains a name and the other comments about this name. If user selects 5 records than this pair/user control will be loaded 5 times. Does anyone knows how could I traverse
-
- How do you wait for an event to finish running?
by Ccm1st
- 7 Replies
- Last post
by nobugz
- Hi, I am trying to load up a page in a web browser. I want to wait for the event DocumentCompleted raise before the program can go any further. For example, I want to load up www.google.com. In a method, it will navigate to that given site and then when the site has load up, I want that method to return an object to me. How do I tell the method to wait for webbrowser to finish loading
-
- RichTextBox not displaying Word rtf file properly
by j2associates
- 2 Replies
- Last post
by j2associates
- Hello all, I have a browse button which allows users to select a Word rtf document. I then load the selected file into a RichTextBox control using the following code:
Code Block
With New IO.StreamReader(UserSelectedFileNameAndPath) Me.RichTextBox1.Rtf = .ReadToEnd .Close() .Dispose() End With
The problem is that the Word tables are not displayed correctly. It
-
- Windows Service Installation question
by TOANDO
- 4 Replies
- Last post
by TOANDO
- I have a windows service that runs on a little over 100 locations. Every time I upgrade the service and do a re-install, we have about 5% of the locations get a logon failure message. The account that the service is trying to run under is a domain account that has the credentials setup in the project installer class of the service. All I have to do to fix the problem is to manually go into the ser
-
- Complex dividing interface
by lpx
- 1 Replies
- Last post
by OmegaMan
- Hi, I need to develop an interface that can permit me to define a frame like enviorment as such in html. Imagine the frames the in html. I can make them horizontal or vertical, and inside of each frame i can create another. I gave a look around the provided controls and i cant see anything that can help me building such graphic interface. The objective is to construct a xml file with those partiti
-
- How can I use Active Directory for authentication/authorization in a Winforms app?
by sun21170
- 0 Replies
- Last post
by sun21170
- I was interested in knowing how to use Active Directory for authenticating/ auhtorization a user in a Winforms app. Can some please help
Thanks
-
- Problem with FOR ...NEXT
by vgta
- 1 Replies
- Last post
by nobugz
- i have
For i=0 to Datatable.rows.count-1
Dim VSalary,VDiscount as double
..........
Next
The variables VSalary,VDiscount dont initialize a Cero with the Dim for each cicle
Why
-
- DateTimePicker does not display date in dd/MM/yy formate ?
by anup phansa
- 6 Replies
- Last post
by nobugz
- Given below two property I have already set
this .DateTimePicker1.CustomFormat = "dd/MM/yyyy" ;
this . DateTimePicker1.Format = System.Windows.Forms. DateTimePickerFormat .Custom;
When assign string value to date (such like given below),
string temp = "05/01/2007" ;
dateTimePicker1.Value = Convert .ToDateTime(temp);
-
- clickonce io permissions
by Wee Bubba
- 1 Replies
- Last post
by Gavin Jin - MSFT
- my client apps will need to be able to save pdf files to a shared folder on the server. is this kind of networked file IO permissions possible with clickonce thanks.
-
- Error :Could not load file or assembly
by prashnarv
- 0 Replies
- Last post
by prashnarv
- We have Sign the ClickOnce Manifest with Code signing certificate (.pfx certificate) downloaded from Ascertia. Following Security setting were set IN vs 2005
Security Tab - > Enable ClickOnce Security Setting [checked] Selected Partial trust application [ClickOnce Security permission] and changing the dropdown to (custom).
Following IIS Setting done: A) MIME TAGS added Exten
-
- FindControl WinForms...
by ZopoStyle
- 4 Replies
- Last post
by ZopoStyle
- Hi,
How can I find a control on a form by it's name without use foreach...like a have some controls called txtValue1 to txtValue4 so I want to make somethinng...
Code Snippet
private void set_values()
{
Random my_random=new Random();
for ( int i=1;i<5;i++)
{
TextBox txtBoxtemp=(TextBox) this .FindControl(" txtValue "+i); // this met
-
- combobox
by KRISTER
- 7 Replies
- Last post
by KRISTER
- Hello
A problem! I am trying to do the tutorial about two tables (master/detail) lookup. but it will not work.
Everytime when i changing a value on combobox (child table is updated corectly) but combobox (parent) datasource is updating also.
like this
combobox list at start
1 test (displaying item in combobox) 2 test2 3 test3
then when i change to "test2" the
-
- c# 2.0 dataGridView
by MichaelEaton
- 9 Replies
- Last post
by MichaelEaton
- Hey guys, I have searched and there are loads of suggestions but I cant seem to apply any of them to my situation so here goes: I download an XML file from the web(server list), and go through each node and then add a row to the dataGridView, I want to show every rows backcolor red for each server that is down: Heres some code to help: System.Net.WebRequest myRequest = System.Net.WebRequest.Create
-
- Can't get the DEVMODE
by p.Edwrad
- 1 Replies
- Last post
by Yu Guo ¨C MSFT
- Hi everybody,
I meet a matter about get the sturcture of DEVMODE. The major code as follows:
private void ChangeTheItems() { structPrinterDefaults spd = new structPrinterDefaults(); spd.pDatatype = null; spd.pDevMode = IntPtr.Zero; spd.DesiredAccess = PRINTER_ACCESS_ADMINISTER | PRINTER_ACCESS_USE;
IntPtr hPrinter; PrintDocument pd = new PrintDocum
-
- Hard to explain....but please read.
by Brenton Garman
- 7 Replies
- Last post
by Brenton Garman
- Hi,
If I have in Form1_Paint
( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me .Paint
'this inserts a vertical red line
e.Graphics.DrawLine(Pens.Red, 200, 50, 200, 200)
and have the following code in a richtextbox1
Private Sub MouseClick1( ByVal sender As Object , ByVal e As System.Windows.Forms.MouseEventArgs)
H