|
Use a PrintDocument[^] - you have complete control over the exact placement of everything.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Thank you, I will try with that..
|
|
|
|
|
You're welcome!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Ok so I have a problem. I have to create the form of the page with multiple data which will be inserted from textboxes and labels. I need to arrange them and in the final, I found a way to create more pages if is necessary. But I can't set the height of the windows forms larger than 780 and I really don't know why ) Is there any way to create a structure for the form specially for printing? I'm kinda beginner with this type of projects..
|
|
|
|
|
Hi,
I'm trying to build a logic analyzer - style chart with minimum 16 lines. I so far took a chart and added 16 chart areas, 16 series and 16 titles. The chart areas are all aligned to the first one.
What I need to add is a
1. "general" horizontal and vertical scrollbar and a horizontal scale
2. a zoom and pan function via mousewheel
3. at least two cursors whith automatic "delta" display
for 1. I tried adding the scale and the scrollbar to the bottom chart area, but this results in a changing display of the line as soon as a scrollbar gets visible. Of course all lines should scroll together. I imagined something like scrollbars for the chart not for the chartArea but that doesn't exist, right ?
The vertical scrollbar should be visible if there are more lines than can be displayed in the current window, but the first problem is that chart areas can only be added in relation to the chart height from 0-100 % , not more. Should I use something else than chartareas?
2. for example strg+wheel for zoom and alt+wheel for pan (scroll) should I use a keypressed/keydown event ?
3. no idea yet, the only visible cursors so far are the ones when click and drag which results in a automatic zoom currently
can anyone give me some hints for the different problems ?
Thank you very much,
Mat
modified 28-Jul-15 4:18am.
|
|
|
|
|
ok, point 2. done, this leaves 1. and 3. ...
no one ?
|
|
|
|
|
How do I use the repisitory pattern in Mvc tamplate
|
|
|
|
|
Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...
A very quick search using your question as the search term gave nearly half a million hits: Google "How do I use the repisitory pattern in Mvc tamplate"[^]
In future, please try to do at least basic research yourself, and not waste your time or ours.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Completely agree with my friend's comment above.
But assuming that you are new to this world, be my guest and have a look into this article.
http://www.codeproject.com/Articles/631668/Learning-MVC-Part-Repository-Pattern-in-MVC-App
But please from next time, time to do some basic research first.
|
|
|
|
|
HI,
I want to know that What is anonymous method in C# and it's use???
|
|
|
|
|
|
have a look into this
http://www.codeproject.com/Articles/47887/C-Delegates-Anonymous-Methods-and-Lambda-Expressio
|
|
|
|
|
hi , for example i have a table named (name)
and a form with a text box and a add button.
i wanna know how do i transfer the data from the textbox into the table( sql server express 2012 , and visual studios 2015 Rc)
sql connecton ......
sqlcommand cmd = new sqlcommand("insert into* .......... <- the part im struggling with
|
|
|
|
|
|
thanks il quickly take a look there
|
|
|
|
|
Have you bought the C# book you were recommended yet?
|
|
|
|
|
not yet my finances are kinda flat up now
|
|
|
|
|
So what structured resources are you following to learn C# properly?
|
|
|
|
|
i got a few pdfs i read thru that i got from my friend studying c# ,
|
|
|
|
|
There's a really good free PDF-book on programming in C#, which you can download here: http://www.introprogramming.info/[^]
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
thanks man
|
|
|
|
|
You should get a decent idea of what needs to be done, here[^]. Look at the first answer to get an idea on how to do this without leaving your code vulnerable to SQL Injection Attacks.
|
|
|
|
|
Hi,
I want to fetch data from SQL database, and display the same on my HTML page in table format using Angular JS.
I am able to get the data in the scope variable, but it is not getting displayed in the HTML page.
Please check the code that I have written below, and help me fixing the issue.
Thanks in advance.
HTML code:
<!DOCTYPE html>
<html>
<head>
<title>:: View Logs ::</title>
<script src="Scripts/angular.js"></script>
<script src="Scripts/angular.min.js"></script>
<!--<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>-->
<script src="Scripts/logsController.js"></script>
<script src="Scripts/jquery-2.1.1.js"></script>
<script src="Scripts/jquery-2.1.1.min.js"></script>
<!--<script>
ViewLogsApp = angular.module('ViewLogsApp', []);
ViewLogsApp.controller('ViewLogsController', function ($scope, $http) {
$http.get('data.json').success(function (response) {
$scope.myData = response;
});
});
</script>-->
</head>
<body>
<div ng-app="ViewLogsApp">
<div ng-controller="ViewLogsController">
<table class="table table-striped">
<tr>
<th>Log ID</th>
<th>User Type</th>
<th>User Name</th>
<th>Email ID</th>
<th>Action Type</th>
<th>Section Name</th>
<th>Section Details</th>
<th>DateTime</th>
<th>User IP</th>
</tr>
<tr ng-repeat="item in logslist">
<td>{{item.LogID}}</td>
<td>{{item.UserType}}</td>
<td>{{item.UserName}}</td>
<td>{{item.EmailID}}</td>
<td>{{item.ActionType}}</td>
<td>{{item.SectionName}}</td>
<td>{{item.SectionDetails}}</td>
<td>{{item.DateTime}}</td>
<td>{{item.UserIP}}</td>
</tr>
</table>
</div>
</div>
</body>
</html>
logsController.js code:
angular.module('ViewLogsApp', [])
.controller('ViewLogsController', [
'$scope', function ($scope) {
$scope.logslist = [];
$scope.load;
$scope.load = function () {
$.ajax({
type: 'GET',
contentType: 'application/json; charset=utf-8',
url: 'UserActivityLogs.aspx/getList',
success: function (data) {
$scope.logslist = data
$scope.$apply();
}
});
}
$scope.load();
}
]);
WebMethod code:
[System.Web.Services.WebMethod]
[ScriptMethod(UseHttpGet = true, ResponseFormat = ResponseFormat.Json)]
public static List<UserActivityLogsList> getList()
{
SqlConnection con = new SqlConnection();
con.ConnectionString = _connstr;
con.Open();
var logs = new List<UserActivityLogsList>();
string get = "select * from UserActivityLogs";
SqlCommand cmd = new SqlCommand(get, con);
SqlDataReader dr = cmd.ExecuteReader();
while (dr.Read())
{
UserActivityLogsList e = new UserActivityLogsList();
e.LogID = Convert.ToInt32(dr[0]);
e.UserType = Convert.ToString(dr[1]);
e.UserName = Convert.ToString(dr[2]);
e.EmailID = Convert.ToString(dr[3]);
e.ActionType = Convert.ToString(dr[4]);
e.SectionName = Convert.ToString(dr[4]);
e.SectionDetails = Convert.ToString(dr[4]);
e.DateTime = Convert.ToString(dr[4]);
e.UserIP = Convert.ToString(dr[4]);
logs.Add(e);
}
con.Close();
return logs;
}
Clouds come floating into my life, no longer to carry rain or usher storm, but to add color to my sunset sky. ~Rabindranath Tagore
|
|
|
|
|
This is not a C# issue. Please use the ASP.NET or Javascript forum, as appropriate.
|
|
|
|
|
So I'm using this command to open a picture in C sharp
Process.Start(@"C:\MyPicture.jpg");
Is there anyway I can open the latest picture in the folder?
|
|
|
|