Topics
-
-
- Leaders
- 3 replies
- 2.8k views
Hi, Here's a short command-line exchange: >? format(10000/3, "#\,##0.00") "3,333.33" >? format(10000/3, "#\,##0\.00") ",33.33" eh? What happened when I escaped the dot with \. ??? Chris VS2008/VB.net
Last reply by chris1028, -
-
-
- Leaders
- 4 replies
- 2.8k views
Ok, I am trying to update the value of SubItem(4) of the selected listview item using a property which is set by another form. Here are the forms I have: FormA (Form with ListView1) FormB (Form with TextBox1 that sets Class1.Value1) What I do is populate ListView1 based on other selections the user makes on FormA. If they want to change the value for SubItem(4) they click a button which launches FormB. FormA Sets a property to the ListView1 Selected Index with the following code: Private Sub ListView1 _SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged Dim lstrSelected As String …
Last reply by berkleyp, -
-
- 1 reply
- 3.8k views
I want to write a small app, that informs me about incoming network connections. Unfortunately I do not know how get that information. Which class can I use? Are there any events? All examples I found on the web were client/server stuff. But I don't have any clients. I want to get notified about all incoming connections at all ports. Thanks for any hints or help, Max
Last reply by joe_pool_is, -
-
- Administrators
- 2 replies
- 2.6k views
Hi all, It's been a while since I've posted here, but I haven't forgotten all of you, and I'm back with another strange issue. I'm using VS2008 and I've created a standard deployment project for my app. I've created a custom installer class to override the standard one simply to delete a configuration file based on the user's selection during the install. This way I can have one package to deploy both version of the program, and the user selection determines which version is installed. Simple enough right? The problem is that each time the application is started, the Windows Installer appears and "re-installs" the application. This in turn puts both configura…
Last reply by dakota97, -
-
-
- Leaders
- 2 replies
- 1.2k views
It seems 12 to 14MB of ram are always consumed by default, by any application created with VS. I built a micro-desktop-IP-display application that is consuming 13MB of RAM. What the... 13MB to display an IP address? Is there a way to drop it at least to 1MB (while I think 1MB is still absurd for displaying a phrase, but better the 14!)?
Last reply by EFileTahi-A, -
-
-
- *Experts*
- 10 replies
- 8.3k views
Hi, I'm currently developing a speech recognition application. I would like to know if and how is it possible, using the MS SAPI5.1, to record user defined phrases (and therefor language independent) and then use them as voice commands. i.e. initially record user defined words and later compare a user command to that list of pre-recorded phrases. The application performs an action according to a match. I'm trying to avoid using the Speech-to-text capabilities of the SAPI. I just want to record the user and then compare a new voice input to the initial recording. I started writing the application in VB.NET. I assume the end user uses Windows XP. Any help would be much…
Last reply by jitvinder, -
-
-
- Administrators
- 1 reply
- 1.5k views
Hi Guys! just a quick question, i cannot find anywhere how to add a database column through code. I am comparing two access database one which is a new one i have created manually with all the correct columns and another which is older with none of the new columns included. i know how to find whether the columns exist in the old table but do not know how to add new one if i need to. i tried the following but the database remains unchanged. ds2.Tables(TextBox9.Text).Columns.Add("ABC123, ds.Tables(TextBox8.Text).Columns(d).DataType) Dim cb As New OleDb.OleDbCommandBuilder(da2) da2.Update(ds2, TextBox9.Text) …
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 1 reply
- 843 views
Is it possible to open a System.Drawing.Graphic Image in paint without having to save it first ?.. If not would it be possible to save the file temporarily, use it and then discard it again ? this code requires a specific file and can't take an Image created with Graphics: Process.Start("mspaint.exe");
Last reply by snarfblam, -
-
-
- Administrators
- 1 reply
- 1k views
Hi There, I'm using the (Compact framework) As I said previous I thought I would dabble in c# for my new project, and as I thought its turning out to be a nightmare :eek: I created this control in VB and now I'm porting it to c#. In my control I have a PageListCollection (Similar to Listviews ListViewCollection) Here is the VB version: Public Class PageItemCollection Private mPages As List(Of PageItem) Private mPageList As PageList Public Sub New(ByVal oPageList As PageList) mPageList = oPageList End Sub Private ReadOnly Property Pages() As List(Of PageItem) Get If Me.mPages Is Nothing Then mPages = New List(Of PageItem) End If …
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 3 replies
- 844 views
Hello My origional goal was to override the X button, so instead of closing it would minimize to the task bar. I reached my goal by using the following code: private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) { this.Hide(); e.Cancel = true; } Now the only way the program could be closed was by pressing the 'Close' menu item. private void closeToolStripMenuItem_Click(object sender, EventArgs e) { Close(); Application.Exit(); } This just opens a new issue: I CAN'T SHUT DOWN MY COMPUTER!!!. While the program is running (on a windows XP machine) t…
Last reply by Berkil, -
-
-
- Administrators
- 1 reply
- 943 views
Hi, Is it possible to write applications for Mac using VB.NET 2008 SP1 DotNetFramework 2.0? Even if C# can do it, it's good.
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.5k views
Hello We have a huge application and publishing a new version is kind of a problem for those "islands" of application (they are being programmed elsewhere - reports, etc...). There are references to "main" code .dlls in those parts (we use svn - so they can have current versions, but it changes all te time so...). They only make .dlls, which are then published to production server. We can't just copy their code and build it all-together (that is not an option, although it would be the simplest one). Is there a way to make .dll work with .exe, without recompiling those .dll(s)? How? And, does it work the other way around: rebuild dll - publish, without rebuildin…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 1.5k views
Hi All, How would you add Dynamic controls to your form, from an array which size may vary depending on how many controls the user has selected and has been retrieved from a database? I have some ideas but none work, so I was hoping somebody would show me how to do this? Thank you, Typo.
Last reply by Typo, -
- 0 replies
- 778 views
Hi My application should read the Excel data and populate the datagrid using the excel data in windows form. Help me in detail. I have coded using C# Thanks in advance
Last reply by dinee_432, -
-
- Administrators
- 4 replies
- 2.9k views
As the title says, i have this textbox where i drop a file, and then i have like 6 external applications that works with the file, they get started with process(). The whole process takes about 20 minutes, and during that time the window i draged the file from gets locked. It gets "unlocked" again when the DragDrop-function is done, is there a way to "unlock" the window instead of having it locked until its finished? I also have this side question, when the process() is running my form is also getting "locked", any way to prevent that? -- Henrik using C#
Last reply by gardet, -
-
-
- Administrators
- 2 replies
- 3k views
I recently had to open a project because someone on our production floor did not know how to navigate the menus. When I tried to run it, I got an Unauthorized Access Exception for code that I had not modified. This query worked before installing VS2008, but now it will not run in a test application under VS2005 either. My code fails in the foreach loop when the printer is assigned at this line: public static void GetPrintersCollection() { try { string sql = "SELECT * FROM Win32_Printer"; using (ManagementObjectSearcher query = new ManagementObjectSearcher(sql)) { ManagementObjectCollection Printers = query.Get(); foreach (ManagementObject prin…
Last reply by PlausiblyDamp, -
-
- 0 replies
- 16.3k views
Hi, If you are going to make a updater for your program you may don't want to download more files. The easy way to this is making a (ZIP) file jusing 7-zip or Winrar. But, when you have downloaded the .zip file or .rar, you may want to access these files inside the .zip! I have been googling a lot how to unzip files using vb .Net ! In VB .Net it's nothing called unzip or zip. So i have played around a little and found the easy way to it. The easy way is to make a .cab (cabinet) file, but how? Just download Winrar (recommended) Right click in you explore (explorer.exe) Go to new --> (if winrar installed) click new .rar archive Delete everything in the box includi…
Last reply by stianxxs, -
-
- Administrators
- 2 replies
- 1.2k views
Hi All, I have created a tool in c#, which monitors the eventlog ( security log) and fetches the details of every new entry. The tool runs fine on one of the machines, but on another machine it runs well for some time and then starts giving the following error: "The description for Event ID '0' in Source '' cannot be found. The local computer may not have the necessary registry information or message DLL files to display the message, or you may not have permission to access them. The following information is part of the event: " The code is as follows: if (eventLog == null) { eventLog = new EventLog("Security"); eventLog.EntryWritten += new EntryWri…
Last reply by rain_dew12, -
-
-
- Administrators
- 1 reply
- 2.2k views
Hi There, As I know VB.net miles better than C# I've been creating a Dll that will handle a SQLCE database on a windows mobile device. I have most of it working ok But I'm trying to convert this method below for VB(Full .net framework), to Compact framework using C# But I'm a little stuck. The idea of the function is to use reflection and fill a custom ListviewItems class with information from the database this works great in Full .net framework, but not in CE so far. VB.net version is: Public Function GetRecords(ByVal MSLV As Object, ByVal Query As String, ByVal T As Type) As List(Of Windows.Forms.ListViewItem) Dim mProperty As PropertyInfo …
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 6 replies
- 2.1k views
using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls. WebParts; using System.Web.UI.HtmlControls; using System.Net.Mail; public partial class Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Button1_Click(object sender, EventArgs e) { //Calling the function SendMail Response.Write(SendMail("abc@gmail.com", "def@gmail.com", "ghi@yahoo.com", "Test Mail", "Test Mail Body")); } public string SendMail(string toList, string fr…
Last reply by srinivaskr, -
-
Who's Online 0 Members, 0 Anonymous, 7 Guests (See full list)
- There are no registered users currently online