TechTnT's Q&A profile
Visual Basic why do I get a cant cast a string to a double for the textbox
I am working with labels and textboxes and comboboxes. I need to get numbers from them. But I keep getting cast exceptions. The calculations are below. Sorry about the mess. I am trying everything. I will keep reading till I figure this out. Thank for you help. Sub Calculate() 'MsgBox(TypeName(CDbl(Me.lblTL.Text)) & " Str ") 'Me.lblR1.Text = CStr(xxx) Dim xxx As Double 'Me.lblR1.Text() xxx = CDbl ( Me .lblTL.Text) * CDbl ( Me .txbL.Text) Me .lblR2.Text = CDbl ( Me .lblTL.Text) * Me .txbL.Text Me .lblTL.Text = Me .txbLL.Text + Me .txbDL.Text Me .lblAllowableDef.Text = Me .txbL. ...Show All
Visual C# Form Background
Ok. I know I have asked this question before, but I found myself working on another task so I need to ask again. What I want is for my forms background image to exceed the form borders, so that the background image is seen and not the form. For example, Windows Media player, notice its soft bevel edges. Like the background image is covering the form. Can someone explain throughly on how to do something like that Thank you. This isn't done by stretching the image beyond the size of the form but by making the image rounded and then using the transparent color of the image to hide it. 1. Create the image with the rounded edge.  ...Show All
Software Development for Windows Vista SetDynamicReconnectLevel error invalid floating point operation
I must set SetDynamicReconnectLevel in CONNECTF_DYNAMIC_NONE modality. You can see under this message the test function "TimelineTest". If I use an exe application the function works normally but if I use the function in an ocx,dll or ATL component when I call the method pRenderEngine->ConnectFrontEnd( ), it raises an exception like "invalid floating point operation", if I don't set the property SetDynamicReconnectLevel all works. Why Can you help me I don't understand where is the mistake. int TimelineTest( ) { USES_CONVERSION; HRESULT hr; // use the ATL libraries to do automatic reference counting on poin ...Show All
Windows Forms printing a datagrid in VB2005 (Again)
Has anybody found a good solution to this yet I can not get my grid to print I can only see some "C" code but that has not helped me much. By print, you mean to a printer, right First, you'd get a bitmap that shows what's on the control, using Control.DrawToBitmap (air code -- something like this): Dim rect As Rectangle = myGrid.ClientRectangle Dim bmp As new Bitmap(rect.Width, rect.Height) myGrid.DrawToBitmap(bmp, rect) Then you'd do the actual printing. There's info on printing ...Show All
SQL Server Which edition of Sql server 2005 provides mirroring
Hi.... I have sql server 2005 evaluation edition. And This version doesn't provides Mirroring option.Even after installation of service Pack1. Is there any other edition (Freeware or Evaluation) which provides the Database Mirroring. waiting for the prompt reply. Thanks Unfortunately, there is no other evaluation or free version that supports Database mirroring. Database mirroring works only on Standard and Enterprise editions. You also need to have SP1 installed for database mirroring to work. ...Show All
Windows Forms Help Please - Inserting new row in master/detail form with DGV
hi there, I need help urgently on this issue: I am doing a simple master/detail file - master with table T1 with simple textbox controls detail with table T2 with DGV. T1 & T2 is relate thru a "FK_T1_T2" relationship set (T1.ColT1 = T2.ColT2) in the database (SQL2K). I used mostly designer and hence T1BindingNavigator is created. I created a bindingSource bd as new bindingSouce(T1BindingSource,"FK_T1_T2") and assigned that to the DGV as advised in some of the post. with this the display of master/detail seems ok. However, if I add a new record via T1BindingNavigator - addnewitem button and add new rows to ...Show All
Windows Forms redrawing buttons?
HY, I'm interested in How can I iherit and redraw a controll > button, textbox, toolstrip menu etc. I have been searching for tutorials and documentation and I haven't found anything yet. I'm trying (for example) to make a hexagonal button.> to redraw it (not to draw one whith the gdi....i know how to do that)....I whant to inherit it from vb and redraw it... How hard is this Are there any tutorials Have you done this before Please help me. I am searching for a while and can't find anything. & ...Show All
SQL Server Error message for null at SET or aggregate
The following code works perfectly when run by itself: DECLARE @DateTransaction smalldatetime DECLARE @TradeDate smalldatetime SET @DateTransaction = (SELECT Max(DateTransaction) FROM tblImport) SET @TradeDate = (SELECT Max(DateTrade) FROM tblSystem) PRINT 'The Transaction Date is ' + CAST(@DateTransaction as varchar) + '. The Trade Date is ' + CAST(@TradeDate as varchar) However, it is part of a long stored procedure, and when it runs there, I get the following instead of the line confirming the two dates: Warning: Null value is eliminated by an aggregate or other SET operation. What could be interfering with this section of ...Show All
Software Development for Windows Vista linker errors in VS 2005 (C++)
I fixed the "cant find windows.h" problem and now I am getting linker erros like those below, after using the Windows App wizard to create code and compile it with no changes, can anyone help Linking... test4.obj : error LNK2019: unresolved external symbol __imp__DispatchMessageW@4 referenced in function _wWinMain@16 test4.obj : error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function _wWinMain@16 test4.obj : error LNK2019: unresolved external symbol __imp__TranslateAcceleratorW@12 referenced in function _wWinMain@16 test4.obj : error LNK2019: unresolved external symbol __imp__GetMessageW@16 referenced ...Show All
Visual Basic Rebuild Failed - 0 errors many warnings.
Shouldn't there be someway to determine which error is causing the build to fail. Most of my warnings are Performance, Globilization and interoperability errors. It does give me an option to run the latest build that worked which appears to be the build that the IDE is telling me is failing. I selected Disable all warning and the build failed. Where is the log for this process ...Show All
.NET Development CDO Mail very odd missing period in file name
This is a standard ASP question. I am using CDO mail object to send a confirmation email from and ASP website. When I get the email in outlook all is fine but the period between the file name and extension is missing. Other periods in the URL are not affected. The message includes this line "https://www.readysecure5.com/users/spiritualcompetencycom/QuizSummaryForm.asp " but the email only has this "https://www.readysecure5.com/users/spiritualcompetencycom/QuizSummaryFormasp " Note the missing dot in QuizSummaryFormasp instead of QuizsummaryForm.asp. I have tried everything I know. HELP. John McKenzie john@jmckenzie.com ...Show All
.NET Development .Net Remoting for client/server implementation
Hello, I am having a serious issue and loosing the argument of using .NET Remoting in implementation of client/server architecture. Can any one give me severral good reasons for using .NET remoting over writing custom implementation for client and server The proposed solution is very straight forward, however I am wondering if there are any disadvantages to this approach we should be aware of. My co-worker is proposing to implement listener on the server side that will catch encrypted traffic sent from the client. Then, parse sent message to find out what the request is and perform certain actions to s ...Show All
Smart Device Development Smart device project debugging on actual device
Hi everyone I have recently flattened my machine and resinstalled everything from scratch I have visual studio 2005 and visual studio 2003 (I installed vs 2005 before vs 2003, this may have no bearing on things but I thought I would mention it). For some reason now when I debug a smart device project on the actual device none of the breakpoints are hit and I get the little exclamation saying that no symbols have been loaded. When I look in the modules window sure enough it has my exe listed and it also shows the pdb file and says that the symbols have been loaded. I thought I would see what happened if I tried to load ...Show All
Visual Studio Team System Confusion when the Merge target solution is not loaded
Merging when the source branch solution is loaded into VS and the target branch isn't throws you off for a moment because you know there should be pending changes but there aren't any. At least not until you load the target branch solution. This is a rough-edge IMO. What if I merge branches and the merge spans multiple solutions Do I need to load each solution in order to checkin all the pending changes from within VS I know there's probably an easier way to do this from the command line but folks are probably going to prefer to stay in VS when possible. Do you ...Show All
Windows Forms Drawing points and lines in forms using VisualBasic.NET
Please excuse my extreme ignorance, I'm very new to this .net thing. Can someone give me a shove in the right direction please. I want to display points on a form using VB.net and then, later be able to rotate them, zoom in/out etc. But, first things first... I've declared a Point object and set it's x, y co-ordinates. I want to be able to display it - How do I do this Dim pt As New Point Pt.X = 100 pt.Y = 100 -- Help needed here! All the best In a form, override the OnPaint method. That method will have PaintEventArgs as a parameter, which con ...Show All
