Topics
-
- 1 reply
- 944 views
Hello there... Why is it that when i press <enter> or <return> inside a datagrid it will not call the forms acceptbutton unless i physically click the mouse inside the datagridcell and then press either <return> or <enter>?? How can i fix this problem so that no matter where or when i press either the <return> or <enter> button the acceptbutton.click event will be fired? It's almost as if it doesn't see that the datagridtextboxcolumn does not see the <enter> or <return> button during editing, as it will only fire when focus has been taken away from that cell and then clicked the cursor back into it with the mouse? …
Last reply by ramnadh, -
- 0 replies
- 834 views
I'm having issues with richtextbox. I want to insert and delete text, from it - and I can not use the .text property, since I am using colors and formatting, etc are lost when I do: richtextbox.text = richtextbox.text.insert(25,"Testing") Is there any articles, links, or information regarding an efficient method to handle the .rtf , w/ all the codes and such? For example - translating the selection indexes, and the point at which they occur in .RTF; is a huge problem dealing with line/breaks carriage returns. The .selectionstart property deals with the .text property on richtextbox, and pretty much the only resources I can see so far are .selectedrtf and .rtf -…
Last reply by Drstein99, -
- 0 replies
- 1.2k views
Hi all.. I'm new to vb.net. And having a question. I'm building a simple app. That opens iexplorer section when clicked on a button.... That all works. I only want to kill the iexplore.exe process when there has been no user input (mouse movement/clicks or keypresses) for about 15 minutes. Can anyone help me with it?? Thnx Greetz ReNi
Last reply by reni, -
-
- *Experts*
- 6 replies
- 1.8k views
Does anyone know how to stop a crystal report from prompting for a parameter that I'm already sending to the report??
Last reply by arahil, -
-
- 18 replies
- 1.6k views
I know why I should parametize my queries to prevent SQL injection attacks. But HOW does ADO.NET go about doing this? Does it use a regular expression and weed out bad characters in the parameter? Does it only let parametized queries run data access language? Does it just reject parameters that it considers bad? Is there an error code with this? Will it cleanse input parameters and try to run them? Is this an open specification that anyone can find more info about or is it a closely guarded MS secret? Are there ways to write your own parameter checking routines? :)
Last reply by HJB417, -
-
- Leaders
- *Experts*
- 17 replies
- 2.3k views
Why do you program? Have you always been satisified with your results, or is it a thing where you will never be satisfied? What is the meaning of life? (just kidding about the last one )... ( unless you happen to really know! )
Last reply by John, -
-
- 1 reply
- 887 views
Hi, more on the datagrid.... How do you set the width of a column to fit the content? If you double click between two columns the left column adjusts to the length of the longest item. I want that as the default width when I open the table. Can it be done? Of course, but help me out ;) TIA Kejpa
Last reply by Xanatos, -
- 1 reply
- 1.2k views
how do i add an Image column in the datagrid for windows forms
Last reply by Xanatos, -
- 1 reply
- 780 views
I think I'm missing something... I really hope I am. I spent a long time writing an application - I used Database Explorer to connect to the database and I used the quick DataAdaptors and Datasets and dataconnections to create my application. 6 months down the line I realized my fatal error - the database was a fixed path! "C:\ApplicationName\Data\Data.mdb" - eek! I understand the appeal of SQL Server as you don't have to worry about a location. To fix my problem I had to recreate all of the controls via code and use Application.StartupPath to get the path. But really, this is supposed to be a RAD for use with databases - what am I missing? How would you…
Last reply by Mister E, -
- 4 replies
- 1.6k views
Hi, I want to retrieve all contact information within a catergory named "Staff" in a folder named "RC Contacts." This should explain where I'm trying to get in better: +Outlook Today . -Public Folders . ....-All Public Folder . ....-Contact Mgmt . ....-RC Contacts . ....+Categories: BLAH ....+Categories: Staff I can get to the RC Contacts but I don't know how to get in the "Staff" categories and enumerate all the items inside. Here's what I have so far: Sub Main() Try Dim objOutlook As Outlook._Application objOutlook = New Outlook.Application Dim objNS As Outlook._Nam…
Last reply by dmoonme, -
-
- Administrators
- Leaders
- 12 replies
- 1.1k views
I have not installed Visual Studio 2005 B2 yet and I had a question. Can you target a framework other than 2.0? Such as 1.1? Or how about Mono? I'm running Visual Studio 2003 Enterprise at the moment and would like to use 2005 - but I'm going to be distributing the application for OSX as well, so I need to target Mono - but I'll also target 1.1 since thats about the equivilent to give PC users the option to use the normal framework.
Last reply by Denaes, -
-
-
- Administrators
- 7 replies
- 1.3k views
I mean, I can load and show a BMP picture from the hard disk, but, how can I do the same with BMP pictures I add to my Visual Studio .NET project? I do I access them? Thank you
Last reply by EFileTahi-A, -
-
- 0 replies
- 630 views
I need to launch another app and command it to start a certain function. The function can be started by pressing F4. I have accomplished that with the code below. But I'd like to replace the EmulateKeyPress() with something that works better. Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) #Region "Emulate KeyPress" Const KEYEVENTF_EXTENDEDKEY = &H1 Const KEYEVENTF_KEYUP = &H2 Private Declare Sub keybd_event Lib "user32.dll" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) Private Function EmulateKeyPress(ByVal KeyCode As System.Windows.Forms.Keys) keybd_event(KeyCode, 0, 0…
Last reply by JumpyNET, -
- 1 reply
- 1.2k views
Ok. I have a question. Is there any simple way to draw graphs in .NET? I have 1000 points (X and Y coordinates). I could of course draw 1000 lines between them. But there wouldn't be a smooth line. Is there possible to create a graph (maybe using exell functions)? tx matej
Last reply by EFileTahi-A, -
- 0 replies
- 707 views
Is there a Microsoft World control in .NET that I can place on a Form like in there is for Microsoft Excel?
Last reply by lothos12345, -
-
- Leaders
- 3 replies
- 650 views
Hi everyone, I've been trying to get the CFileDialog to work. It compiles fine, but any time the function runs to open the dialog, I get an error with Abort, Retry, Ignore errors. If I push Retry the dialog works fine. If I push Retry it debugs and points to this line in dlgfile.cpp: m_ofn.hInstance = AfxGetResourceHandle(); Here's the code I wrote to call the dialog: CFileDialog openIt(TRUE, ".txt", NULL, 0, "Text Files (*.txt)|*.txt|All Files (*.*)|*.*||"); openIt.DoModal(); I can't figure out what's going on... any ideas? Thanks in advance, --Brad
Last reply by AcidGoat, -
-
-
- Leaders
- 1 reply
- 722 views
Is there a way to resize a richtextbox based on the amount of lines/characters it contains? Any help given is greatly appreciated.
Last reply by snarfblam, -
-
- 7 replies
- 1.6k views
Hey guys, I have been working on a piece of software for a while now. In effect it is a way of programming for not particularly geeky people. Think drag-and-drop GUI etc. with simple but numerous commands supported. Originally it was meant to be a copy of "Automator" (see Apple.com website in Mac OS X section), but I feel it has the potential to go a bit further, as a transparent programming system. What I mean by this is that the program is "compiled" into an understandable simple-text "program", and can be "run" (through an interpreter) on any computer - however the user can choose what functions are available (i.e ban the program from deleteing files) to enabl…
Last reply by zerotoleranc, -
- 1 reply
- 946 views
OK guys Here is a summary of my problem. I have been trying for a few days now to get Text from a listbox that is connected to a field in an Access Database Table and put it in an array. It says that the value is String and it is looking for an Integer. any suggestions?? HELP. here is the code: Dim Sales(100, 4) As String Dim R As String Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load OleDbDataAdapter1.Fill(DataSet21) QtyTextBox.Text = "" End Sub Private Sub addButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles addButton.Click …
Last reply by zerotoleranc, -
- 0 replies
- 749 views
im having problems setting up SMTP server on my dedicated server. i've gone through the tutorials on how to do this, but it still wont work. the pop works fine, just smtp wont work any direction would be appreciated, or if someone here thinks they can help i'll post more exact details thanks!
Last reply by sdlangers,
-
Who's Online 0 Members, 0 Anonymous, 90 Guests (See full list)
- There are no registered users currently online