Topics
-
-
- Administrators
- 3 replies
- 1.7k views
Hi there, I'm writing this application that gets the current tune from Winamp, iTunes and YouTube (video in YouTube's case!), and I had this working before, and I'm getting it working up to a point now, but what I have keeps on returning integers instead of the text. So far I've got: Public Function GetWindowHandle(ByVal partialTitle As String) As IntPtr For Each p As Process In Process.GetProcesses() If p.MainWindowTitle.IndexOf(partialTitle, 0, _ StringComparison.CurrentCultureIgnoreCase) > -1 Then Return p.MainWindowHandle 'Found Window End If Next Return IntPtr.Zero 'No Match Found …
Last reply by PlausiblyDamp, -
-
- 0 replies
- 1.5k views
Hi all, I'm trying to load the data from a dataset into a crystalreportviewer. I have the report ready itself ready but everytime i load the report I only see the layout and the data is missing. Does anyone know what's going on? yours, bernhard
Last reply by mrpddnos, -
-
- Leaders
- 5 replies
- 2.8k views
Hey, I'm creating an class library in wich I have a resource file that contains an image that is going to be used as a backgroundImage of a custom control (Button). So in the Sub New() of my custom Button I added: Me.BackgroundImage = My.Resources.Resources.customImage When I drag the control on a form in my class library the backgroundImage property doesn't hold a reference to the image in the resource file but instead created an local resource (formName.resx) and replaced the property with System.Drawing.Image. Now when I change the property of the control manualy to use the Resources.resx file and the customImage element in that resource. For some reason…
Last reply by Ontani, -
-
- 2 replies
- 5.2k views
hi to all, I have an excel with some information that i want to export to a dataset and then fill a datagrid. This code here works just fine. private void processExcel() { System.Data.OleDb.OleDbDataAdapter MyCommand; System.Data.OleDb.OleDbConnection MyConnection; dsExcel.Clear(); MyConnection = new System.Data.OleDb.OleDbConnection("provider=Microsoft.Jet.OLEDB.4.0; " + "data source=C:\\book1.xls; " + "Extended Properties=Excel 8.0;"); MyCommand = new System.Data.OleDb.OleDbDataAdapter("select * from [sheet1$]", MyConnection); MyCommand.Fill(dsExcel); MyConnection.Close(); this.dgExcel.DataSource = dsExcel; } my problem is that the excel has lot…
Last reply by robertsams23, -
-
- Leaders
- 3 replies
- 894 views
I am trying to find a way to compare two versions that are stored in a text file, specifically I extract them both (as strings) and compare using standard operations (<, >, =<, =>, ==) - most of the time this works but I've just encountered a case that outright fails. For example: 1 < 5 2a > 1b 75a > 54 92c > 92a These all seem to work fine ... but then I just got this case 113 < 90A (which is absolutly wrong, 113 is greater then 90A not less then) So, I guess using the standard operators on my strings was a pretty bad idea - now I need to come up with an alternative. The version is always NUMERICAL followed potent…
Last reply by snarfblam, -
-
- 1 reply
- 882 views
I am trying to create a throughput test. I have two data radios that I need to test at 115200 Baud and need to make sure the data arrives at better then 140000 Baud over a 3 second burst of random byte data. I am creating a randomized array size of Baud Rate * 3seconds, and then measuring the time it takes to get the data back, In addition I compare the data sent to the data received to check for errors. My current solution takes ~38 seconds to run, so I think part of the bottle neck is currently code based. I used a multithread transmit and receive solution. Where I transmit all of the data in one thread via one com port and then listen on another thread in ano…
Last reply by MTSkull, -
- 3 replies
- 3.8k views
I create a data entry page which contain a lot of textbox and using required field validator. So, when required field is not enter, error message will appear. My problem is the page also include a datagrid and bind with bound column and button column. The button column combine Edit & Delete button. When click on the button, the required field validator is activate. User cannot perform edit or delete command until all required fields are enter. How can i set the Causes Validation of Edit/Delete button to "False" since it can be done in form button. I didn't see properties of datagrid allow to set. Appreciate for those giving comments and help. Thanks Calvi…
Last reply by apostille, -
- 0 replies
- 2.5k views
Hello all.I am also new and i hope that i will help with my knowledge and to learn from other. cheers
Last reply by Anaks, -
- 0 replies
- 1.7k views
Hi, I've been trying to speed up the calculation of the Tiger hash. Though its said that it is a fast hash function beating sha-1, but I can't get anywhere near the sha-1 speed. While sha-1 is limited by my HDD speed at about ~120mb/s, the Tiger hash is limited by my cpu and the speed drops down to ~42mb/s. I've attached the current version for the Tiger hash algorithm I'm using, or view it here Going by this site the Tiger hash should be considerately faster. I know those hashes are highly optimized, but isn't there a way to get more speed in my code in C#? Tiger.zip
Last reply by Arokh, -
-
- Administrators
- 1 reply
- 738 views
Hi, I just don't know use which edition of Visual Studio .NET 2008? Express, Standard or Professional ?! I have express and it's OK just it won't allow me to select target .net framework when I want to create a new project. The professional version allows you to select your new project is for .net framework 2.0, 3.0 or 3.5 ?! I don't think I use professional version features, although I don't know what they are? But I need this ability to select the .net framework. Anyone knows a table that compares express, standard and professional edition? Or have any information on this? Also, if I compile my project using EXPRESS or TEAM SYSTEM edition, is there a differenc…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 2.7k views
Ok, I have this Excel read this is working great my trouble is that my excel table is password protected. Can any one tell me what I need to do for this? Thank you, using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data; namespace CK01 { class Program { static void Main(string[] args) { string ConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;"+ "Data Source=C:\\CK01\\Book1.xls;"+ "Extended Properties=" + (char)34 + "Excel 8.0;HDR=Yes;IMEX=1" + (char)34; //Create the connection System.Data.OleDb.OleDbConnection ExcelConnection = new System…
Last reply by Vikasbhandari2, -
Hi Cindy, I am creating a simple VB.Net Excel Addin, where in I am trying to Trap the Selection Type. I am trying the function after clicking a button in the Ribbon. And I am using Ribbon Designer for this. Not sure if it does create any difference. The Ribbon designer has the following Event handler: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As Microsoft.Office.Tools.Ribbon.RibbonControlEventArgs) Handles Button1.Click 'MsgBox("Button Clicked", MsgBoxStyle.Critical, "Success!!") Dim app As Application = Globals.ThisAddIn.Application Dim selType As String Dim typ As Type Dim strName As String …
Last reply by Vikasbhandari2, -
- 2 replies
- 2.7k views
I could not find a way to export data from the Object Browser in VB2008Express. Also it was not possible to select and copy multiple entries at once. I used Object Browser to extract all the function names and possible parameters from a dll, but I also need to save these to a text file. Does anyone know a way to do this?
Last reply by JumpyNET, -
- 1 reply
- 993 views
Hi All I am facing SQL Server Timeout exception. try { SetStoredProcCommand(SPRetrieveIntSchedReport, DatabaseConfigKey); AddInParameter("@FromDate", DbType.DateTime, schedule.FromDate); AddInParameter("@ToDate", DbType.DateTime, schedule.ToDate); AddInParameter("@ApplnType", DbType.String, schedule.ApplnType); IDataReader dataReader = ExecuteReader(); while (dataReader.Read()) { .....} } When the control reaches the data reader its taking much time to enter the WHILE loop, and some times its getting in and its done fine,but sme times facing this SQL SERVER TIMEOUT EXCEPTION.…
Last reply by Fork501, -
-
- Administrators
- 4 replies
- 1.2k views
Are the following lines comments or exectuable code in an ASP.NET file? <!-- #include file='~/imageswap.html' --> <!--<asp:HyperLink ID="HyperLink10" runat="server" NavigateUrl="~/About/BrucesBrew.aspx"><asp:Image ID="WhatsBrewingPhoto" runat="server" ImageUrl="~/Images/Common/Extras/WhatsBrewing/WhatsBrewingPhoto01.jpg" BorderWidth="0" /></asp:HyperLink> --> <%--<asp:Image ID="WhatsBrewingLS" runat="server" ImageUrl="~/Images/Common/Extras/WhatsBrewing/WhatsBrewingLeftSpacer.gif" BorderWidth="0" /><asp:ImageButton ID="BrewingPrevious" runat="server" ImageUrl="~/Images/Common/Extras/WhatsBrewing/WhatsBrewingPrevious.gif" Borde…
Last reply by Fork501, -
-
-
- Administrators
- 1 reply
- 2.6k views
Hi, I have a combo box witg autocompleteSource as ListItems, AutoCompleteMode as Suggest. I have a number of items in my list such as '1.1' '1.1.1' '1.1.2' When I try and type in 1.1.1, it matches on the 1.1 and then puts the cursor at the beginning of the text which then wipes out the .1 I type in next. I have tried putting Me.SelectionStart = Me.Text.Length in OnSelectedIndexChanged but that did not work. Using SendKeys was a disaster as it out into an endless loop. Any suggestions on how to fix this? Thanks,
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 4.9k views
Hi, I've been searching for a specific library which fits my need and now I finally found it, but I can't get it to work :/ The first problem was I forgot to change the settings from Any CPU to 86x, but as soon as I git rid of that error another came: System.IO.FileLoadException was unhandled Message="Could not load file or assembly 'AvDnCpp, Version=0.7.2526.26249, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail. (Exception from HRESULT: 0x800736B1)" Source="CsOutputExample" FileName="AvDnCpp, Versio…
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 3.5k views
Probably a pretty newbie question but I'm having a hard time how to correctly use GetProcAddress to gain access to a function in a DLL I wrote... The following is in the a.dll file I created (the function I wish to expose): A.cpp BOOL DoWork (LPCTSTR a, DWORD b = 5000, BOOL c = TRUE, UCHAR d = 10, UCHAR e = 0) [/Code] A.h [Code] A_DLLPORT BOOL DoWork (LPCTSTR a, DWORD b, BOOL c, UCHAR d, UCHAR e); [/Code] Now, in my actual application I am trying to load the dll function DoWork as follows: [Code] HMODULE hModule = LoadLibrary ("a.DLL"); if (!hModule) { return; } BOOL (*DoWork) (LPCTSTR) = GetProcAddress (hModule, "…
Last reply by PlausiblyDamp, -
-
-
- Leaders
- 1 reply
- 3.4k views
Hi All , When I attempt to deserialize a stream , I receive the error stating " No map for object 67108864 " . The Code: Serialize: list<String> m_QueryList = new list<string> string str = "some Text"; Stream stream = File.Open(e.FullPath, FileMode.Open); m_QueryList.Add(str); binFormater.Serialize(stream, m_QueryList); stream.Close(); Deserialize : Stream stream = File.Open(e.FullPath, FileMode.OpenOrCreate); m_recvdList = (List<string>)binFormater.Deserialize(stream); stream.Close(); Could someone kindly help me fix this er…
Last reply by snarfblam, -
-
- 0 replies
- 2.2k views
Hi am new here, greetings to all.
Last reply by IcerdoseDer,
-
Who's Online 0 Members, 0 Anonymous, 14 Guests (See full list)
- There are no registered users currently online