.net - Control ID Rendering Differently Between Environments?
Jul 4, 2009
I have a web application that works in our stage/test environment fine but once we moved it to our production environment something weird happens. All the control ids change. a label went from ctl00_cphMainContent_lblPetName to _ctl0_cphMainContent_lblPetName. Why would this happen? What could cause something like this to happen. The only two differences I know of are the production environment has HTTPS and I've disabled debugging.
View 3 Replies
ADVERTISEMENT
Jul 8, 2009
I am creating a custom Label control (by simply Inheriting the standard Label control and re-painting the background and text) because I need a very specific background and border. In the constructor of the control, I set the AutoSize property to false so I can have a standard default size for the new label.
Public Sub New()
/*Set the default size of the control to 75x24*/
Me.Height = 24
[code]....
In my application that uses this control, if I create the new custom label at run time (in code), the AutoSize property stays False, and it works properly.If I try to add the new custom label to my form at design time, it comes in with the AutoSize property set to True, and I have to manually set it to False in the properties window. It's not a huge problem, but I don't understand why the behavior is different.
View 4 Replies
Feb 19, 2012
I've pulled down a webpage using a WebRequest object, and need to parse it, but first I need to render it since there is scripting on the page. I don't want to use the WebBrowser control because that forces me to jump out of my current function to the DocumentCompleted event, and "lose my place" (so to speak). Is there any way for me to pull down a URL using a WebRequest object and have the page rendered but still stay in my function?
View 1 Replies
Jan 18, 2009
I've built my first usercontrol for use in a GPS Mapping forms app.
pic1 shows "panel1" containing some picturebox "tools" with a map(another panel containing a picturebox) underneath.
Pic2 shows that I dragged the map and the "tool" have not moved with the drag.
"panel1" also contains my usercontrol( this will show a transparent map scale). My usercontrol and all the "tools" definately have the same parent - ie "panel1".
If I resize the form to cause a re-paint of all the controls I get Pic3 - the red T bar (my usercontrol) will be the map scale.
Everything looks OK until I drag the map - the user control goes with the drag. Pic4 shows that the usercontrol image has been erased as it passed under the "tools".
I don't understand why the "tools" stay put and on top of the map and the usercontrol does not - even though they all have the same parent.
View 3 Replies
Apr 14, 2012
I can't seem to find a way to use the IE9 rendering engine in the WebBrowser control, instead of the IE7 rendering engine, using Visual Studio 2010 and Windows Forms.
View 2 Replies
May 25, 2012
I tried this registry below and it didn't work. My application name is 'Testapp', using VS2010 on windows 7 with IE9 installed. I want to render the pages in IE9 not IE7. [URL]used this registry below, by making one separately then registered in registry. After that I launched my app but it still loaded in IE7.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION]
"testapp.exe"=dword:00002328
how can I use IE9 as render instead of IE7.
View 1 Replies
Oct 12, 2009
I'm wondering what would happen if my program was used say, on a computer with a chinese keyboard? I assume the text box controls will be fine, but sometimes I compare english strings.. such as "!" and "@" and a few other things.
View 3 Replies
Jun 4, 2010
Currently all my application that is released is always release in production. However I would like that changed and also have a development side (For testing).
I've tried searching for steps on how to create a development server however I cannot seem to find a tutorial.
In the past I've seen someone release their application in development by having it in on "Debug" option and have it released in production by having it on the "release" option. (I apologize for the vagueness as it was along time ago since I saw it).
View 2 Replies
May 15, 2009
Here is the error:
System.Runtime.InteropServices.COMException, Paste, Exception from HRESULT: 0x800A03EC
All machines are Windows XP with the same version of Excel (2003). Some machines get the error, some don't. We have yet to find a pattern.
Here is the code:
Public Shared Sub ExportToExcel(ByVal dt As System.Data.DataTable)
Dim app As New Microsoft.Office.Interop.Excel.Application
app.Visible = False
[Code].....
View 1 Replies
Apr 8, 2009
Will LINQ's parallel extensions automatically detect the number of cores and utilize them all? Conversely, if the code is run on a single core machine, will it still work or do I have to detect the number of cores and tell PLINQ how many to run across? I don't have access to any single core machines to test my code on so I can't even test this for myself and I haven't been able to find any useful info elsewhere...
Also, while it might at first seem obvious when to use parallelism, are there any rules of thumb regarding where it should and as importantly should not be used? I don't necessarily program in a specific environment. I tend to divide my time somewhat equally (depending on project) between web, client/server apps, windows apps, windows service and console utilities depending on the task at hand.
View 2 Replies
Oct 29, 2009
I am developing an application in Vb.Net 2005 and have enabled the installation by clickonce, the update occurs before the application starts. My problem is very simple, the server that contains updates is correctly natted to be available from the outside with a public IP.
The clients who access from an external network connecting without problems, download software and updates. When local clients are connected to the same network of the server (LAN) can not download anything because they try to access the server with the ip public, and the nat does not work . We can not perform operations on the DNS server or hosts file and not even on the router.
I need to figure out if i can use ClickOnce to use more than one distribution server, primary and secondary. I'd like to set as the primary server the public address and the secondary server with internal network ip address.
View 1 Replies
Oct 4, 2010
I've been working on learning VB.Net from VB6 and for some reason when I use On Error Goto handlers, or On Error Resume Next the program still procs an exception and ask to continue or close.I don't really understand what I am missing, everything I've read said it's the same as VB6 with a few extra options.
View 9 Replies
Jun 8, 2011
When I view images on my development PC they look fine, but when I view them on other PC's, the images are sized differently and often get cut off. I've tested this on multiple PC's and the images always get cut off.I've attached the images from my PC and another PC to this post, the image that is cut off if from a Windows XP PC.I'm using VS 2010 on Windows 7 64-bit.
View 7 Replies
Apr 5, 2011
I'm working on a website that creates pdfs dynamically.I've been playing around with two different pdf controls- wpcubed and abcpdf, and was surprised to see that they both appear to render text differently.
wpCubed:
abcpdf:
They are both using arial 25pt bold, so I was expecting them to look identical. Can anyone explain why they don't. Here are the full files: wpCubed , abcpdf
View 1 Replies
May 22, 2010
What is the most timers you have used in an application? I think the most I have ever used is 2.In another forum this question was asked. "I have a Timer ... I have a situation where I want to run the code in the Tick event ONLY ONCE not on the interval i have the timer set too."
I responded with Timer1_Tick(New Object, New System.EventArgs) Which led to this "The 'sender' object is VERY important when you have more than one Timer being handled by the Tick event procedure. This is because in a multi-timer tick event procedure, the only way your program knows which timer just fired is by querying the 'sender' object.When you use code like this you are putting nothing into the 'sender' object, so that if you were ever going to query it a 'kaboom' is going to happen.""...this 9 timer Tick event handler job done. Remember, all that is required is the correct timer name gets put into the ListBox." "The need for multi-timers to be handled by a single Tick event handler happens all the time. How would a real life programmer handle this? "Oh, to test the "kaboom" theory I wrote this and ran it overnight successfully:
[code]...
View 33 Replies
Sep 4, 2011
msgbox(System.Net.Dns.GetHostEntry(System.Net.Dns.GetHostName()).AddressList(0).ToString())
is showing Ip address in Win XP but in Windows 7 it is not showing.
View 7 Replies
Dec 23, 2009
If you create new projects in C# and VB.NET, then go directly in the Immediate Window and type this:
? 567 / 1000
C# will return 0, while VB.NET will return 0.567.To get the same result in C#, you need to type
? 567 / 1000.0
Why is there this difference? Why does C# require the explicit decimal point after 1000?
View 5 Replies
Dec 30, 2009
Example:
Dim Sh32 As Object = CreateObject("Shell.Application")
Dim path As String = "C: empcatalog.zip"
Dim sf As Object = Sh32.NameSpace(path)
-> does not work, sf = Nothing
Dim Sh32 As Object = CreateObject("Shell.Application")
Dim path As String = "C: empcatalog.zip"
Dim sf As Object = Sh32.NameSpace(path.ToString)
Clearly path = path.ToString, but they behave differently when used as COM parameters.
View 1 Replies
Feb 25, 2011
I have a datagridview I am displaying on a form and would like to format one of the columns differently then the available formats. I have a column that is a decimal(18,2) (in the table) named "MyDecimalField". In asp.net I could do this, in the "template field" of a datagrid.
math.round(MyDecimalField / 60 , 2)
In VB.net forms I cant figure out how to do that. Basically I need to divide the cell by 60 and round that to 2 decimal places.
IE
the Cell contains this: 1283.93
I want the user to see this: 21.40
1283.93 / 60 = 21.3988333 then round it to 21.40
View 1 Replies
Jan 3, 2011
I have written some code in a form which is shown via ShowDialog from a different form. This code fills a DataGridView with data from two tables in a dataset, one through data binding, and one through more manual means. The latter part runs, or more accurately, fails to run in the same way if I call this form in the same way subsequently but without stopping debugging.
View 2 Replies
Jul 22, 2009
I am creating a program that I would like to distribute. I am using printform in VB 2008 to print my form. My form is the size of my computer screen...15 in. If the program is run on a different computer with a different screen size, will it affect the appearance of the form on the screen or the printing of the form? If the form is run on a laptop, for example, with a smaller screen, will it cut off my form and thus cut off the form during printing? Will a bigger screen increase the size of the form and not allow it to fit correctly when printed? I was just curious and wondering.
View 6 Replies
Apr 3, 2011
When I use IE8, it displays the page fine, but when I use the web browser control in VS 2010, it shows the page differently (in a bad way).
View 12 Replies
Aug 12, 2009
I have a small VB. app in VS2008 that opens a windows folder in maximized view.I am using the following code:
Dim startInfo As New ProcessStartInfo("explorer.exe")
startInfo.WindowStyle = ProcessWindowStyle.Maximized
startInfo.Arguments = "C:\Program Files\123 Systems\ExcelFolders\TechTimeSheet"
Process.Start(startInfo)
When using my app with windows xp it works well. It opens a single folder as if going through the "my computer" to open it. Attached is a screen shot "folder" to show the desired way.However when using the same code with Vista it opens my folder as if I right clicked on the start menu and selected "explore", also a screen shot named "explore" is attached showing what I do NOT want. What should I change to get both vista and XP to work the same, that is opening a single folder.
View 1 Replies
Oct 15, 2011
I use some random number generators in a piece of VB.net code to simulate Gene reproduction. It works as followed:
- I generate a male chromosome that contains 46 random chromosomes which I put in the Arraylist: MaleChromosomes.
- I generate a female chromosome that contains 46 random chromosomes which I put in the Arraylist: FemaleChromosomes.
- Then I have a piece of code that randomly picks 23 chromosomes from the female arraylist and randomly picks 23 chromosomes from the male chromosomes ( Very simple simulation of reproduction ) and put these in the arraylist: Child
- I repeat this for the second child ( Arraylist: Child2.)
- Now I have piece of code that compares these arraylist to see how many chromosomes the two children share.
View 1 Replies
Sep 1, 2009
I have a legacy vb6 application that uses a shell command to launch a newer .net application. It's a very simple command, just launches an app. Here's the problem. When I run the .net app through the shell command, it tries to connect to a database that is not referenced in it. If I double-click the .net executable, it runs just fine and connects the way it is supposed to. Normal, no problems. Only when I run it from the shell command do I have problems. I have checked everything I can think of and simply can not come up with a reason why the app would behave differently when launched from a shell command.
View 3 Replies
Jul 8, 2009
I have project that communicates with an embedded device via Telnet and displays the data string in a RichTextbox. Here is the (weird) problem: every time I send a command, the device responds, at the end of the response there is a prompt on a NEW LINE. However, when I ASCII encode the bytes received and display the string, the prompt is on the same line as the response in the text box. So I looked at the bytes for several different commands and the response always starts with a 13,10,13 which is CR, LF, CR, that puts the response on a new line, also displayed on a new line in the text box.
However, at the end of the response, there is always a 13,13,10 (CR,CR,LF) followed by the prompt, but in the text box the prompt is NOT on a new line it is merely a couple of spaces after the response. The funny thing is that this behavior is absolutely not present in Hyper Terminal, or Tera Term applications, when I connect to the device using Tera Term, the prompt is always on a new line. Even the VS IDE shows this correctly in the Output window, every prompt is on a new line. I can not for the life of me figure out why this behaves differently in my RichTextbox. I have experimented with different settings for the textbox, but so far nothing worked.
View 7 Replies
Mar 24, 2011
Based on our tests primarily done in VB.NET in VS2010 it seems that when you close a WinForm the "RowValidating" event of the DataGridView on that form behaves differently depending on whether the form is MODAL or NON-MODAL. What we did was open the form (MODAL and NONMODAL) and changed a value of a cell and then immediately clicked the "X" to close the form. It looks like the "RowValidating" event DOESN'T fire if the grid is on a MODAL form but it DOES fire when the grid is on a NON-MODAL form. We can't figure out why that is... Is this a known bug in .NET?
[Code]...
View 3 Replies
May 10, 2012
I am using IIS 5.1 on server 2000. I have set the asp.net page for custom error in IIS which is directing to C:InetpubwwwrootCustom_ ErrorIIS_Error.aspx. Custom error page appears when user keyin wrong password for 3 times.When i access the error page directly (for testing) from my laptop using following URL then i can see the page text and the text box.
//192.168.0.10/Custom_Error/IIS_Error.aspx
But when user keyin wrong password for 3 times, system shows the custom error page with text only and doesn't show the asp.net controls.Also, is there any way to show the local path from where the user has been redirected to the custom error page? For an example; we have got 10 folders under website called TestWeb, so when the user is accessing folder number (3) called webtest3 and custom error page should show webtest3 on the page.Can i do it either on asp.net or on asp classic page?
View 2 Replies
Feb 16, 2011
Working on some UI stuff, but I am having a problem drawing 'Top rounded' rectangles when the two top corners are rounded. I have methods to draw all four corners rounded and bottom rounded rectangles and they render fine.
I have attempted the graphics methods in CreateTopRoundedRect() in a variety of different orders, drawing the other corner first, the bottom line first, the bottom line before the left line, etc. In this function you can see a diagonal line splitting the shape. If you were to switch the bottom and left lines only half of the shape would be filled.
[Code]...
View 3 Replies
Jul 5, 2011
I'm getting a strange problem with an ASP.NET web application that is in production. The problem is that pages intermittently don't render correctly (see screen shot below). It isn't one particular page in the application or one particular use that is having the problem.
View 1 Replies