Topics
-
- 2 replies
- 2.7k views
Hi There, I have a datagridview control that I do the following to. I load a dataset with data from a SQL database then I add an empty datarow as the first row. This empty row i will use for unputting the search text when the datagridview is in runtime. So you can search the database from within the datagridview if the first result isn't what you want. Now the first row needs to be editable but the rest of the rows need to be read only. This is working but only after I performed a search in the empty row. It looks like when the control is first initialized the SetDialogDimensions sub(I have created which sets the dimensions for the dialog) isn't performed. I have …
Last reply by feurich, -
-
- Administrators
- 1 reply
- 773 views
Hi, I am addding say 10 String Values in a list and am serializing it and Saving in a file and then I encrypt the File and Zip it and send it thro mail . In the Other End I download the attachment , Unzip it , Decrypt the File and When I am Trying to Deserialize it . I am getting the Error . I am able to Deserialize the File . " I compared the both the serialized ie., Before Encryption and After Encryption . there is a change in teh First Line" I tried Using both Unicode encoding and UTF8 encoding . Both resulte the same error. Could Someone help me Sort out this error. and Can we encrypt the serialized data. Regards, Prashanth.
Last reply by PlausiblyDamp, -
-
- 3 replies
- 1.4k views
I have a strange error with a DataGridView. I attached dummy code to show it. As you can see, when you click the 1st button, it loads the DGV manually with dummy data and the DGV row formatting code is applied as expected. But when you click the 2nd button to load the DGV via a query, the DGV row formatting code does NOT apply as expected. (You can click the "Redo" format button to make it work, but I need it to work when the form loads.) Any idea why the formatting won't take place with the 2nd method? (BTW, the second method via the query doesn't remain bound to the DB, does it? I don't want it to, and I assume it doesn't since the DataAdapter is destroyed, but…
Last reply by JDYoder, -
-
- Administrators
- 5 replies
- 2.1k views
Hi, I'm a new member and hope I've chosen the appropriate forum for my question. I'm wondering whether anyone might be able to help me with the following problem. I have a .NET COM module add-in for Excel, which I wrote in VB back in 2004, and have been using fairly regularly since then. The Installer package has come with me from job to job and I have never had any problems loading it onto new machines and connecting with Excel. (Provided .NET framework is installed and I have admin rights to the machine) I haven't used the add-in for about six months and recently tried to install it on my current machine (which I have had for 2 years). The installer appea…
Last reply by garmstro, -
-
- 0 replies
- 1.1k views
Hi, Is there any way to detect silent audio channels? I have some bogus video/audio files (avi, mkv, ogm, etc) which have mostly AC3 audio streams with 6 channels. The problem ist they only have 2 channels which contain actual audio data, the other channels are just silent. I need a way to detect that. Is there a simple way to do this? I don't want to get each and every library to demux the audio stream from the container and then get a library which can read that specific audio stream to check if there are some silent channels. It may be as hacked together as it needs to be if it gets the job done. Maybe it could be possible through some media players? …
Last reply by Arokh, -
- 2 replies
- 1.2k views
for some reason I am having a mental block. All I am trying to do is format the current position in media player to have tenths of a second using the current position on mediaplayer, timeserial, and format. I get everything I want except the tenths of a second. mpPlayer.CurrentPosition returns 27.5472404 TimeSerial(0, 0, mpPlayer.CurrentPosition) returns 12:00:31 AM Format(TimeSerial(0, 0, mpPlayer.CurrentPosition), "m:ss.f") returns 0:31.0 but it is always .0 Any suggestions on how can I get tenths of a second? Thanks ZeroEffect
Last reply by stumper66, -
-
- Administrators
- 3 replies
- 1k views
Hi all, I'm just looking for some advice on the best way to go about making a current c# application multi-lingual. Currently all the text for controls captions and messages are coded in to the application, so I was wondering what the best approach would be. My thoughts were to store all the strings in a database table (as the application uses a DB anyway) and read them in at start up into a class and then use them that way (ie. cmdOK.caption = Lang.OK;) The problem I have with that is how to go about extracting all the text from within the code. Any suggestions other than a manual approach?? Alternatively, as this hasn't taken place yet, I'm open to other …
Last reply by PlausiblyDamp, -
-
-
- Administrators
- 1 reply
- 1.6k views
I run an application (consider it like a server) which (every 23minutes) needs to determine which computers are running and which have been powered off (over the internal network), to be reliable the server itself will query those machines to determine their status before proceeding to critical tasks. Problem is, seeing as this is done repetively (every 23minutes or less) and causes a delay to user when in progress (can't proceed until group of stations is defined) I need something that is: a) reliable b) fast I used to check the REMOTE REGISTRY (using Windows REG api stuff) but aside from this being a horrible way it is also prone to errors (which I recently disc…
Last reply by PlausiblyDamp, -
-
- 1 reply
- 2.7k views
I uploaded a file onto one of my free Windows Hosting account on GoDaddy located at http://www.poojo.com. The file is "FleetWhiz.iso", created for my partner in another part of the country, and it is 70 MB in size. In a page labeled "Default.aspx" in a folder called "test", I placed a link to this file so my partner could right-click the file to save it to his PC. The link in "test/Default.aspx" does not work. It says that the file was not found, even though FileZilla shows it sitting on my remote server. Thinking ISO files might be suspect, I renamed it "FleetWhiz_iso" (with no extension), and updated my link accordingly. Again, I get that there is no such…
Last reply by joe_pool_is, -
- 2 replies
- 1.3k views
Hi, I'm currently writing a application which calculates different hashes. Every hash I "have" has inheritet the HashAlgorithm class and now I want to use them to calculate those hashes. And I want it to be calculated as fast as possible. At first I thought it wouldn't be so hard to do so, but I guess I was wrong. Since I have 4 cores I wanted to make 4 threads. Each thread would be responsible for calculating a hash. Then I have a main loop which reads from the file, then "passes" the data onto the threads, and tell it to calculate the next part of the hash. But I keep on having something like synchronisation problems. And everytime I try to rewrit…
Last reply by Arokh, -
-
- Administrators
- 2 replies
- 847 views
Hello All, Please bare with me as I am just getting into ASP.net from Asp Classic. I have looked on google without much luck for a way to use a template file in asp.net. Basically what I am trying to achieve is have one template file for the website and all the other scripts use that template. So that when changes need to be made I only have to alter the template file. In ASP Classic, I just used it as a include file and placed a subroutine in the file to display content in the template. Is there a way to accomplish this in ASP.Net? Many Thanks for your time. Andrew Harris
Last reply by AndrewHuk, -
-
- 0 replies
- 2.3k views
I am trying to importRow from one datatable to another datatable. Code is as below if (!pTargetRelease.kPIs.mainDS.Tables["KPIs"].Rows.Contains(dr["KPI"])) { // Find the pSourceRelease KPI row and add it DataRow newRow = pSourceRelease.kPIs.GetKpiRow(dr["KPI"].ToString()); if (newRow != null) pTargetRelease.kPIs.mainDS.Tables["KPIs"].ImportRow(newRow); } pTargetRelease.AcceptChanges(); If i debug and see then it imports the row from sourceRelease to TargetRelease but when i do not debug and directly run the application, …
Last reply by ga_gandhi, -
- 0 replies
- 935 views
Hi How to call the event ItemDataBound this is my event protected void grdReport3_ItemDataBound(object source, System.Web.UI.WebControls.DataGridItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { DataRowView rv = (DataRowView)e.Item.DataItem; DateTime iap = Convert.ToDateTime(rv.Row.ItemArray[3]); DateTime iaa = Convert.ToDateTime(rv.Row.ItemArray[4]); if (iaa > iap) { e.Item.BackColor = System.Drawing.Color.Red; } } } i have included in source code fro datagrid(its not getting through intellisense) OnItemDataBound="grdReport3_ItemDataBound" Please help how to f…
Last reply by pa1asp7, -
-
- Administrators
- 2 replies
- 848 views
Hello All, This is my first post and i am new to VB.Net. I would like to know how can I make a application in which I will recive the data from serial port and It will be updated in DataTable (dim g_Table as DataTable)? I would also like to know how to make OPC (OLE for process control) server using VB.NET and serial port? Regards and thanks in advance, JC
Last reply by electrojit, -
-
- 0 replies
- 756 views
I need a way to add the total number of pages in a document to the PrintDialog: PrintDocument printDoc = new PrintDocument(); void GenericFn() { PrintDialog pd = new PrintDialog(); pd.Document = printDoc; pd.PrinterSettings.FromPage = 1; pd.PrinterSettings.ToPage = 1; // how do I set this value from printDoc? pd.ShowDialog(); } I'm using this DataGridViewer Printer class that nicely handles sending all of the code from the DataGridViewer to the printer using PrintDocument.PrintPage and PrintDocument.BeginPrint routines, but the code doesn't have a way to determine how many pages are in the entire document. Is anyone here skilled in this? I'd like my oper…
Last reply by joe_pool_is, -
- 4 replies
- 1.3k views
I need to write an "easter egg" into our application. It is designed to eliminate keystrokes, and it works great. This forces our application to use the hand held scanners that are plugged into the COM port. (If reading the COM port fails, we do not suppress the keystrokes) However, occasionally someone in the IT department needs to remote in to do some diagnostics from another computer. If KeyEventArgs.SuppressKeyPress = True, no one can operate the application remotely. I'm looking for a good idea here. I tried using the Alt key to signal that I want to bypass the Suppress feature, but then the Alt+(whatever was pressed) is unrecognizable by the system. …
Last reply by JumpyNET, -
- 4 replies
- 3.5k views
One to pass on to the vBulletin people - the Search and Quick Links dropdown menus don't appear in Google Chrome. Quite annoying.
Last reply by SoftWareRevue, -
- 1 reply
- 1.2k views
Can you tell me any books especially the free to download for SQL Server 2005 Practice? I need to know deeply in SQL Server 2005. Please?
Last reply by kulrom, -
- 1 reply
- 1.4k views
Hello there, I am migrating some code from classic asp to asp.net. Right now i have come across a code which i can't figure how it translate to C# as i don't even know what it does. httpresponse = Server.Create("Microsoft.XMLHTTP") if S_DIRECT_RESPONSE=1 then httpresponse.Open "GET",url_trait,false httpresponse.Send response.write (httpresponse.responseText) response.end else httpresponse.Open "GET",url_trait,true httpresponse.Send end if If anyone understand the above, it would be nice to write its equivalent in C#. Thanks in advance
Last reply by kulrom, -
-
- Administrators
- 2 replies
- 701 views
Hi, How can I convert the first letter of each word in a sentence to upper case? I cannot simply use .ToUpper because some words like "of" shouldn't be converted. Is there an internal function in VB.NET FW2 which do it for me automatically? Capitalization I mean. Thanks :)
Last reply by stumper66, -
-
Who's Online 0 Members, 0 Anonymous, 14 Guests (See full list)
- There are no registered users currently online