Software Development Network Logo
  • SQL Server
  • IE Development
  • Windows Forms
  • .NET Development
  • SharePoint Products
  • Visual FoxPro
  • Visual Studio
  • Microsoft ISV
  • Visual C++
  • Visual Basic
  • Visual C#
  • Smart Devicet
  • Audio and Video
  • VS Team System
  • Windows Vista

Software Development Network >> Vegar Imsland's Q&A profile

Vegar Imsland

Member List

Cordell Swannack
BALA SINGAM - My
Ethan Hunt
BobLoblaw
James Juno
cmolinap
Tan Chin Yong
Trevor E Hilder
deen
DaniMaia
Peter Cwik
dams
Radith
olakara
Mastroyani
Thomas Ivarsson
Lionel Johnson
perezd
Caioshin
Sledgehammer
Only Title

Vegar Imsland's Q&A profile

  • Visual C# SerialPinChange.Break

    Hi, When we encounter a SerialPinChange.Break condition, it throws an exception, which we handle but which also causes our application to abort. Is there any way to reset the SerialPort object to a "non-break" state Using a statement like "port.BreakState = false" does not seem to be sufficient. Yes, we finally found the root cause of the problem. Our microcontroller software was sending a modem AT command to our server software, where the SerialPort object interpreted the AT command as a break signal. When we removed the AT command from the data stream the break signal disappeared. ...Show All

  • Visual Studio 2008 (Pre-release) What limit my connections?

    I set the maxConnections of my netTcpBinding to 1000, and the behaviorConfiguration of my service is like this: <BEHAVIOR name="SampleServiceBehavior"> <SERVICETHROTTLING maxConcurrentInstances="1000" maxConcurrentSessions="1000" maxConcurrentCalls="1000" /> </BEHAVIOR> In my client, I send 200 requests to my service in 200 threads, In every thread, I create a new proxy to connect to my service. In my service, I make the thread sleep 10 seconds before return the response. for I want to simulate multiple clients call the service to do a long time work in concurrency. But I found that my client can't receive all the responses. And there were some timeout excep ...Show All

  • Internet Explorer Development ASP sessions terminate prematurely in IE7

    Hello all, For some reason, if I log in in my (classic) ASP application since having installed IE7, I am wiped out after about 4 minutes or so, meaning that some session variables must have been blanked. Apparently the ASP session cookies cease to exist, which makes me unhappy, knowing that my visitors are steadily upgrading to IE7. Another cookie-oriented problem is that for one reason or the other, all cookies are wiped out on a more or less regular basis, even if they are told to stay alive for at least 24 hours. This happens almost randomly / erraticly. When I was still using IE6, I had none of these problems. Very sure about that. I am currently on XP-home and using IE7.0.5730.11. The phenomenon occurs on both the 2 pc's to which ...Show All

  • .NET Development Cryptography_CSP_NoPrivateKey error

    Hello, I'm trying to call a webservice with WSE 2.0 (sp3) in a code implemented in a NT service (developed in .net). To do this, I'm adding a certificate token and creating a sign element, but when I send the message the framework rises the following error: Cryptography_CSP_NoPrivateKey This error doesn't happen if I call the same code (exactly) from a windows application... Does anyone know what could be generating this behaviour Is this something related with permissions on my user account and the localsystem account who runs the service Regards, Markus The Markus wrote: Hola Idan, wse 2.0 has a tool who is called: WSE X.509 Certificate Tool. Use it to open the cust ...Show All

  • SQL Server Filter on different dataset

    I have a list control with dataset 'foo' in it. The list contains a table control using data from 'foo'. The list also contains a chart control which, as it's source, uses a different dataset 'bar'. 'foo' and 'bar' have a common field called "employee_id" which I would like to use to as a filter in the 'bar' dataset so that the chart data shown coincides with the other employee data. Does this question make sense Is it possible Assuming that you are applying grouping and maybe paging by employee to the control, I think the only way to do this is to use a subreport for the chart and pass it the employee_id mapping to a parameter in the subreport. ...Show All

  • Visual Basic Obtaining latest messages from a Chat server, need help

    I am trying to obtian messages from a chat server over UDP. It has to be periodic otherwise messages will get lost. My current code is: Dim udpClient As New Net.Sockets.UdpClient() udpClient.Connect( "ccdc.kick-ass.org" , 1079) Dim RemoteIpEndPoint As New Net.IPEndPoint(System.Net.IPAddress.Any, 1079) Dim receiveBytes As [Byte]() = udpClient.Receive(RemoteIpEndPoint) Dim returnData As String = System.Text.Encoding.ASCII.GetString(receiveBytes) TextBox2.Text = TextBox2.Text + returnData.ToString() udpClient.Close() Exit Sub In a timer control. I have two problems with this: This checks every 500milliseconds, which may tie up an internet connection. It crashes instantly ...Show All

  • Visual C++ Can't link a managed wrapper (mixed managed/native) assembly to a static lib???

    Unless I'm missing something, this seems like a fairly major limitation... I have a mixed manage and native "wrapper" assembly project that wraps a third party's static library. We do not have a DLL version of the third party library, just the .lib. In VS 2003 with managed extensions for C++, the project compiled and linked fine. Now, after having converted all the managed extension stuff to C++/CLI, I have it all compiling. However, it does not link because of multiply defined symbols (LNK2005 error). It appears the static library had linked (statically) to libcmt.lib When linking my project I get 20 or so linker errors like this: libcmt.lib(fflush.obj) : error LNK2005: _fflush already defined in MSVCRTD.lib(MSVCR80D.dll) My ...Show All

  • Windows Forms Opening a Form

    Hi, i'm using VS 2005... I can open a form from an existing one using this code: Dim myForm As frmForm2 Private Sub btnOpen_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpen.Click myForm = New frmForm2 myForm.Show() End Sub Now, i don't know how to do this: if i click on btnOpen and frmForm2 is already running bring that to the front instead of creating a new instance. I kwon about .BringToFront, but i don't know how to validate that an instance is really opened. Private Sub Button1_Click ( ByVal sender As Object , ByVal e As System . EventArgs ) Handles Button1 . Click Dim FormOpen As Boolean = F ...Show All

  • SQL Server How do i display a checkbox on a report?

    Hi, I've been trying to display a checkbox on a report using unicode text eg. (U+2616) (Arial Unicode MS). I get the error: BC30037: Character is not valid. I have read somewhere about using html formatting to display it, how could this be done Is there any thing else i could do Thanks, Sam. I"m interested in seeing your solution. Can you post as reply to this thread I'll bet a lot of us report designers could use this little tidbit. thanks, ...Show All

  • Audio and Video Development DSP plugin - works fine with MPG, but not with PMP

    I'm trying to create a DSP plugin that works in WMP 11 with both non-WMV and WMV video types. I got the sample DSP plugin from the Windows SDK 6.0, compiled it and it works fine for MPG videos. When I try it with a WMV video (which causes an instance of mfpmp.exe to be launched, and the DSP plugin then runs in that), I always get the error from WMP that "Windows Media Player encountered a problem while playing the file. For additional assistance, click Web Help." This happens with my own plugin, which works fine on WMP 10, as well as the sample plugin from the SDK. I have followed all the steps described on MSDN to make my plugin WMP-11 friendly, except for the proxy-stub DLL. However, the SDK plugin _does_ have the proxy-stub DL ...Show All

  • Visual C++ ComboBox Event

    Hi, I was trying to use the MouseHover event for a combobox, to track the mouse movement on the dropped-down list. It seems that the event does not get generated when the curser remains within the list, and only when it is within the control area. Is there a way to generate such an interrupt. Otherwise this has to be done by using timers/tasks. which is preferable not to add the extra, effort if do-able by an event. This is a visual studio 2005 platform, and the code is done in C++. Best Regards, Reza Bemanian That's a good question. I suspect that when the control is activated and opened, it actually spawns a new object which corresponds to the window containing the ComboBox options (since it's ...Show All

  • SQL Server Equivalent Stored Procedure for Wildcard search.

    Hi, I need to convert the following MDX functionality into a Stored Procedure in MSAS 2005: SELECT { FILTER([Store Type].AllMembers, InStr([Store Type].CurrentMember.Name ,"*", 0) > 0) } ON AXIS(0) FROM [Sales] Is it possible to use the stored procedure "Like" implemented under the Analysis Services Stored Procedure Project ( www.codeplex.com ) If yes, what would be the equivalent MDX query for implementing the same functionality Thanks and Regards, Santosh. Hi Darren, But can the InStr() function with Filter() be used for wildcharacter search like the one you showed in your example If yes, can you give me an example Thanks, Santosh. ...Show All

  • SQL Server Complicated join question.

    Hi there. I'm running Microsoft Business Solutions GP 8 backed by SQL Server 2000. I need to write a little C#/.NET 2.0 app to go "behind the scenes" to the SQL server in order to fetch and alter some data. Unfortunately, the tables that GP 8 has created seem strange to me; I've encountered an issue with a SELECT clause featuring two INNER JOINs. I need to select columns from three different tables. Unfortunately, the key structure of these tables is strange at best. You may view the structure of the three tables from the following URL. http://pastebin.com/732226 My SQL query is as follows. SELECT IV30400.DOCNUMBR, IV30300.DOCDATE, IV30200.GLPOSTDT, IV30400.SERLTNUM, IV30400.ITEMNMBR, IV30400.SERLTQTY FROM IV ...Show All

  • Windows Forms When Form.Load() will be called...?

    Hi… First I am calling Form.Show() function from my MDI application & then I am hiding that form using Form.Hide() so when next time if I call Form.Show() then will it call Form.Load() event again … When actually Form.Load() will execute exactly… I want to set default parameters of my form which I am setting on Form.Load() & I want my application should set those forms control parameters values whenever I’ll call Form.Show(). How I can do this… Thanks, Vinay Odd question... Form.Load runs when Windows sends the WM_CREATE message, triggered by the form constructor. All the child controls are already created by the InitializeComponent() me ...Show All

  • SQL Server Change chart type dynamically from Column to Line graph??

    I am developing several charts with column type and sub type as stacked. There is a requirement from the users that they want an option to choose the type of chart. Is it possible to change chart type dynamically from say Column type to Line type based on user option in front-end Any help will be appreciated. Thanks in advance !! The closest you can get directly in RS at this point is to define multiple charts with different types and conditionally only show one of the charts based on a parameter selection. -- Robert ...Show All

©2008 Software Development Network