15,890,579 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Renjith_R (Top 118 by date)
Renjith_R
16-Jan-18 3:56am
View
I am looking for a confirmation pop up contains Yes or No buttons.
Renjith_R
16-Jan-18 3:42am
View
Thanks for the quick reply..
i want "Yes" or "No" in the popup. If it is "Yes" the data should be deleted and if it is "No" then it is cancel.
Thanks in advance.
Renjith_R
1-Nov-17 9:23am
View
Thanks :)
Renjith_R
1-Nov-17 9:20am
View
if we remove the distinct it will work. But the requirement is distinct values :)
Renjith_R
1-Nov-17 9:00am
View
Thanks for the quick reply.
I have already tried that too. it gives me error "ORDER BY items must appear in the select list if SELECT DISTINCT is specified." If i remove the distinct from this query it will work. But i want to take the distinct values.
Thanks in advance
Renjith_R
1-Nov-17 4:40am
View
On page load event the grid is binding with value Yes in the column. before it used to bind all the records.
protected void grdChangeRequirement_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow) {
GridViewRow row = e.Row;
Label lbl_SignOff = row.FindControl("lbl_SignOff") as Label;
Label btnUpdate = row.FindControl("btn_Update") as Label;
Label btnCancel = row.FindControl("btn_Cancel") as Label;
if (lbl_SignOff.Text == "Yes")
{
btnUpdate.Visible = false;
btnCancel.Visible = false;
}
}
}
if i comment/Skip this section it is binding properly.
Renjith_R
1-Nov-17 4:02am
View
if (!IsPostBack)
{
lblSuccess.Text = "";
ShowData();
DropdownBind();
}
Renjith_R
31-Oct-17 11:29am
View
This is partially working. Now the problem is only columns with values "Yes" are displaying in the grid. i called the grid binding function on the page load.
Please assist
Thanks in advance
Renjith_R
31-Oct-17 6:25am
View
<asp:GridView ID="grdChangeRequirement" runat="server" AutoGenerateColumns="False"
Width="100%" CellPadding="0" CellSpacing="0" BorderStyle="None" BorderWidth="0"
AllowPaging="true" OnRowCancelingEdit="grdChangeRequirement_RowCancelingEdit" OnRowDeleting="grdChangeRequirement_RowDeleting"
OnRowEditing="grdChangeRequirement_RowEditing" OnRowUpdating="grdChangeRequirement_RowUpdating"
OnPageIndexChanging="grdChangeRequirement_PageIndexChanging" OnRowDataBound="grdChangeRequirement_RowDataBound"
OnRowCommand="grdChangeRequirement_RowCommand" OnSelectedIndexChanged="grdChangeRequirement_SelectedIndexChanged">
<columns>
<asp:TemplateField HeaderText="SignOff" ItemStyle-BorderStyle="Solid"
ItemStyle-HorizontalAlign="Center" HeaderStyle-BorderStyle="Solid" HeaderStyle-HorizontalAlign="Center"
HeaderStyle-Width="6%" HeaderStyle-Height="10%">
<itemtemplate>
<asp:Label ID="lbl_SignOff" runat="server" Text='<%#Eval("Signoff") %>'>
<edititemtemplate>
<asp:DropDownList ID="ddl_Signoff" CssClass="dropdown" runat="server" SelectedValue='<%# Eval("Signoff") %>'>
<asp:listitem>--Select--
<asp:listitem>Yes
<asp:listitem>No
<asp:listitem>NA
<asp:TemplateField ItemStyle-BorderStyle="Solid" ItemStyle-HorizontalAlign="Center"
HeaderStyle-BorderStyle="Solid" HeaderStyle-HorizontalAlign="Center">
<itemtemplate>
<asp:Button ID="btn_Edit" runat="server" Text="Edit" CommandName="Edit" CssClass="input_button"
CommandArgument='<%# Container.DataItemIndex %>' />
<edititemtemplate>
<asp:Button ID="btn_Update" runat="server" Text="Update" CommandName="Update" CssClass="input_button"
CausesValidation="false" />
<asp:Button ID="btn_Cancel" runat="server" Text="Cancel" CommandName="Cancel" CssClass="input_button"
CausesValidation="false" />
Renjith_R
31-Oct-17 6:24am
View
Yes it is
Renjith_R
31-Oct-17 4:49am
View
I have mentioned it doesn't allow me to get inside the If loop.
<asp:GridView ID="grdChangeRequirement" runat="server" AutoGenerateColumns="False"
Width="100%" CellPadding="0" CellSpacing="0" BorderStyle="None" BorderWidth="0"
AllowPaging="true" OnRowCancelingEdit="grdChangeRequirement_RowCancelingEdit" OnRowDeleting="grdChangeRequirement_RowDeleting"
OnRowEditing="grdChangeRequirement_RowEditing" OnRowUpdating="grdChangeRequirement_RowUpdating"
OnPageIndexChanging="grdChangeRequirement_PageIndexChanging" OnRowDataBound="grdChangeRequirement_RowDataBound"
OnRowCommand="grdChangeRequirement_RowCommand" OnSelectedIndexChanged="grdChangeRequirement_SelectedIndexChanged">
<columns>
<asp:TemplateField HeaderText="SignOff" ItemStyle-BorderStyle="Solid"
ItemStyle-HorizontalAlign="Center" HeaderStyle-BorderStyle="Solid" HeaderStyle-HorizontalAlign="Center"
HeaderStyle-Width="6%" HeaderStyle-Height="10%">
<itemtemplate>
<asp:Label ID="lbl_SignOff" runat="server" Text='<%#Eval("Signoff") %>'>
<edititemtemplate>
<asp:DropDownList ID="ddl_Signoff" CssClass="dropdown" runat="server" SelectedValue='<%# Eval("Signoff") %>'>
<asp:listitem>--Select--
<asp:listitem>Yes
<asp:listitem>No
<asp:listitem>NA
<asp:TemplateField ItemStyle-BorderStyle="Solid" ItemStyle-HorizontalAlign="Center"
HeaderStyle-BorderStyle="Solid" HeaderStyle-HorizontalAlign="Center">
<itemtemplate>
<asp:Button ID="btn_Edit" runat="server" Text="Edit" CommandName="Edit" CssClass="input_button"
CommandArgument='<%# Container.DataItemIndex %>' />
<edititemtemplate>
<asp:Button ID="btn_Update" runat="server" Text="Update" CommandName="Update" CssClass="input_button"
CausesValidation="false" />
<asp:Button ID="btn_Cancel" runat="server" Text="Cancel" CommandName="Cancel" CssClass="input_button"
CausesValidation="false" />
There are multiple columns in the grid and i have mentioned only the single column within the grid.
Renjith_R
30-Oct-17 11:06am
View
I have tried all those. While clicking on edit button it doesn't allow me to get inside the loop.
if (e.Row.RowType == DataControlRowType.DataRow)
{
Label btnUpdate = (e.Row.FindControl("btn_Update") as Label);
Label btnCancel = (e.Row.FindControl("btn_Cancel") as Label);
if (e.Row.Cells[12].Text == "Yes")
{
btnUpdate.Enabled = false;
}
}
Renjith_R
30-Oct-17 8:17am
View
Here the issue is not with editing or deleting. I want to disable the edit option based on the column condition. if you have any workaround please post that.
Thanks in advance :)
Renjith_R
8-Aug-17 10:42am
View
Thanks for the quick reply..
i have created a folder in e drive.. still the file path is showing like "C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\ImportTest.xlsx"
Where should i keep the excel ?
Renjith_R
26-Jul-16 12:08pm
View
Deleted
I tried the same and not it is not working. Any idea that can we do with wix to get the input values from the installation wizard.
Please suggest some alternate methods :)
Thanks in advance
Renjith_R
18-Jul-16 12:12pm
View
Deleted
Thanks for the reply.can we get into installation wizard and save the user input values to any data table ?
Renjith_R
18-Jul-16 9:08am
View
Thanks for the reply, But i am not looking for any third party tool for doing this.Do we have any C# code to fetch the user input values from installation wizard.
Renjith_R
14-Jul-16 12:05pm
View
To create the response transform without using any third party tools. i mean to create an .mst file out of those user inputs
Renjith_R
1-Apr-16 10:27am
View
Thanks dude. it is working fine
Renjith_R
1-Apr-16 10:27am
View
Hello Phil
Thanks for the reply..
txtabc.Text = "\"\""; is working for me.
Renjith_R
2-Feb-16 10:12am
View
Thank you so much for your quick reply. I need to check the global event hooks deeply.Please let me know if you find any alternate solutions.
Thanks in advance
Renjith_R
2-Feb-16 9:50am
View
Not exactly, I am trying to create an exe. when i run that exe it should click all the screen-shots of each mouse events and key press events in the particular machine.Not only with in the form of my application.
Renjith_R
2-Feb-16 7:54am
View
I am trying to capture screen-shots on each mouse events and key press events and I am not trying to get events outside of application.
Renjith_R
2-Feb-16 7:29am
View
I have tried this. in global hooks events the mouse events and key press events are triggered based on the check box click events.
Renjith_R
2-Feb-16 7:26am
View
Thanks for your reply, I need to capture an image on each mouse click and keyboard press events.
Renjith_R
1-Feb-16 7:25am
View
Thanks for the reply, Can we take images on mouse left click and right click events ?
With the help of a for loop will it capture all the images when we click the mouse buttons. am trying on that way.
Renjith_R
11-Jan-16 11:09am
View
Thanks for the reply, Do we have any method to 10% decrease in brightness and 10% increase in contrast ? This will help me a lot
Thanks in advance
Renjith_R
11-Jan-16 7:05am
View
thanks for the reply, But how we enhance the image quality ?
do you have any link or code snippet for reference.
Thanks in advance
Renjith_R
11-Dec-15 11:15am
View
Thanks for your reply. Can we check if "Z" drive is present in the system or not ?
Renjith_R
4-Nov-15 7:54am
View
Thanks for the reply. It is working fine but the Id is coming like
"lblARPCOMMENTS03175846fb064556b9c100bf62de0ed1"
It should come like "lblARPCOMMENTS"
How can we achieve that ?
Renjith_R
10-Aug-15 10:56am
View
Thanks for the reply,
This is working fine in same domain. while deploying the code to a different server which is in a different domain at that time its showing error. can we set up a trust between the two domains ?
thanks in advance
Renjith_R
21-Jul-15 8:37am
View
This is my entire file.
PublishedTime: =7/16/2015 11:54:59 PM
MessageContent: =Current Status: Engineers are investigating an issue in which some users are experiencing problems accessing or using Exchange Online services or features. This event is actively being investigated. More information will be provided shortly.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing issues when attempting to check on the status of migrations in the Exchange Admin Console (EAC).
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact related to this event appears to be limited.
MessageContentEnd
PublishedTime: =7/17/2015 12:31:25 AM
MessageContent: =Current Status: The investigation determined that this issue is related to an ongoing Service Incident that was previously thought to only affect a few customers with a specific configuration. Upon further analysis, engineers have determined that the issue is affecting a wider scope of customers and scenarios. A fix for this problem has already been developed and is currently in deployment across the affected infrastructure.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing various errors when attempting to perform cutover or staged migrations.
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact related to this event appears to be limited.
Incident Start Time: Saturday, July 4, 2015, at 8:22 AM UTC
Preliminary Root Cause: At this time, engineers believe this issue was caused by a recent update. The underlying root cause is still under investigation.
Next Update by: Thursday, July 16, 2015, at 9:00 PM UTC
MessageContentEnd
PublishedTime: =7/17/2015 4:09:05 AM
MessageContent: =Current Status: Upon further analysis, engineers discovered that the previously identified fix did not address all of the factors contributing to the errors that are being encountered during migrations. Engineers have developed a new fix, and are now starting to deploy this across the affected infrastructure. To expedite resolution for customers who have reported this issue to Microsoft Support, engineers will prioritize updates on the infrastructure that they are hosted on.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing various errors when attempting to perform cutover or staged migrations.
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact related to this event appears to be limited.
Incident Start Time: Saturday, July 4, 2015, at 8:22 AM UTC
Preliminary Root Cause: As part of our ongoing work to improve the migration process, an update was deployed to the affected environment; however, the update introduced a code issue that prevented users from being successfully migrated.
Next Update by: Friday, July 17, 2015, at 11:00 PM UTC
MessageContentEnd
PublishedTime: =7/18/2015 4:03:54 AM
MessageContent: =Current Status: Engineers are continuing to implement a fix across the affected infrastructure to address the remaining migration errors. Engineers have prioritized updates to the infrastructures that host service for customers that have reported this issue.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing various errors when attempting to perform cutover or staged migrations.
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact relate
Renjith_R
21-Jul-15 8:34am
View
This is my entire file.
PublishedTime: =7/16/2015 11:54:59 PM
MessageContent: =Current Status: Engineers are investigating an issue in which some users are experiencing problems accessing or using Exchange Online services or features. This event is actively being investigated. More information will be provided shortly.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing issues when attempting to check on the status of migrations in the Exchange Admin Console (EAC).
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact related to this event appears to be limited.
MessageContentEnd
PublishedTime: =7/17/2015 12:31:25 AM
MessageContent: =Current Status: The investigation determined that this issue is related to an ongoing Service Incident that was previously thought to only affect a few customers with a specific configuration. Upon further analysis, engineers have determined that the issue is affecting a wider scope of customers and scenarios. A fix for this problem has already been developed and is currently in deployment across the affected infrastructure.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing various errors when attempting to perform cutover or staged migrations.
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact related to this event appears to be limited.
Incident Start Time: Saturday, July 4, 2015, at 8:22 AM UTC
Preliminary Root Cause: At this time, engineers believe this issue was caused by a recent update. The underlying root cause is still under investigation.
Next Update by: Thursday, July 16, 2015, at 9:00 PM UTC
MessageContentEnd
PublishedTime: =7/17/2015 4:09:05 AM
MessageContent: =Current Status: Upon further analysis, engineers discovered that the previously identified fix did not address all of the factors contributing to the errors that are being encountered during migrations. Engineers have developed a new fix, and are now starting to deploy this across the affected infrastructure. To expedite resolution for customers who have reported this issue to Microsoft Support, engineers will prioritize updates on the infrastructure that they are hosted on.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing various errors when attempting to perform cutover or staged migrations.
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact related to this event appears to be limited.
Incident Start Time: Saturday, July 4, 2015, at 8:22 AM UTC
Preliminary Root Cause: As part of our ongoing work to improve the migration process, an update was deployed to the affected environment; however, the update introduced a code issue that prevented users from being successfully migrated.
Next Update by: Friday, July 17, 2015, at 11:00 PM UTC
MessageContentEnd
PublishedTime: =7/18/2015 4:03:54 AM
MessageContent: =Current Status: Engineers are continuing to implement a fix across the affected infrastructure to address the remaining migration errors. Engineers have prioritized updates to the infrastructures that host service for customers that have reported this issue.
User Experience: There is no end-user impact; impact is limited to administrators only. Affected administrators are experiencing various errors when attempting to perform cutover or staged migrations.
Customer Impact: While some customers have confirmed their organization is affected by this issue, analysis indicates that the scope of customers experiencing impact relate
Renjith_R
21-Jul-15 8:28am
View
my data file is a converted html page and it contain more than 5 section which starts with MessageContent and end with MessageContentEND. I need to extract these sections and save to a data table or data list. i was not able to read the entire section.
Renjith_R
21-Jul-15 8:16am
View
Thanks for the reply, actually my .txt file contain more than 5 section start with MessageContent and end with MessageContentEND. I need to store all these sections in a data list or an array
Please assist
I tried the above code which you shared,it gives only the first line.
Thanks in advance
Renjith_R
21-Jul-15 8:01am
View
I have tried this, my .txt file contain more than 5 section which starts with MessageContent and end with MessageContentEND. I need to store all these sections which starts MessageContent and end with MessageContentEND into a data list or an array .
string strAllsource = File.ReadAllText("D:\\OutputText.txt");
Regex regex = new Regex("(?<=MessageContent:).*?(?=MessageContentEnd:)",RegexOptions.IgnoreCase | RegexOptions.Multiline
| RegexOptions.Singleline
| RegexOptions.CultureInvariant
| RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled
);
// Capture all Matches in the InputText
MatchCollection ms = regex.Matches(strAllsource);
var myList = new List<string>();
myList.Add(ms[0].Value);
when i tried this it gives error like "Specified argument was out of the range of valid values."
PLease Help ...
Thanks in advance
Renjith_R
21-Jul-15 7:29am
View
Thanks for the reply,
This gives only MessageContent: =Current Status: XXXXXXXXXXXXXXXX.
i need all the values in between MessageContent and MessageContentEnd.
i have more than five section which start with MessageContent and end with MessageContentEnd in the .txt file
Renjith_R
21-Jul-15 7:04am
View
Deleted
I have tried this, My .txt file contain more than 5 section start with MessageContent and end with MessageContentEND. I need to store all these sections in a data list or an array .
string strAllsource = File.ReadAllText("D:\\OutputText.txt");
Regex regex = new Regex("(?<=MessageContent:).*?(?=MessageContentEnd:)",RegexOptions.IgnoreCase | RegexOptions.Multiline
| RegexOptions.Singleline
| RegexOptions.CultureInvariant
| RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled
);
// Capture all Matches in the InputText
MatchCollection ms = regex.Matches(strAllsource);
var myList = new List<string>();
myList.Add(ms[0].Value);
when i tried this it gives error like "Specified argument was out of the range of valid values."
PLease Help ...
Thanks in advance
Renjith_R
21-Jul-15 7:02am
View
Thans for the reply.
I have tried this but it gives null
string strAllsource = File.ReadAllText("D:\\OutputText.txt");
Regex regex = new Regex("(?<=MessageContent:).*?(?=MessageContentEnd:)",RegexOptions.IgnoreCase | RegexOptions.Multiline
| RegexOptions.Singleline
| RegexOptions.CultureInvariant
| RegexOptions.IgnorePatternWhitespace
| RegexOptions.Compiled
);
// Capture all Matches in the InputText
MatchCollection ms = regex.Matches(strAllsource);
Renjith_R
21-Jul-15 7:01am
View
I have tried this and it gives null
Renjith_R
21-Jul-15 6:05am
View
Thanks for the reply,
Can i read the values between MessageContent to MessageContentEnd to a single string strMessageContent ??
Renjith_R
21-Jul-15 4:20am
View
Thanks for the reply,
I have tried this
string Line;
StreamReader sr = new StreamReader("D:\\OutputText.txt");
while ((Line = sr.ReadLine()) != null)
{
if (Line.StartsWith("MessageContent: "))
{
strMessageContent = Line.Split('=')[1].ToString();
}
}
sr.Close();
Renjith_R
7-Jul-15 5:52am
View
Thanks for the reply.
if (ev.Messages != null && ev.Messages.Length > 0)
{
foreach (Message msg in ev.Messages)
{
Console.WriteLine("{0} - {1} ", msg.PublishedTime, msg.MessageText);
}
}
I need to save the final output to the text file.
Thanks in advance
Renjith_R
5-May-15 9:18am
View
If i run a command like this "D:\Users\\Desktop\MSITransformTool.exe" D:\Users\Desktop\Orca.Msi . it will create a .mst file and it open a save-as dialog popup. i want to pass the filepath parameter and should save automatically without any user interaction.(suppress the save dialog box)
Renjith_R
5-May-15 9:02am
View
But i need to save the file.
Renjith_R
17-Mar-15 8:18am
View
I am running the PSR for taking system screenshots and it will save as zip file (ABC.Zip). when i extract this zip file i get the .mht file (Problem_20150317_1742.mht). This .mht file contains images and text. i need to extract those images and save in a folder. while doing this this the image looks blurry compared to manual screenshots.
Renjith_R
17-Mar-15 7:52am
View
The image which i get from PSR and taking a screenshot using printscreen button are different. My images looks blurry and its not clear compared to the actual screenshot.
Renjith_R
17-Mar-15 7:20am
View
Thanks for the reply, I am getting the mht file from the PSR.
Renjith_R
9-Mar-15 9:34am
View
I have tried with this
string ipaddress;
ipaddress = Request.ServerVariables["HTTP_X_FORWARDED_FOR"];
if (ipaddress == "" || ipaddress == null)
ipaddress = Request.ServerVariables["REMOTE_ADDR"];
it gives result as ::1
Renjith_R
9-Mar-15 8:04am
View
I already tried this method.It's also returning server ip.When we test from local system it returns ip but if I deployed in server it returns server ip.
Renjith_R
9-Mar-15 6:56am
View
Thanks for your reply, It is a web application
Renjith_R
16-Feb-15 2:46am
View
I have tried with this
p.LineSpacing = 1.5f;
but still the text and image are coming in the same line.
how can I display image to next line ?
Please assist.
Renjith_R
13-Feb-15 5:31am
View
Thanks for the reply, I have tried this as well.
I have a document with two tags like <text> and <Images>.
First i open the document and fill the Images to <Images> section and do save As.[If i do doc.Save() the images are not getting saved].when am doing Save As the <text> tag is getting removed so am not able to put text to the documents.And if i add the text first and save the doc and after adding the image and do save as the added text is not displaying. For displaying the image in doc i need to do Save As else the images are not getting saved
Renjith_R
13-Feb-15 5:18am
View
Thanks for the reply, I have tried this as well.
I have a document with two tags like <Text> and <Images>.
First i open the document and fill the Images to <Images> section and do save As.[If i do doc.Save() the images are not getting saved].when am doing Save As the <Text> tag is getting removed so am not able to put text to the documents.And if i add the text first and save the doc and after adding the image and do save as the added text is not displaying. For displaying the image in doc i need to do Save As else the images are not getting saved.
Renjith_R
10-Feb-15 9:08am
View
before "C:\
Renjith_R
10-Feb-15 9:03am
View
Thanks, its working fine
Do we need to close the process ?
p.close(); after this
Renjith_R
10-Feb-15 8:10am
View
this is the value in quick watch
C:\Files\FrameWindows.exe C:\Output\UK_Skype Technologies S.A._Skype 5.10_5.10.116.html
if we change to this it will work in command prompt
C:\Files\FrameWindows.exe "C:\Output\UK_Skype Technologies S.A._Skype 5.10_5.10.116.html"
how to add this Quotes to the second string ?
Renjith_R
9-Feb-15 6:55am
View
Do i need to rewrite the whole code ?
Renjith_R
9-Feb-15 6:21am
View
The console application is an existing application, so thought of create a windows form to open the browser.
Renjith_R
9-Feb-15 6:01am
View
i have a console application which create a report, i need to open this HTML report in a browser. to run this application further i need to close the browser.
var proc = new Process();
proc.StartInfo.FileName = @OutputFolder + "\\" + htmlName + ".html";
proc.Start();
proc.WaitForExit();
proc.Close();
By using this i can open this in a web browser, but some time its failing when some other url is opened in the browser,at this time i need to kill the process manually , so rather by doing this i need to open this HTML report in a separate browser in a windows form application so if i close the windows form application it close the browser automatically and allow the console application to run further.
Renjith_R
9-Feb-15 5:48am
View
i don't find a method to open the HTML file dynamically in a browser in a windows form within a console application.
Renjith_R
9-Feb-15 4:46am
View
Yes,its in the fifth column.
Renjith_R
9-Feb-15 3:19am
View
dataGridView1.Rows[i].Cells[4].Value
This is the cell value, but its not working :(
i have tried with different methods. but nothing helps me
Renjith_R
3-Feb-15 6:23am
View
dataGridView1.Rows[i].Cells[4].Value
is the comboBox column.
Renjith_R
3-Feb-15 6:11am
View
Sorry, ComboBox is 4 th only.
Renjith_R
3-Feb-15 6:05am
View
Thanks for the quick reply, I have tried that aswell, 3 is a checkbox column. comboBox is in 4 only.
Renjith_R
3-Feb-15 5:57am
View
I have tried this as well, getting the same error "Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index"
Renjith_R
3-Feb-15 2:23am
View
Yes,DGV has 5 columns
Renjith_R
2-Feb-15 10:32am
View
i have tried this
DataTable dt = new DataTable();
dt.Columns.Add("Installation", System.Type.GetType("System.String"));
dt.Columns.Add("InstallationValue", System.Type.GetType("System.Int32"));
dt.Rows.Add("--Select--","0");
dt.Rows.Add("Pre-Installation","1");
dt.Rows.Add("Installation","2");
dt.Rows.Add("Post-Installation","3");
cmb.DataSource = dt;
cmb.DisplayMember = "Installation";
cmb.ValueMember = "InstallationValue";
for (int i = 0; i < dataGridView1.Rows.Count; i++)
{
dataGridView1.Rows[i].Cells[4].Value = "0";
}
Its showing error like Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Renjith_R
2-Feb-15 8:14am
View
Yes,I am programmatically put comboBox in DGV,
DataGridViewComboBoxColumn cmb = new DataGridViewComboBoxColumn();
cmb.HeaderText = "Installation";
cmb.Name = "cmb";
cmb.MaxDropDownItems = 3;
cmb.Items.Add("Pre-Installation");
cmb.Items.Add("Installation");
cmb.Items.Add("Post-Installation");
I need to display --Select-- as the default value .
Thanks in advance
Renjith_R
2-Feb-15 7:47am
View
Thanks for reply,
in DGV DataGridViewComboBoxColumn does not contain a definition cmb.SelectedIndex=0
Renjith_R
2-Feb-15 4:47am
View
Deleted
Anybody please help
Renjith_R
2-Feb-15 3:49am
View
without using interop dll we can create word document by using docx dll
http://docx.codeplex.com/
Renjith_R
29-Jan-15 8:58am
View
HiZoltan
can you please see this and suggest a solution.
http://www.codeproject.com/Questions/870661/create-new-list-from-parent-list
Renjith_R
29-Jan-15 8:22am
View
Thanks a Lot, its working perfectly :)
Renjith_R
29-Jan-15 8:12am
View
Sorry, I need to Update the element rather than adding the new row to list.
Thanks for Reply
Renjith_R
29-Jan-15 8:01am
View
Hi Zoltan
I have tried this
if(objlistSelected.Any(x =>x.Image==ImageName))
{
objSelectd.Installation = ((System.Windows.Forms.DataGridView)(sender)).CurrentRow.Cells[4].Value.ToString(); // for Installation steps
objlistSelected.Add(objSelectd);
}
But its adding in new row, not the same row. i am expecting the objSelectd.Installation should be added in the same row
Renjith_R
29-Jan-15 7:41am
View
Thanks for quick reply
I need to check objlistSelected if there is an element like ImageName in list, if so i need to add a new value to the list,
Renjith_R
21-Jan-15 5:29am
View
Its not working :(
Renjith_R
16-Jan-15 5:33am
View
Honestly I don't find any proper code to get the images from picturebox to a list. there are many for "list _---> picturebox".
Renjith_R
16-Jan-15 5:25am
View
i need to add the resized image from picturebox to the list
objSelectd.Image = "ImageName from the picture box" ;
objlistSelected.Add(objSelectd);
Renjith_R
14-Jan-15 5:03am
View
Thanks a lot, its working fine :)
Renjith_R
14-Jan-15 3:12am
View
i have tried with FileInfo[] file1 = Directory.GetFiles(strImagePaths, "*.Jpeg")
.Select(path => Path.GetFileNameWithoutExtension(path))
.OrderBy(x => int.Parse(x.TrimStart("Image".ToArray())));
its showing exception like cannot implicitly convet type 'System.Linq.IOrderedEnumerable<string> to System.IO.FildeInfo[]
Renjith_R
14-Jan-15 3:00am
View
Thanks, It is working fine,will it work with FileInfo[] class?
rather by saving in List<string> Msilist,C an we use FileInfo[] class to store all the images.
Renjith_R
13-Jan-15 10:43am
View
Thanks for your quick reply, but this also gives the same result
this also gives the same result
image1
image10
image11
image12
image2
image3
image4
image5
image6
image7
image8
image9
my expected output should be
image1
image2
image3
image4
image5
image6
image7
image8
image9
image10
image11
image12
Renjith_R
13-Jan-15 10:36am
View
this also gives the same result
image1
image10
image11
image12
image2
image3
image4
image5
image6
image7
image8
image9
my expected output should be
image1
image2
image3
image4
image5
image6
image7
image8
image9
image10
image11
image12
Renjith_R
13-Jan-15 10:21am
View
string[] files = Directory.GetFiles(strImagePaths, "*.Jpeg*", SearchOption.AllDirectories);
And
List<string> Msilist = new List<string>();
string strfileName = string.Empty;
DirectoryInfo d = new DirectoryInfo(strImagePaths);// Folder Path
FileInfo[] Files = d.GetFiles("*.Jpeg"); //Getting msi files
foreach (FileInfo file1 in Files)
{
string strname = file1.Name;
Msilist.Add(strname);
}
will gives the same result Img1,img10,img11,img12,img2,img3,img4,img5,img6,img7,ing8,img9
Renjith_R
13-Jan-15 7:34am
View
Thanks for your quick reply :)
Renjith_R
13-Jan-15 7:33am
View
Thanks for your quick reply :)
Renjith_R
13-Jan-15 7:33am
View
Thanks for your quick reply :)
Renjith_R
24-Dec-14 1:51am
View
Thanks for the reply,I need to filter the locked users from the user group and unlock that users only. there is no way to find locked users from the user group here.
Renjith_R
11-Dec-14 3:01am
View
thanks for the reply.
Both the code gives same result,(images are displaying in X mark,not giving the proper image)
Is there any problem with path ?
am trying to bind the picture from a folder, will it work in this case ?
Renjith_R
10-Dec-14 10:50am
View
Thanks for your reply,
what I want is to Bind Images from a folder to the datagridview in a windows form application.
Image image = Image.FromFile(@"D:\1.png");
DataGridViewImageColumn ImageColumn = new DataGridViewImageColumn();
ImageColumn.Image = image;
ImageColumn.Name = "Name";
ImageColumn.HeaderText = "Nice Name";
ImageColumn.Width = 200;
dataGridView1.Columns.Insert(0, ImageColumn);
I have tried this code but its not showing the image
Renjith_R
10-Dec-14 3:25am
View
I want to load an image from a folder in a WPF application and do resize and cropping.
Renjith_R
4-Dec-14 9:58am
View
Thanks Dude,Its working :)
Renjith_R
4-Dec-14 9:37am
View
Yes, but i know total number of steps as per my requirements, can we pass that step number and extract those steps only rather extracting all ?
if (Line.StartsWith("Problem Step 1"))
{
List<string> Msilist = new List<string>();
Msilist.Add(Line);
}
Renjith_R
4-Dec-14 9:31am
View
Thanks for quick reply,
lets say i have 10 lies start with step1,step2,step3,step4,step5 ..... step10.
i want to extract these steps line by line and store in a list.
i know how many steps will be there in .txt file.
Renjith_R
4-Dec-14 9:31am
View
Thanks for quick reply,
I don't want to read all lines from the .txt file and store to a data list :(
lets say i have 10 lies start with step1,step2,step3,step4,step5 ..... step10.
i want to extract these steps line by line and store in a list.
i know how many steps will be there in .txt file.
Renjith_R
3-Dec-14 9:54am
View
Hi How to remove last character after two special character
string str="qwertyuiop@345*7%6&n>>werwer>ABCD
new string should be s= "werwer>ABCD"
Renjith_R
3-Dec-14 8:26am
View
Hi, Thanks for your quick reply
My string is str="qwertyuiop@345*7%6&n>>werwer>ABCD
it contain more than one > , I need to get characters after last >
Thanks in advance
Renjith_R
3-Dec-14 8:25am
View
Hi, Thanks for your reply
My string is str="qwertyuiop@345*7%6&n>>werwer>ABCD
I need to get characters after last >
Thanks in advance
Renjith_R
3-Dec-14 8:24am
View
Hi, Thanks for your reply
My string is str="qwertyuiop@345*7%6&n>>werwer>ABCD
I need to get characters after last >
Thanks in advance
Renjith_R
3-Dec-14 2:56am
View
byte[] imageBytes = Convert.FromBase64String(str1);
MemoryStream ms = new MemoryStream(imageBytes, 0,
imageBytes.Length);
// Convert byte[] to Image
ms.Write(imageBytes, 0, imageBytes.Length);
System.Drawing.Image image = System.Drawing.Image.FromStream(ms, true);
//return image;
image.Save(@"D:FromBase64String.Jpeg",ImageFormat.Jpeg);
This is working
Renjith_R
3-Dec-14 2:41am
View
A generic error occurred in GDI+.
Renjith_R
3-Dec-14 2:21am
View
i was not able to use Image, its showing some error.Can you make it clear
Renjith_R
2-Dec-14 12:53pm
View
I have tried this also and its not working, am using a wpf application
I have tried with this code its getting the image and its not saving:
public static Bitmap Base64StringToBitmap(this string base64String)
{
Bitmap bmpReturn = null;
byte[] byteBuffer = Convert.FromBase64String(base64String);
MemoryStream memoryStream = new MemoryStream(byteBuffer);
memoryStream.Position = 0;
bmpReturn = (Bitmap)Bitmap.FromStream(memoryStream);
memoryStream.Close();
memoryStream = null;
byteBuffer = null;
return bmpReturn;
}
Bitmap bmpFromString = BitMap.Base64StringToBitmap(str1);
bmpFromString.Save(@"D:\MHTTest\FinalImages\FromBase64String.Jpeg", ImageFormat.Jpeg);
Its getting error here while saving
A generic error occurred in GDI+.
Renjith_R
2-Dec-14 12:45pm
View
I have tried with this code:
public static Bitmap Base64StringToBitmap(this string base64String)
{
Bitmap bmpReturn = null;
byte[] byteBuffer = Convert.FromBase64String(base64String);
MemoryStream memoryStream = new MemoryStream(byteBuffer);
memoryStream.Position = 0;
bmpReturn = (Bitmap)Bitmap.FromStream(memoryStream);
memoryStream.Close();
memoryStream = null;
byteBuffer = null;
return bmpReturn;
}
Bitmap bmpFromString = BitMap.Base64StringToBitmap(str1);
bmpFromString.Save(@"D:\MHTTest\FinalImages\FromBase64String.Jpeg", ImageFormat.Jpeg);
Its getting error here while saving
A generic error occurred in GDI+.
Renjith_R
2-Dec-14 9:05am
View
i tried reading through stream reader, by passing the string value directly its working.
string source = @"D:\MHTTest\Image\Imagetest.txt";
Renjith_R
2-Dec-14 7:36am
View
I have tried that already, sitll its not working
Renjith_R
2-Dec-14 5:43am
View
I have tried that and its not working,Please suggest any other method to get this done. Thanks in advance
Renjith_R
2-Dec-14 5:19am
View
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0004.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
kfeUHJ6sB3NBChWO9Pun+IelID//2Q==
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0005.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
wHc0EKFY70+6f4h6UgP/2Q==
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0006.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
uxZjknk0wKjLkn6n+ZoC8H/dP8qmAUj7yg5PVgO5oIUKx3p90/xD0pAf/9k=
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0007.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
/M0BeD/un+VTAKR95QcnqwHc0EKFY70+6f4h6UgP/9k=
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0009.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
zwMYpkkrSY3Y44GFA/lSOxdizHJPJpgVGXJP1P8AM0BeD/un+VTAKR95QcnqwHc0EKFY70+6f4h6
UgP/2Q==
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001--
I need to get the decoded characters like /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
kfeUHJ6sB3NBChWO9Pun+IelID//2Q== from the above text documents
Renjith_R
2-Dec-14 5:15am
View
I need to get the decoded characters like /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
kfeUHJ6sB3NBChWO9Pun+IelID//2Q== from the above text documents
Renjith_R
2-Dec-14 5:14am
View
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0004.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
kfeUHJ6sB3NBChWO9Pun+IelID//2Q==
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0005.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
wHc0EKFY70+6f4h6UgP/2Q==
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0006.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
uxZjknk0wKjLkn6n+ZoC8H/dP8qmAUj7yg5PVgO5oIUKx3p90/xD0pAf/9k=
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0007.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
/M0BeD/un+VTAKR95QcnqwHc0EKFY70+6f4h6UgP/9k=
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001
Content-Type: image/jpeg
Content-Transfer-Encoding: base64
Content-Location: screenshot_0009.jpeg
/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDABkRExYTEBkWFBYcGxkeJT4pJSIiJUw3Oi0+WlBfXllQ
zwMYpkkrSY3Y44GFA/lSOxdizHJPJpgVGXJP1P8AM0BeD/un+VTAKR95QcnqwHc0EKFY70+6f4h6
UgP/2Q==
--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001--
Renjith_R
1-Dec-14 10:45am
View
While debugging the above code am Getting result as Null, Actually this is a test document contain more than 10 + section starts with "--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001", I need to get all the section between each "--=_NextPart_SMP_1d0087c4c718772_aee00768_00000001"
Renjith_R
27-Nov-14 10:58am
View
We tried with @"C:\\abc.mht" and it is still showing the same issue. I am not sure what is the boundary in an MHT file. Just to mention that the mht file is being created through PSR tool which is built into windows 7 to take screenshots of activities and has images embedded in it.
Renjith_R
27-Nov-14 10:03am
View
Deleted
sorry its not .rtf its .mht only.
reader = new StringReader(this.mhtmlString); //Start reading the string
String boundary = getBoundary(reader); // Get the boundary code
if (boundary == null) throw new Exception("Failed to find string 'boundary'");
this.log += "Found boundary.\n";
Renjith_R
27-Nov-14 9:59am
View
i have tried with that, am getting the below error
"Failed to find string 'boundary'"
I pass my mht file as
string mhtml = "D:\\\\Problem_20141125_1221 - Copy.rtf";
Renjith_R
27-Nov-14 9:55am
View
Deleted
i have tried with that, am getting the below error
"Failed to find string 'boundary'"
I pass my mht file as
string mhtml = "D:\\\\Problem_20141125_1221 - Copy.rtf";
Show More