Hello; these below codes give whole data of my Rehber datas. But if i want to show web page via Gridview send me out of memory exception error.
GenoTip.BAL:
public static List<Rehber> GetAllDataOfRehber()
{
using (GenoTipSatisEntities genSatisCtx = new GenoTipSatisEntities())
{
Obje...
I've made the same mistake many times:
I've tried to use a Stream that is positioned in the end, consequently returning nothing.
What is the best way of designing the code involved in the stream loading and passing to avoid forgetting to rewind it?
It's is always better to have the stream just initializated but always load the data wh...
i have a C# app that registers a protocol. When you click BLAH://djfhgjfdghjkd in a browser it launches my app. However you can click multiple links and each link is a note added into the app.
How can i inform the user that he did fully click the link? Right now i have a console app showing up for 1sec (basically pops up and goes away a...
For example, I have some project Common.Utils.csproj and use it in all other projects. I can store its (Utils) sourses in one repository, modify it only there, register dll in gac and use it as dll in other projects, or I can clone sourse anywhere I need, include project in solution, use it as source and push modifications. So, what is b...
We are about to automate number of process for our reporting team.
(The reports are like daily reports, weekly reports, monthly reports, etc..)
Mostly the process is like pulling some data from the oracle and then fill them
in particular excel template files.
Each reports and so their templates are different from each other.
Except the ...
I am trying to emulate a web browser in order to execute JavaScript code and then parse the DOM. The System.Windows.Forms.WebBrowser object does not give me the functionality I need. It let's me set the headers, but you cannot set the proxy or clear cookies. Well you can, but it is not ideal and messes with IE's settings.
I've been e...
Hi,
I am writing a usercontrol. I want to draw the user control when the resize is done. I am not able to find any event equivalent to "ResizeEnd" of windows form.
Is there any equivalent event for user controls?
please note that in this case the parent control of the user control is
itself an usercontrol, so I cannot
convert it...
Hello,
I have a problem with mapping .NET enumerations to database tables. Imagine I have a table called Statuses with the following values:
StatusID | Name
1 Draft
2 Ready
...
...
In the application layer, I can either use a Repository to get all Statuses as an IList object. However, the problem w...
I've got a dropdown box with some items in it that are more popular than others, and I'd like those to have a different background colour (say, Color.Yellow) when the combobox is expanded. I see BackColor but is there a way to apply background colour to just a single item?
EDIT: Thanks to Astander's lead, here's how I solved it:
D...
I want to draw a custom TabControl with custom functionality.
To do this, i inherited the Panel class and overrided OnPaint method to draw with TabRenderer class.
The problem is that TabRenderer working only when visual styles enabled (can be checked with TabRenderer.IsSupported), but what should i do if visual styles disabled?
In thi...
I am applying formatting to selected tokens in a WPF RichTextBox. To do this I get a TextRange that encompasses the token that I would like to highlight. I will then change the color of the text like this:
// Get start and end pointer for token
TextPointer startPointer = run.ContentStart.GetPositionAtOffset(startOffset);
TextPointer end...
my gridview data source is a list which takes datas from database but my sql command includes inner join and cannot cast the data and the gridview string like this OptikBOLayer.Exams but it can be string
...
I'm using My.Settings in my VB.NET application and when we run multiple instances rarely it's giving a ConfigurationErrorsException because the settings file locked by another instance.
Is there anyway to fix this?
This is happening during the OnShutdown process, also I'm not quite sure how can I catch that exception and handle it.
O...
I have the string with URL. For example "http://google.com".
Is there are any way to download and render this page to picture file? ("test.jpg")
I tried to use WebBrowser control, to download and render picture, but it only works when WebBrowser placed in displayed form. In other ways it's render only black rectangle.
But i want to r...
I have a custom control that I use inside a FlowDocument. The control uses a System.Drawing.ImageAnimator to display transparent, animated GIF images. Why is this such a pain in the butt in WPF anyway? :P
In my original implementation, this was causing memory leaks when a paragraph containing the control was being deleted from the docum...
I have made search about books dealing with developing apps for smart card using dot net framework but I havn't found any
If some one please know a name for a good book
please help me with it
...
I am continuing with my exam revision.
I have come across the usage of the Base Exception class and I have seen it on exam papers also.
My question is when do you derive from the Base Exception class?
I am of the impression if you want a custom class to throw an exception with more meaningful information, then you can create a custom ...
Hi
I am using Xml Data source to build menu for my application.. but the problem I am facing is, when i click on the menu it display all submenu right below the menu.. but when i scroll down a little in the page and click on the menu it display the menu items not at the right place.. which means it display the items not right below the...
I have an excel 2003 vsto workbook that I would like to make available via sharepoint for version control. Ideally it could be checked in/out by non-developers for tweaking excel equations, and I would be able to deploy the compiled dlls somewhere else when I need to update the managed VSTO code. I understand I may need to use some click...
i want to create a button/menu in title bar on each windows explore(or in browser).how can be done this in .net c# ? any idea please help me..
...